/* CartuchosYToners.com - Design System */
:root {
  --primary: #c40a0b;
  --primary-dark: #9a0809;
  --primary-light: #e83a3b;
  --accent: #212B42;
  --accent-dark: #161c2c;
  --cream: #F7F8FA;
  --cream-dark: #EBEEF3;
  --charcoal: #212B42;
  --gray: #4A5568;
  --white: #ffffff;
  --shadow: 0 10px 40px rgba(196, 10, 11, 0.12);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.12);
  --radius: 12px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--cream);
  color: var(--charcoal);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--charcoal);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.3rem, 3vw, 1.8rem); }
h4 { font-size: 1.25rem; }

p { margin-bottom: 1rem; color: var(--gray); }

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover { color: var(--primary-dark); }

/* Header & Nav */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(33, 43, 66, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(196, 10, 11, 0.3);
  transition: var(--transition);
}

.header.scrolled {
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--white);
  font-family: Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
  text-decoration: none;
}

.logo:hover { color: var(--white); }

.logo-emoji {
  font-size: 1.6rem;
  line-height: 1;
}

.logo em {
  font-style: normal;
  color: var(--primary-light);
}

.logo-com {
  font-size: 0.85em;
  opacity: 0.85;
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  list-style: none;
}

.nav-links a {
  color: rgba(255,255,255,0.9);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--primary-light);
}

.nav-cta {
  background: var(--primary) !important;
  color: white !important;
  padding: 0.5rem 1.1rem !important;
  border-radius: 8px;
  font-weight: 600 !important;
}

.nav-cta:hover {
  background: var(--primary-dark) !important;
  color: white !important;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero */
.hero {
  min-height: 88vh;
  display: flex;
  align-items: center;
  padding: 7rem 1.5rem 4rem;
  background: linear-gradient(135deg, #212B42 0%, #2a3550 50%, #1a2235 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 50%;
  height: 140%;
  background: radial-gradient(circle, rgba(196,10,11,0.18) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-text h1 {
  color: white;
  margin-bottom: 1.2rem;
}

.hero-text h1 em {
  font-style: normal;
  color: var(--primary-light);
}

.hero-text p {
  color: rgba(255,255,255,0.85);
  font-size: 1.15rem;
  margin-bottom: 2rem;
  max-width: 540px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.6rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.35);
}

.btn-secondary:hover {
  border-color: var(--primary-light);
  color: var(--primary-light);
  background: rgba(196,10,11,0.1);
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  text-align: center;
  backdrop-filter: blur(10px);
  max-width: 320px;
}

.hero-card-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.hero-card h3 {
  color: white;
  margin-bottom: 0.6rem;
}

.hero-card p {
  color: rgba(255,255,255,0.75);
  font-size: 0.95rem;
  margin: 0;
}

/* Trust bar */
.trust-bar {
  background: var(--accent);
  color: white;
  padding: 1rem 1.5rem;
}

.trust-items {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem 2.5rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 500;
}

.trust-item span {
  font-size: 1.2rem;
}

/* Sections */
.section {
  padding: 5rem 1.5rem;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.eyebrow {
  display: inline-block;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.6rem;
}

/* Cards grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: var(--transition);
  border: 1px solid var(--cream-dark);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(196,10,11,0.25);
}

.card-image {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  background: linear-gradient(135deg, #f0f2f6 0%, #e8ebf0 100%);
}

.card-body {
  padding: 1.5rem;
}

.card-body h3 {
  margin-bottom: 0.5rem;
  color: var(--charcoal);
}

.card-body p {
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.card-link {
  font-weight: 600;
  color: var(--primary);
  font-size: 0.95rem;
}

.card-link:hover {
  color: var(--primary-dark);
}

/* Features */
.features {
  background: white;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.8rem;
}

.feature {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--cream);
  border: 1px solid transparent;
  transition: var(--transition);
}

.feature:hover {
  border-color: rgba(196,10,11,0.2);
  background: white;
  box-shadow: 0 8px 25px rgba(0,0,0,0.06);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 0.8rem;
}

.feature h3 {
  margin-bottom: 0.4rem;
  font-size: 1.2rem;
}

.feature p {
  font-size: 0.95rem;
  margin: 0;
}

/* Process */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  counter-reset: step;
}

.step {
  background: white;
  padding: 1.8rem 1.5rem;
  border-radius: var(--radius);
  border-left: 4px solid var(--primary);
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.step h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.step p {
  font-size: 0.95rem;
  margin: 0;
}

/* Testimonials */
.testimonials {
  background: linear-gradient(180deg, var(--cream) 0%, white 100%);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.testimonial {
  background: white;
  padding: 1.8rem;
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  border: 1px solid var(--cream-dark);
}

.testimonial > p {
  font-style: italic;
  margin-bottom: 1.2rem;
  color: var(--gray);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.author-info strong {
  display: block;
  color: var(--charcoal);
}

.author-info span {
  font-size: 0.85rem;
  color: var(--gray);
}

/* Contact */
.contact-section {
  background: white;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
  align-items: start;
}

.contact-info h3 {
  margin-bottom: 1.5rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.3rem;
  align-items: flex-start;
}

.contact-icon {
  font-size: 1.4rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  border-radius: 10px;
  flex-shrink: 0;
}

.contact-form {
  background: var(--cream);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--cream-dark);
}

.form-group {
  margin-bottom: 1.1rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
  color: var(--charcoal);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: var(--transition);
  background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(196,10,11,0.12);
}

.form-group textarea {
  min-height: 110px;
  resize: vertical;
}

.share-section {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #eee;
}

.share-section h4 {
  margin-bottom: 0.8rem;
  font-size: 1rem;
}

.share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.share-btn {
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  border: 1px solid #ddd;
  background: white;
  cursor: pointer;
  font-size: 0.85rem;
  transition: var(--transition);
}

.share-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* Footer */
.footer {
  background: var(--accent);
  color: rgba(255,255,255,0.85);
  padding: 3.5rem 1.5rem 1.5rem;
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-brand .logo {
  margin-bottom: 1rem;
}

.footer-brand p {
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
  max-width: 280px;
}

.footer h4 {
  color: white;
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

.footer ul {
  list-style: none;
}

.footer ul li {
  margin-bottom: 0.5rem;
}

.footer a {
  color: rgba(255,255,255,0.75);
  font-size: 0.95rem;
}

.footer a:hover {
  color: var(--primary-light);
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
}

/* Page hero (inner pages) */
.page-hero {
  padding: 8rem 1.5rem 3rem;
  background: linear-gradient(135deg, #212B42 0%, #2a3550 100%);
  color: white;
  text-align: center;
}

.page-hero h1 {
  color: white;
  margin-bottom: 0.8rem;
}

.page-hero p {
  color: rgba(255,255,255,0.85);
  max-width: 600px;
  margin: 0 auto;
}

.content-section {
  padding: 3.5rem 1.5rem;
}

.content-section .container {
  max-width: 800px;
}

.content-section h2 {
  margin-top: 2rem;
  margin-bottom: 0.8rem;
}

.content-section ul {
  margin: 1rem 0 1.5rem 1.5rem;
  color: var(--gray);
}

.content-section li {
  margin-bottom: 0.4rem;
}

/* WhatsApp float */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 58px;
  height: 58px;
  background: #25D366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  z-index: 999;
  transition: var(--transition);
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.08);
  color: white;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-text p {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-buttons {
    justify-content: center;
  }
  .hero-visual {
    order: -1;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  .nav-links {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--accent);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    border-bottom: 1px solid rgba(196,10,11,0.3);
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: auto;
    padding-top: 6rem;
  }
  .section {
    padding: 3.5rem 1.2rem;
  }
}


/* ========== Cookie banner (improved) ========== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10050;
  background: #212B42;
  color: #fff;
  padding: 1.15rem 1.25rem calc(1.15rem + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.35);
  border-top: 3px solid #c40a0b;
  transform: translateY(110%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, visibility 0.3s;
  pointer-events: none;
}

.cookie-banner.show {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.cookie-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.25rem;
}

.cookie-text {
  flex: 1 1 260px;
  font-size: 0.93rem;
  line-height: 1.55;
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
}

.cookie-text a {
  color: #ff6b6c;
  text-decoration: underline;
  font-weight: 600;
}

.cookie-text a:hover {
  color: #ffffff;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 0.65rem 1.35rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.25s ease;
  font-family: inherit;
  min-width: 110px;
  text-align: center;
}

.cookie-btn-accept {
  background: #c40a0b;
  color: #ffffff;
  border-color: #c40a0b;
}

.cookie-btn-accept:hover {
  background: #9a0809;
  border-color: #9a0809;
  transform: translateY(-1px);
}

.cookie-btn-reject {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.45);
}

.cookie-btn-reject:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

/* Lift WhatsApp when cookie banner is visible */
body.cookie-open .whatsapp-float {
  bottom: 6.5rem;
}

@media (max-width: 600px) {
  .cookie-inner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .cookie-actions {
    justify-content: center;
  }
  .cookie-btn {
    flex: 1;
  }
  body.cookie-open .whatsapp-float {
    bottom: 9.5rem;
  }
}

/* WhatsApp float refinements */
.whatsapp-float {
  bottom: 1.4rem;
  right: 1.4rem;
  z-index: 9990;
}

/* Footer campaign line */
.footer-bottom {
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.5rem;
}
.footer-bottom a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: underline;
}
.footer-bottom a:hover {
  color: #e83a3b;
}

/* Toner card illustration */
.card-image-toner {
  background: linear-gradient(160deg, #f4f6f9 0%, #e4e9f0 55%, #dce3ec 100%) !important;
  min-height: 150px;
  padding: 1rem 0.5rem;
}
.toner-icon {
  width: 150px;
  height: 95px;
  display: block;
}
.card-image-toner {
  min-height: 140px;
}

/* Share buttons improved */
.share-section h4 {
  margin-bottom: 0.85rem;
}
.share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.share-btn {
  padding: 0.55rem 1rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: inherit;
  transition: all 0.25s ease;
  color: #fff;
}
.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
}
.share-wa { background: #25D366; }
.share-wa:hover { background: #1ebe57; color: #fff; }
.share-fb { background: #1877F2; }
.share-fb:hover { background: #0f65d8; color: #fff; }
.share-x { background: #111; }
.share-x:hover { background: #333; color: #fff; }
.share-mail { background: #c40a0b; }
.share-mail:hover { background: #9a0809; color: #fff; }
.share-copy { background: #212B42; }
.share-copy:hover { background: #161c2c; color: #fff; }

/* Share strip section */
.share-strip {
  background: linear-gradient(135deg, #212B42 0%, #2a3550 100%);
  color: #fff;
  padding: 3.5rem 1.5rem;
}
.share-strip .eyebrow {
  color: #e83a3b;
}
.share-strip h2 {
  color: #fff;
  margin-bottom: 0.5rem;
}
.share-strip p {
  color: rgba(255,255,255,0.8);
  margin-bottom: 0;
}
.share-strip-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}
.share-buttons-lg .share-btn {
  padding: 0.7rem 1.2rem;
  font-size: 0.95rem;
}
@media (max-width: 700px) {
  .share-strip-inner {
    flex-direction: column;
    text-align: center;
  }
  .share-buttons-lg {
    justify-content: center;
  }
}


/* Ink cartridge illustration */
.card-image-ink {
  background: linear-gradient(160deg, #f5f7fa 0%, #e8eef5 55%, #dde5f0 100%) !important;
  min-height: 150px;
  padding: 0.75rem 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ink-icon {
  width: 150px;
  height: 105px;
  display: block;
}


/* ========== Mejoras v2: banner de cookies móvil ========== */
/* Causa del hueco enorme: .cookie-text tenía flex-basis 260px y en columna se convertía en ALTURA. */
.cookie-btn { min-height: 44px; }
@media (max-width: 600px) {
  .cookie-banner {
    padding: 0.9rem 1rem calc(0.9rem + env(safe-area-inset-bottom, 0px));
    border-top-width: 2px;
    border-radius: 16px 16px 0 0;
  }
  .cookie-inner { gap: 0.75rem; text-align: left; align-items: stretch; }
  .cookie-text { flex: 0 0 auto; font-size: 0.84rem; line-height: 1.45; }
  .cookie-actions { flex-wrap: nowrap; gap: 0.6rem; width: 100%; }
  .cookie-btn { flex: 1 1 0; min-width: 0; padding: 0.65rem 0.5rem; font-size: 0.9rem; }
  .cookie-btn-reject { order: 1; }
  .cookie-btn-accept { order: 2; }
  body.cookie-open .whatsapp-float { bottom: calc(var(--cookie-h, 9rem) + 0.9rem); }
}
@media (min-width: 601px) {
  body.cookie-open .whatsapp-float { bottom: calc(var(--cookie-h, 6rem) + 0.9rem); }
}

/* ========== Mejoras v2: ilustraciones de categorías ========== */
.card-image-toner, .card-image-ink { min-height: 170px; padding: 1rem 0.75rem; }
.toner-icon { width: 100%; max-width: 230px; height: auto; }
.ink-icon { width: 100%; max-width: 200px; height: auto; }
