/* ════════════════════════════════════════════════════════════
   PLASTIPERU.COM — Design System v2.0 (BeTheme-Inspired)
   Fábrica de Bolsas Plásticas — Lima, Perú
   ════════════════════════════════════════════════════════════ */

/* ── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* ── Design Tokens ────────────────────────────────────────── */
:root {
  /* Brand Colors */
  --blue-900: #001a5c;
  --blue-800: #002480;
  --blue-700: #0033a0;
  --blue-600: #0042cc;
  --blue-500: #1a5cff;
  --blue-400: #4d80ff;
  --blue-100: #e6eeff;
  --blue-50:  #f0f5ff;

  /* Neutrals */
  --white: #ffffff;
  --gray-50:  #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-500: #64748b;
  --gray-700: #334155;
  --gray-900: #0f172a;

  /* Accents */
  --accent: var(--blue-600);
  --accent-dark: var(--blue-700);
  --green-500: #22c55e;
  --green-600: #16a34a;
  --amber-500: #f59e0b;
  --red-500:   #ef4444;

  /* Typography */
  --font-display: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  /* Spacing — Más generoso (BeTheme-style) */
  --section-pad: clamp(4rem, 10vw, 8rem);
  --container: min(1240px, 90vw);

  /* Shadows — Más difusas y suaves */
  --shadow-sm: 0 2px 8px rgba(0,20,80,.05);
  --shadow-md: 0 8px 30px rgba(0,20,80,.07);
  --shadow-lg: 0 16px 50px rgba(0,20,80,.09);
  --shadow-xl: 0 24px 70px rgba(0,20,80,.12);

  /* Border Radius — Grande y moderno */
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 30px;
  --radius-xl: 40px;
  --radius-pill: 100px;

  /* Transitions */
  --ease: cubic-bezier(.4, 0, .2, 1);
}

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: rgba(0,51,160,.1);
}

body {
  font-family: var(--font-body);
  color: var(--gray-700);
  line-height: 1.7;
  background: var(--white);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color .3s var(--ease); }
ul { list-style: none; }

.container { width: var(--container); margin: 0 auto; }

/* ── Typography ───────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--gray-900);
  line-height: 1.25;
  letter-spacing: -.01em;
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); font-weight: 600; margin-bottom: 1rem; }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 600; }

/* Content sections — full width */

/* Content Hero — text left, image right */
.content-hero {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 3rem;
  align-items: start;
  margin-bottom: 3rem;
}
.content-hero-text h1 {
  margin-bottom: 1.2rem;
}
.content-hero-img {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 100px;
}
.content-hero-img img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}
.content-hero-img .placeholder {
  width: 100%;
  height: 280px;
  background: linear-gradient(135deg, var(--blue-50), var(--gray-100));
  border: 2px dashed var(--gray-300);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-500);
  font-size: .9rem;
}
@media (max-width: 768px) {
  .content-hero {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .content-hero-img { position: static; }
}
.products .container p {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--gray-700);
  margin-bottom: 1.2rem;
}
.products .container ul,
.products .container ol {
  margin-bottom: 1.5rem;
  padding-left: 1.2rem;
}
.products .container li {
  margin-bottom: .6rem;
  line-height: 1.7;
}

/* Content Images — inline with text */
.content-img {
  width: 100%;
  max-width: 420px;
  height: 280px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin: 1rem 0 1.5rem;
  box-shadow: var(--shadow-md);
}
.content-img-right {
  float: right;
  margin-left: 2rem;
  margin-bottom: 1.5rem;
}
.content-img-left {
  float: left;
  margin-right: 2rem;
  margin-bottom: 1.5rem;
}
.content-img-placeholder {
  width: 100%;
  max-width: 420px;
  height: 260px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--blue-50), var(--gray-100));
  border: 2px dashed var(--gray-300);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-500);
  font-size: .9rem;
  font-weight: 500;
  margin: 1.5rem 0;
}
.content-img-placeholder.right {
  float: right;
  margin-left: 2rem;
}
.clearfix::after { content: ''; display: table; clear: both; }

@media (max-width: 768px) {
  .content-img, .content-img-right, .content-img-left,
  .content-img-placeholder, .content-img-placeholder.right {
    float: none;
    margin: 1rem auto;
    max-width: 100%;
    display: block;
  }
}

.section-label {
  display: inline-block;
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--blue-600);
  margin-bottom: 1rem;
}

.section-title { margin-bottom: 1.5rem; }
.section-desc { max-width: 640px; font-size: 1.1rem; color: var(--gray-500); }

/* ── Top Bar ──────────────────────────────────────────────── */
.topbar {
  background: var(--blue-900);
  color: var(--white);
  font-size: .82rem;
  padding: .5rem 0;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
}
.topbar a {
  color: var(--blue-100);
  transition: color .2s;
}
.topbar a:hover { color: var(--white); }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 1.5rem; }
.topbar-icon { margin-right: .4rem; }

/* ── Header / Navbar ──────────────────────────────────────── */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--gray-200);
  transition: box-shadow .3s var(--ease);
}
.header.scrolled { box-shadow: var(--shadow-md); }

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
}
.logo img {
  height: 40px;
  width: auto;
  display: block;
}

.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a {
  font-size: .92rem;
  font-weight: 500;
  color: var(--gray-700);
  position: relative;
  padding: .25rem 0;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--blue-600);
  transition: width .3s var(--ease);
}
.nav-links a:hover::after { width: 100%; }
.nav-links a:hover { color: var(--blue-700); }

/* Nav Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-trigger { cursor: pointer; }
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
  min-width: 260px;
  padding: .5rem 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  z-index: 1001;
  display: flex;
  flex-direction: column;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown-menu li { list-style: none; }
.nav-dropdown-menu a {
  display: block;
  padding: .65rem 1.4rem;
  font-size: .88rem;
  font-weight: 500;
  color: var(--gray-700);
  white-space: nowrap;
  transition: background .2s, color .2s;
}
.nav-dropdown-menu a::after { display: none !important; }
.nav-dropdown-menu a:hover {
  background: var(--blue-50);
  color: var(--blue-700);
}

/* Navbar CTA — Neuromarketing: Verde WhatsApp + Von Restorff (destaca del resto) */
.btn-nav-cta {
  display: inline-flex !important;
  align-items: center;
  gap: .5rem;
  background: linear-gradient(135deg, #25d366, #128c7e) !important;
  color: var(--white) !important;
  padding: .75rem 2rem !important;
  border-radius: var(--radius-pill) !important;
  font-weight: 700 !important;
  font-size: .95rem !important;
  box-shadow: 0 4px 18px rgba(37,211,102,.35);
  letter-spacing: .02em;
  transition: all .3s var(--ease);
  border: none;
  white-space: nowrap;
  animation: cta-glow 3s ease-in-out infinite;
}
.btn-nav-cta svg { flex-shrink: 0; }
.btn-nav-cta::after { display: none !important; }
.btn-nav-cta:hover {
  background: linear-gradient(135deg, #128c7e, #075e54) !important;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 30px rgba(37,211,102,.5);
  color: var(--white) !important;
}

@keyframes cta-glow {
  0%, 100% { box-shadow: 0 4px 18px rgba(37,211,102,.35); }
  50% { box-shadow: 0 4px 18px rgba(37,211,102,.35), 0 0 0 6px rgba(37,211,102,.1); }
}

/* ── CTA Buttons — Pill-Shaped Premium ─────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: 1rem 2.4rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  border: none;
  transition: all .4s var(--ease);
  letter-spacing: .02em;
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue-700), var(--blue-600));
  color: var(--white);
  box-shadow: 0 6px 25px rgba(0,51,160,.3);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--blue-600), var(--blue-500));
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(0,51,160,.4);
}

.btn-whatsapp {
  background: linear-gradient(135deg, #16a34a, #22c55e);
  color: var(--white);
  box-shadow: 0 6px 25px rgba(22,163,74,.3);
}
.btn-whatsapp:hover {
  background: linear-gradient(135deg, #22c55e, #4ade80);
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(22,163,74,.4);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.4);
  backdrop-filter: blur(4px);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--blue-700);
  border-color: var(--white);
}

/* ── Hero Section ─── BeTheme-Inspired ────────────────────── */
.hero {
  position: relative;
  padding: clamp(5rem, 12vw, 9rem) 0;
  background: linear-gradient(160deg, var(--blue-900) 0%, var(--blue-700) 40%, var(--blue-600) 100%);
  overflow: hidden;
  min-height: 88vh;
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: min(700px, 80vw);
  height: min(700px, 80vw);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(89,216,229,.08) 0%, transparent 70%);
  animation: float 12s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -15%;
  left: -5%;
  width: min(500px, 60vw);
  height: min(500px, 60vw);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.04) 0%, transparent 70%);
  animation: float 15s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, -20px) scale(1.08); }
}

.hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content h1 {
  color: var(--white);
  margin-bottom: 1.5rem;
}

.hero-content h1 .highlight {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-content p {
  color: rgba(255,255,255,.8);
  font-size: 1.15rem;
  margin-bottom: 2.5rem;
  max-width: 540px;
  line-height: 1.8;
}

.hero-badges {
  display: flex;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.hero-badge {
  display: flex;
  align-items: center;
  gap: .5rem;
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(12px);
  padding: .6rem 1.2rem;
  border-radius: var(--radius-pill);
  font-size: .85rem;
  font-weight: 500;
  color: var(--white);
  border: 1px solid rgba(255,255,255,.12);
  transition: background .3s var(--ease);
}
.hero-badge:hover { background: rgba(255,255,255,.15); }

.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-image {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  max-height: 480px;
  object-fit: cover;
}

/* ── Stats Bar ─── Floating Card ──────────────────────────── */
.stats,
.stats-bar {
  background: var(--white);
  margin-top: -3.5rem;
  position: relative;
  z-index: 10;
}

.stats .container,
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}

.stat-item {
  padding: 2.5rem 1.5rem;
  text-align: center;
  border-right: 1px solid var(--gray-100);
  transition: all .3s var(--ease);
}
.stat-item:last-child { border-right: none; }
.stat-item:hover { background: var(--blue-50); transform: scale(1.02); }

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--blue-700);
  line-height: 1;
  display: block;
}

.stat-label {
  font-size: .88rem;
  color: var(--gray-500);
  margin-top: .6rem;
  font-weight: 500;
  display: block;
}

/* ── Products Grid ────────────────────────────────────────── */
.products { padding: var(--section-pad) 0; }

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gray-100);
  transition: all .5s var(--ease);
  position: relative;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.product-img-wrapper {
  width: 100%;
  height: 240px;
  overflow: hidden;
  border-radius: 8px 8px 0 0;
}

.product-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform .7s var(--ease);
}
.product-card:hover .product-card-img { transform: scale(1.1); }

.product-card-body {
  padding: 1.8rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card-body h3 {
  margin-bottom: .6rem;
  font-size: 1.2rem;
}

.product-card-body p {
  font-size: .9rem;
  color: var(--gray-500);
  margin-bottom: 1.2rem;
  line-height: 1.7;
  text-align: justify;
  flex: 1;
}

.product-tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: .35rem 1rem;
  border-radius: var(--radius-pill);
  background: var(--blue-50);
  color: var(--blue-700);
  margin-bottom: .8rem;
  border: 1px solid var(--blue-100);
}

/* ── Data Tables ─── Premium Rounded ─────────────────────── */
.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  font-size: .92rem;
}

.data-table thead tr {
  background: var(--blue-900);
  color: var(--white);
}

.data-table th {
  padding: 1rem 1.2rem;
  text-align: center;
  font-weight: 600;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.data-table td {
  padding: .9rem 1.2rem;
  text-align: center;
  border-bottom: 1px solid var(--gray-100);
  transition: background .2s var(--ease);
}

.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:nth-child(even) { background: var(--gray-50); }
.data-table tbody tr:hover { background: var(--blue-50); }

.data-table td a {
  color: var(--blue-700);
  font-weight: 600;
  border-bottom: 1px dashed var(--blue-400);
  transition: all .2s;
}
.data-table td a:hover {
  color: var(--blue-600);
  border-bottom-style: solid;
}

/* ── Why Choose Us ────────────────────────────────────────── */
.why-us {
  padding: var(--section-pad) 0;
  background: var(--gray-50);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.why-card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-100);
  transition: all .4s var(--ease);
  display: flex;
  flex-direction: column;
}
.why-card:hover {
  border-color: transparent;
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}

.why-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--blue-700);
  background: var(--blue-50);
  border-radius: var(--radius-sm);
}

.why-card h3 { margin-bottom: .6rem; }
.why-card p { font-size: .92rem; color: var(--gray-500); line-height: 1.7; }

/* ── CTA Banner ─── Premium Gradient ──────────────────────── */
.cta-banner {
  padding: clamp(4rem, 10vw, 7rem) 0;
  background: linear-gradient(160deg, var(--blue-900) 0%, var(--blue-700) 60%, var(--blue-600) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(600px, 80vw);
  height: min(600px, 80vw);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.05) 0%, transparent 70%);
}

.cta-banner h2 { color: var(--white); margin-bottom: 1.2rem; position: relative; }
.cta-banner p { color: rgba(255,255,255,.8); font-size: 1.15rem; margin-bottom: 2.5rem; max-width: 600px; margin-left: auto; margin-right: auto; position: relative; line-height: 1.8; }

/* ── FAQ Section ──────────────────────────────────────────── */
.faq { padding: var(--section-pad) 0; background: var(--gray-50); }

.faq-list { max-width: 800px; margin: 3rem auto 0; }

.faq-item {
  background: var(--white);
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  border: 1px solid var(--gray-200);
  overflow: hidden;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.faq-item:hover { border-color: var(--blue-400); }
.faq-item.active {
  border-color: var(--blue-600);
  box-shadow: 0 4px 20px rgba(0,51,160,.1);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--gray-900);
  transition: color .3s, background .3s;
  padding: 1.4rem 1.6rem;
  background: none;
  border: none;
  font-family: var(--font-body);
  text-align: left;
  line-height: 1.5;
  gap: 1rem;
}
.faq-question:hover { color: var(--blue-700); background: var(--blue-50); }

.faq-toggle {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 50%;
  background: var(--blue-50);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--blue-700);
  flex-shrink: 0;
  transition: all .35s var(--ease);
  border: 1px solid var(--blue-100);
  font-weight: 300;
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
  background: var(--blue-700);
  color: var(--white);
  border-color: var(--blue-700);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .5s var(--ease);
  color: var(--gray-500);
  line-height: 1.8;
}
.faq-answer p {
  padding: 0 1.6rem 1.4rem;
  font-size: .95rem;
}
.faq-item.active .faq-answer {
  max-height: 500px;
}

/* FAQs open by default on page load */
.faq-answer {
  max-height: none;
}
.faq-item .faq-toggle {
  transform: rotate(45deg);
  background: var(--blue-700);
  color: var(--white);
  border-color: var(--blue-700);
}

/* Related Products Section */
.related-products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.2rem;
  margin-top: 1.5rem;
}
.related-product-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  text-align: center;
  transition: all .3s var(--ease);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
}
.related-product-card:hover {
  border-color: var(--blue-600);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.related-product-card a {
  color: var(--blue-700);
  font-weight: 600;
  font-size: .95rem;
  transition: color .2s;
}
.related-product-card a:hover {
  color: var(--blue-500);
}
.related-product-card .rp-icon {
  font-size: 2rem;
  margin-bottom: .3rem;
}

/* ── Table of Contents Card ──────────────────────────────── */
.toc-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 2rem 2.5rem;
  margin: 1rem auto 3rem;
  max-width: 800px;
  box-shadow: var(--shadow-sm);
}
.toc-card p {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--blue-700);
  margin-bottom: 1rem;
}
.toc-card ol {
  counter-reset: toc;
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .6rem 2rem;
}
.toc-card ol li {
  counter-increment: toc;
  font-size: .92rem;
}
.toc-card ol li::before {
  content: counter(toc) ".";
  font-weight: 700;
  color: var(--blue-600);
  margin-right: .4rem;
}
.toc-card ol a {
  color: var(--gray-700);
  border-bottom: 1px dashed var(--blue-400);
  padding-bottom: 1px;
  transition: color .2s, border-color .2s;
}
.toc-card ol a:hover {
  color: var(--blue-700);
  border-bottom-style: solid;
}

@media (max-width: 480px) {
  .toc-card ol { grid-template-columns: 1fr; }
  .toc-card { padding: 1.5rem; }
}

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  background: var(--gray-900);
  color: var(--gray-300);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer h4 {
  color: var(--white);
  font-family: var(--font-display);
  margin-bottom: 1.2rem;
  font-size: 1.1rem;
}

.footer p { font-size: .9rem; line-height: 1.8; }
.footer a { color: var(--gray-300); transition: color .2s; }
.footer a:hover { color: var(--blue-400); }
.footer ul li { margin-bottom: .6rem; }
.footer ul a { font-size: .9rem; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .85rem;
}

/* ── WhatsApp Float ───────────────────────────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  width: 60px;
  height: 60px;
  background: var(--green-600);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(22,163,74,.4);
  transition: all .3s var(--ease);
  animation: whatsapp-pulse 2s infinite;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(22,163,74,.5);
}

.whatsapp-float svg { width: 32px; height: 32px; fill: white; }

@keyframes whatsapp-pulse {
  0%, 100% { box-shadow: 0 6px 24px rgba(22,163,74,.4); }
  50% { box-shadow: 0 6px 24px rgba(22,163,74,.4), 0 0 0 12px rgba(22,163,74,.15); }
}

/* ── Scroll Reveal Animation ──────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Mobile Menu ──────────────────────────────────────────── */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--gray-900);
  border-radius: 2px;
  transition: all .3s;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE DESIGN — Mobile-First Completo
   Breakpoints: 480px / 768px / 968px / 1200px
   ═══════════════════════════════════════════════════════════ */

/* ── iOS Safe Area & Touch ────────────────────────────────── */
@supports (padding: env(safe-area-inset-bottom)) {
  .footer { padding-bottom: calc(2rem + env(safe-area-inset-bottom)); }
  .whatsapp-float { bottom: calc(1.5rem + env(safe-area-inset-bottom)); }
}

/* Todos los elementos tocables: mínimo 44px (Apple HIG) */
.btn, .faq-question, .nav-links a, .menu-toggle, .whatsapp-float {
  min-height: 44px;
}

/* ── Tablet (≤968px) ──────────────────────────────────────── */
@media (max-width: 968px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero { min-height: 70vh; }
  .hero-content p { margin-left: auto; margin-right: auto; }
  .hero-badges { justify-content: center; }
  .hero-ctas { justify-content: center; }
  .hero-image { display: none; }

  .stats .container, .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-bottom: 1px solid var(--gray-200); }
  .stat-item:nth-child(2),
  .stat-item:nth-child(4) { border-right: none; }
  .stat-item:nth-child(3),
  .stat-item:nth-child(4) { border-bottom: none; }

  .footer-grid { grid-template-columns: 1fr 1fr; }

  .products-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Mobile (≤768px) ──────────────────────────────────────── */
@media (max-width: 768px) {
  :root {
    --section-pad: clamp(2.5rem, 6vw, 4rem);
    --container: 92vw;
  }

  /* Topbar → se convierte en barra compacta de WhatsApp */
  .topbar { padding: .4rem 0; }
  .topbar .container { justify-content: center; }
  .topbar-right { display: none; }
  .topbar-left { gap: .8rem; font-size: .78rem; flex-wrap: wrap; justify-content: center; }

  /* Navbar → hamburger menu */
  .header .container { height: 60px; }
  .logo { font-size: 1.4rem; }
  .nav-links {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    flex-direction: column;
    padding: 2rem 1.5rem;
    gap: 1.2rem;
    box-shadow: var(--shadow-lg);
    transform: translateX(100%);
    transition: transform .35s var(--ease);
    overflow-y: auto;
    z-index: 999;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 1.1rem; padding: .6rem 0; }
  .menu-toggle { display: flex; }

  /* Mobile dropdown → inline */
  .nav-dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    border: none;
    border-left: 3px solid var(--blue-600);
    border-radius: 0;
    min-width: auto;
    padding: .3rem 0 .3rem .8rem;
    margin-top: .3rem;
  }
  .nav-dropdown-menu a { font-size: .95rem; padding: .4rem .8rem; }

  /* Hero → más compacto pero legible */
  .hero { min-height: auto; padding: 3rem 0 4rem; }
  .hero-content h1 { font-size: clamp(1.8rem, 7vw, 2.4rem); }
  .hero-content p { font-size: 1rem; line-height: 1.7; }
  .hero-badges { gap: .6rem; }
  .hero-badge { font-size: .8rem; padding: .4rem .8rem; }

  /* Stats → 2 columnas compactas */
  .stats, .stats-bar { margin-top: -2rem; }
  .stats .container, .stats-grid { border-radius: var(--radius-md); }
  .stat-number { font-size: 2rem; }
  .stat-item { padding: 1.2rem 1rem; }

  /* Products → 2 columnas en tablet, 1 en phone */
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .product-card-img { height: 160px; }
  .product-card-body { padding: 1rem; }
  .product-card-body h3 { font-size: 1rem; }
  .product-card-body p { font-size: .85rem; }

  /* Table → scroll horizontal con indicador visual */
  table { font-size: .82rem !important; }
  th, td { padding: .6rem .8rem !important; white-space: nowrap; }

  /* Why cards → 1 columna */
  .why-grid { grid-template-columns: 1fr; gap: 1rem; }
  .why-card { padding: 1.5rem; }

  /* CTA Banner */
  .cta-banner h2 { font-size: clamp(1.4rem, 5vw, 1.8rem); }
  .cta-banner p { font-size: .95rem; padding: 0 1rem; }

  /* FAQ → más grande y fácil de tocar */
  .faq-question { font-size: 1rem; gap: 1rem; padding: .3rem 0; }
  .faq-answer { font-size: .92rem; }

  /* Footer → 1 columna */
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer { padding: 3rem 0 2rem; }
  .footer-bottom {
    flex-direction: column;
    gap: .8rem;
    text-align: center;
    font-size: .8rem;
  }

  /* WhatsApp Float → no tape el contenido */
  .whatsapp-float {
    bottom: 1.2rem;
    right: 1.2rem;
    width: 54px;
    height: 54px;
  }
  .whatsapp-float svg { width: 28px; height: 28px; }
}

/* ── Small Phone (≤480px) ─────────────────────────────────── */
@media (max-width: 480px) {
  :root { --container: 94vw; }

  .topbar { display: none; }

  .hero { padding: 2.5rem 0 3rem; }
  .hero-content h1 { font-size: 1.7rem; line-height: 1.3; }
  .hero-content p { font-size: .92rem; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; justify-content: center; padding: .9rem 1.5rem; font-size: .9rem; }
  .hero-badges { gap: .5rem; }
  .hero-badge { font-size: .75rem; padding: .35rem .7rem; }

  /* Stats → 1 columna apilada */
  .stats .container { grid-template-columns: 1fr; }
  .stat-item { border-right: none; border-bottom: 1px solid var(--gray-200); }
  .stat-item:last-child { border-bottom: none; }

  /* Products → 1 columna */
  .products-grid { grid-template-columns: 1fr; }
  .product-card-img { height: 200px; }

  /* Section labels y títulos */
  .section-label { font-size: .75rem; letter-spacing: 2px; }
  .section-desc { font-size: .95rem; }

  /* FAQ → máximo legibilidad */
  .faq-question { font-size: .95rem; }
  .faq-toggle { width: 32px; height: 32px; font-size: 1.3rem; }
  .faq-answer { font-size: .88rem; line-height: 1.7; }

  /* CTA */
  .cta-banner { padding: 2.5rem 0; }
  .cta-banner h2 { font-size: 1.3rem; }

  /* Footer */
  .footer h4 { font-size: 1rem; }
  .footer p, .footer ul a { font-size: .85rem; }
}

/* ── Extra Small (≤360px, Galaxy S, iPhone SE) ────────────── */
@media (max-width: 360px) {
  :root { --container: 96vw; }
  .header .container { height: 52px; }
  .logo { font-size: 1.2rem; }
  .hero-content h1 { font-size: 1.5rem; }
  .stat-number { font-size: 1.6rem; }
  .stat-label { font-size: .78rem; }
  .why-card { padding: 1.2rem; }
  .product-card-body { padding: .8rem; }
}
