/* ============ Reset & base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 118.75%; }
body {
  margin: 0;
  font-family: 'Lato', system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: #1f2a37;
  background: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; font-weight: 700; }
p { margin: 0 0 1em; }

:root {
  --teal-900: #0b3d3a;
  --teal-700: #0e5f57;
  --teal-600: #128577;
  --teal-500: #17a394;
  --teal-100: #e3f6f2;
  --amber-500: #f2a541;
  --amber-600: #e08a1f;
  --orange-600: #ff9800;
  --orange-700: #e68600;
  --ink: #1f2a37;
  --ink-light: #56636f;
  --bg-alt: #f4faf9;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(11,61,58,.10);
  --shadow-hover: 0 16px 40px rgba(11,61,58,.18);
}

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ============ Scroll progress bar ============ */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--teal-500), var(--amber-500));
  z-index: 1000; transition: width .1s linear;
}

/* ============ Top bar ============ */
.top-bar { background: var(--teal-900); }
.top-bar-inner { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 8px 24px; }
.top-bar-map { height: 26px; width: auto; opacity: .95; }
.top-bar-credit { color: #bcd9d4; font-size: .8rem; font-weight: 600; transition: color .2s ease; }
.top-bar-credit:hover { color: var(--amber-500); text-decoration: underline; }

/* ============ Header ============ */
.site-header {
  position: sticky; top: 0; z-index: 900;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(11,61,58,.08);
  transition: box-shadow .3s ease, background .3s ease;
}
.site-header.scrolled { box-shadow: 0 4px 20px rgba(11,61,58,.08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 88px; }
.logo { display: flex; align-items: center; gap: 8px; flex: none; }
.logo-img {
  height: 64px; width: auto; aspect-ratio: 630 / 171; display: block; flex: none;
  transition: transform .3s ease;
}
.logo:hover .logo-img { transform: scale(1.04); }
.footer-logo-img { height: 62px; }

.main-nav ul { display: flex; align-items: center; gap: 4px; flex-wrap: nowrap; }
.nav-link {
  display: inline-block; padding: 10px 14px; font-weight: 600; font-size: .95rem; white-space: nowrap;
  color: var(--ink-light); border-radius: 999px; position: relative; transition: color .25s, background .25s;
}
.nav-link:hover, .nav-link.active { color: var(--teal-700); background: var(--teal-100); }
.nav-cta { background: var(--teal-600); color: #fff !important; padding: 10px 18px; }

/* Dropdown submenus */
.main-nav > ul > li { position: relative; }
.caret { font-size: .7em; display: inline-block; transition: transform .25s ease; }
.has-dropdown:hover .caret, .has-dropdown:focus-within .caret { transform: rotate(180deg); }
.dropdown {
  position: absolute; top: 100%; left: 0; min-width: 240px; background: #fff; border-radius: 14px;
  box-shadow: var(--shadow-hover); padding: 8px; margin-top: 6px; list-style: none;
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s ease, transform .2s ease, visibility .2s;
  z-index: 950;
}
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a.dropdown-link { display: block; padding: 10px 14px; border-radius: 8px; font-weight: 600; font-size: .9rem; white-space: normal; }
.nav-cta:hover { background: var(--teal-700); }

.menu-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; background: none; border: none; cursor: pointer;
}
.menu-toggle span { display: block; height: 2px; width: 24px; background: var(--teal-800, var(--teal-700)); transition: transform .3s, opacity .3s; }
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 28px; border-radius: 999px; font-weight: 700; font-size: 1.05rem;
  cursor: pointer; border: 2px solid transparent; transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--teal-600); color: #fff; box-shadow: 0 8px 20px rgba(18,133,119,.30); }
.btn-primary:hover { background: var(--teal-700); box-shadow: 0 12px 26px rgba(18,133,119,.40); }
.btn-outline { border-color: var(--teal-600); color: var(--teal-700); background: #fff; }
.btn-outline:hover { background: var(--teal-100); }
.btn-block { width: 100%; }

/* ============ Hero ============ */
.hero { position: relative; padding: 150px 0 90px; overflow: hidden; background: linear-gradient(180deg, var(--teal-100) 0%, #ffffff 100%); }
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(50px); opacity: .35; animation: float 12s ease-in-out infinite; }
.blob-1 { width: 380px; height: 380px; background: var(--teal-500); top: -120px; right: -80px; }
.blob-2 { width: 280px; height: 280px; background: var(--amber-500); bottom: -80px; left: -60px; animation-delay: -4s; }
.blob-3 { width: 220px; height: 220px; background: var(--teal-700); top: 40%; left: 45%; animation-delay: -8s; opacity: .2; }
@keyframes float {
  0%, 100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(30px,-30px) scale(1.08); }
}

.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; }
.eyebrow { display: inline-block; padding: 6px 16px; border-radius: 999px; background: #fff; color: var(--teal-700); font-weight: 700; font-size: .9rem; letter-spacing: .04em; box-shadow: var(--shadow); margin-bottom: 18px; }
.hero-text h1 { font-size: clamp(2.1rem, 4vw, 3.1rem); color: var(--teal-900); }
.hero-text h1 .highlight { color: var(--amber-600); position: relative; }
.hero-text p { font-size: 1.08rem; color: var(--ink-light); max-width: 54ch; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 26px 0 40px; }

.hero-stats { display: flex; gap: 30px; flex-wrap: wrap; }
.stat { min-width: 140px; }
.stat-number { font-size: 2.1rem; font-weight: 800; color: var(--teal-700); }
.stat-suffix { font-size: 1.2rem; font-weight: 800; color: var(--teal-700); }
.stat p { margin: 2px 0 0; font-size: .95rem; color: var(--ink-light); }

.hero-media img { border-radius: 24px; box-shadow: var(--shadow-hover); animation: floatSlow 6s ease-in-out infinite; }
@keyframes floatSlow { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* ============ Comparador de visión (normal vs. DMAE) ============ */
.compare-slider {
  position: relative; width: 100%; aspect-ratio: 4 / 3; border-radius: 24px; overflow: hidden;
  box-shadow: var(--shadow-hover); background: #0b3d3a; user-select: none; touch-action: pan-y;
}
.compare-img-base, .compare-overlay img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none;
  border-radius: 0; box-shadow: none; animation: none;
}
.compare-overlay {
  position: absolute; inset: 0; overflow: hidden;
  clip-path: inset(0 55% 0 0); /* valor inicial, el JS lo sincroniza con el slider */
}
.compare-overlay img {
  filter: brightness(0.85) contrast(0.95) blur(3px) url(#dmaeDistort);
}
.compare-overlay::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(10,10,10,.6) 0%, rgba(10,10,10,.4) 24%, rgba(10,10,10,.15) 45%, transparent 62%);
}
.compare-handle {
  position: absolute; top: 0; bottom: 0; left: 45%; width: 3px; background: #fff;
  transform: translateX(-50%); pointer-events: none; z-index: 2; box-shadow: 0 0 0 1px rgba(0,0,0,.15);
}
.compare-handle-grip {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 42px; height: 42px; border-radius: 50%; background: #fff; color: var(--teal-700);
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem; font-weight: 700;
  box-shadow: var(--shadow-hover);
}
.compare-range {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; z-index: 3;
  -webkit-appearance: none; appearance: none; background: transparent; cursor: ew-resize;
}
.compare-range::-webkit-slider-runnable-track { -webkit-appearance: none; background: transparent; height: 100%; }
.compare-range::-webkit-slider-thumb { -webkit-appearance: none; width: 1px; height: 100%; opacity: 0; }
.compare-range::-moz-range-track { background: transparent; border: none; height: 100%; }
.compare-range::-moz-range-thumb { width: 1px; height: 100%; opacity: 0; border: none; }
.compare-tag {
  position: absolute; bottom: 16px; padding: 6px 14px; border-radius: 999px; font-weight: 700; font-size: .85rem;
  background: rgba(11,61,58,.75); color: #fff; z-index: 2; letter-spacing: .02em; pointer-events: none;
}
.compare-tag-left { left: 16px; }
.compare-tag-right { right: 16px; }
.compare-caption { margin: 14px 4px 0; font-size: .92rem; color: var(--ink-light); text-align: center; }

.scroll-cue { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 1; width: 26px; height: 42px; border: 2px solid var(--teal-600); border-radius: 20px; display: flex; justify-content: center; padding-top: 6px; }
.scroll-cue span { width: 4px; height: 8px; border-radius: 2px; background: var(--teal-600); animation: scrollDown 1.6s infinite; }
@keyframes scrollDown { 0% { transform: translateY(0); opacity: 1; } 70% { opacity: 0; } 100% { transform: translateY(14px); opacity: 0; } }

/* ============ Sections ============ */
.section { padding: 90px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 700px; margin: 0 auto 46px; }
.tag { display: inline-block; padding: 6px 16px; border-radius: 999px; background: var(--teal-100); color: var(--teal-700); font-weight: 700; font-size: .88rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 14px; }
.tag-light { background: rgba(255,255,255,.18); color: #fff; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); color: var(--teal-900); }
.lead { font-size: 1.1rem; color: var(--ink-light); max-width: 78ch; margin: -20px auto 40px; text-align: center; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; margin-bottom: 50px; }
.grid-2.reverse { direction: rtl; }
.grid-2.reverse > * { direction: ltr; }
.rounded-img { border-radius: var(--radius); box-shadow: var(--shadow); transition: transform .4s ease, box-shadow .4s ease; }
.rounded-img:hover { transform: scale(1.02); box-shadow: var(--shadow-hover); }
.food-illustration { width: 100%; height: auto; display: block; }

h3 { color: var(--teal-800, var(--teal-700)); font-size: 1.25rem; }
.sub-heading { text-align: center; margin: 10px 0 30px; }

.bullet-list li, .check-list li { padding-left: 28px; position: relative; margin-bottom: 12px; }
.bullet-list li::before { content: "•"; position: absolute; left: 6px; color: var(--amber-500); font-weight: 900; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--teal-600); font-weight: 900; }

.note-box { background: #fff7e8; border: 1px solid #f2d9a6; color: #7a5417; padding: 16px 22px; border-radius: 12px; max-width: 900px; margin: 10px auto 0; text-align: center; }
.small-note { font-size: .95rem; color: var(--ink-light); }
.small-note.center { text-align: center; margin-top: 24px; }

/* Cards grid */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 10px; }
.info-card {
  background: #fff; border-radius: var(--radius); padding: 26px 22px; box-shadow: var(--shadow);
  transition: transform .3s ease, box-shadow .3s ease; border: 1px solid rgba(11,61,58,.06);
}
.info-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); }
.info-card-icon { font-size: 1.8rem; margin-bottom: 10px; }
.info-card h4 { margin-bottom: 6px; color: var(--teal-800, var(--teal-700)); }
.info-card p { margin: 0; color: var(--ink-light); font-size: 1rem; }

/* Timeline (diagnostico) */
.timeline { display: flex; flex-direction: column; gap: 26px; max-width: 780px; margin: 0 auto 30px; }
.timeline-item { display: flex; gap: 20px; align-items: flex-start; }
.timeline-dot {
  flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--teal-600); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 800; box-shadow: 0 6px 14px rgba(18,133,119,.35);
}
.timeline-content h4 { margin-bottom: 4px; }
.timeline-content p { margin: 0; color: var(--ink-light); }

/* chips */
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.chip { background: var(--teal-100); color: var(--teal-700); padding: 8px 18px; border-radius: 999px; font-weight: 700; font-size: .95rem; transition: transform .2s ease; }
.chip:hover { transform: translateY(-3px); }

.highlight-box { background: linear-gradient(135deg, var(--teal-700), var(--teal-900)); color: #fff; border-radius: 22px; padding: 40px; margin: 50px 0; }
.highlight-box h3 { color: #fff; }
.highlight-box p { color: rgba(255,255,255,.88); margin: 0; }

/* nutrition table */
.nutrition-table { max-width: 700px; margin: 0 auto 50px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.nutrition-row { display: grid; grid-template-columns: 1fr 2fr; padding: 14px 20px; background: #fff; border-bottom: 1px solid var(--teal-100); }
.nutrition-row:last-child { border-bottom: none; }
.nutrition-row span:first-child { font-weight: 700; color: var(--teal-700); }
.nutrition-header { background: var(--teal-600); color: #fff; }
.nutrition-header span { font-weight: 800; }

/* gallery */
.gallery-track { display: flex; gap: 20px; overflow-x: auto; padding: 10px 4px 20px; scroll-snap-type: x mandatory; }
.gallery-item { flex: none; width: 200px; scroll-snap-align: start; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .3s ease; }
.gallery-item:hover { transform: translateY(-6px); }
.gallery-item img { height: 140px; width: 100%; object-fit: cover; }
.gallery-item span { display: block; padding: 10px 12px; font-size: .92rem; font-weight: 600; color: var(--ink); }

/* ============ Autotest / Amsler grid ============ */
.amsler-wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: center; margin-bottom: 20px; }
.amsler-instructions ol { padding-left: 20px; list-style: decimal; color: var(--ink-light); }
.amsler-instructions li { margin-bottom: 8px; }
.amsler-result { margin-top: 16px; padding: 14px 18px; border-radius: 12px; background: var(--teal-100); color: var(--teal-800, var(--teal-700)); font-weight: 600; }
.amsler-grid-box { display: flex; justify-content: center; }
.amsler-grid {
  position: relative; width: min(400px, 90vw); aspect-ratio: 1/1; background-color: #fff;
  background-image: linear-gradient(#0b3d3a22 1px, transparent 1px), linear-gradient(90deg, #0b3d3a22 1px, transparent 1px);
  background-size: 10% 10%; border: 3px solid var(--teal-700); border-radius: 12px; box-shadow: var(--shadow); cursor: crosshair;
}
.amsler-center-dot { position: absolute; top: 50%; left: 50%; width: 10px; height: 10px; background: var(--amber-600); border-radius: 50%; transform: translate(-50%,-50%); box-shadow: 0 0 0 6px rgba(224,138,31,.2); }
.amsler-mark { position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: rgba(224,60,31,.55); animation: markPop .3s ease; }
@keyframes markPop { from { transform: scale(0); } to { transform: scale(1); } }

/* Cuestionario de síntomas Amsler */
.amsler-quiz { margin-top: 56px; max-width: 900px; margin-left: auto; margin-right: auto; }
.quiz-table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); margin-top: 10px; }
.quiz-table { width: 100%; border-collapse: collapse; background: #fff; min-width: 560px; }
.quiz-table th, .quiz-table td { padding: 14px 16px; border-bottom: 1px solid var(--teal-100); text-align: left; }
.quiz-table thead th { background: var(--teal-600); color: #fff; font-weight: 700; }
.quiz-table thead th:first-child { background: var(--teal-700); }
.quiz-table tbody th { font-weight: 600; color: var(--ink); font-size: .95rem; }
.quiz-table tbody tr:last-child th, .quiz-table tbody tr:last-child td { border-bottom: none; }
.quiz-cell { white-space: nowrap; }
.quiz-cell label { display: inline-flex; align-items: center; gap: 6px; margin-right: 16px; font-weight: 600; color: var(--ink-light); cursor: pointer; }
.quiz-cell input[type="radio"] { width: 18px; height: 18px; accent-color: var(--teal-600); cursor: pointer; }
.quiz-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 22px; }
.quiz-result { margin-top: 18px; padding: 16px 22px; border-radius: 12px; font-weight: 600; }
.quiz-result.ok { background: var(--teal-100); color: var(--teal-800, var(--teal-700)); }
.quiz-result.warning { background: #fff0ec; color: #a13f22; border: 1px solid #f3c3b2; }
.quiz-result.incomplete { background: #fff7e8; color: #7a5417; border: 1px solid #f2d9a6; }

/* Cuestionario Amsler: tarjetas apiladas en pantallas angostas (evita scroll horizontal en celulares) */
@media (max-width: 640px) {
  .quiz-table-wrap { overflow-x: visible; box-shadow: none; border-radius: 0; }
  .quiz-table { min-width: 0; width: 100%; }
  .quiz-table thead { display: none; }
  .quiz-table, .quiz-table tbody, .quiz-table tr, .quiz-table th, .quiz-table td { display: block; width: 100%; }
  .quiz-table tbody tr {
    margin-bottom: 18px; border: 1px solid var(--teal-100); border-radius: var(--radius);
    overflow: hidden; box-shadow: var(--shadow);
  }
  .quiz-table tbody tr:last-child { margin-bottom: 0; }
  .quiz-table tbody th {
    background: var(--teal-100); color: var(--teal-800, var(--teal-700)); padding: 14px 16px; border-bottom: 1px solid #fff;
  }
  .quiz-table td.quiz-cell { padding: 12px 16px; border-bottom: 1px solid var(--teal-100); white-space: normal; }
  .quiz-table td.quiz-cell:last-child { border-bottom: none; }
  .quiz-table td.quiz-cell::before {
    content: attr(data-label); display: block; font-weight: 700; font-size: .82rem; text-transform: uppercase;
    letter-spacing: .04em; color: var(--teal-600); margin-bottom: 8px;
  }
}

/* ============ Flicker test ============ */
.flicker-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; align-items: center; margin-bottom: 10px; }
.flicker-stage { display: flex; justify-content: center; align-items: center; position: relative; }
.flicker-disc {
  width: min(260px, 70vw); aspect-ratio: 1/1; border-radius: 50%; background: var(--teal-600);
  box-shadow: var(--shadow-hover); transition: background-color .05s linear;
}
.flicker-center-dot { position: absolute; width: 10px; height: 10px; background: #fff; border-radius: 50%; box-shadow: 0 0 0 2px rgba(0,0,0,.2); }
.flicker-controls label { display: block; font-weight: 700; color: var(--teal-800, var(--teal-700)); margin-bottom: 10px; }
.flicker-controls input[type="range"] { width: 100%; accent-color: var(--teal-600); margin-bottom: 14px; }
.flicker-result { margin-top: 16px; padding: 14px 18px; border-radius: 12px; background: var(--teal-100); color: var(--teal-800, var(--teal-700)); font-weight: 600; }

.flicker-device {
  display: flex; align-items: center; gap: 26px; background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 24px; margin: 36px 0; max-width: 780px; margin-left: auto; margin-right: auto;
}
.flicker-device img { width: 120px; height: auto; flex: none; border-radius: 10px; }
.flicker-device h3 { margin-bottom: 6px; }
.flicker-device p { margin: 0; color: var(--ink-light); }

/* ============ Videos ============ */
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-bottom: 20px; }
.video-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; transition: transform .3s ease, box-shadow .3s ease; }
.video-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.video-embed { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #0b3d3a; margin-bottom: 14px; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-card h3 { font-size: 1.05rem; margin-bottom: 6px; }

/* ============ Testimonials ============ */
.testimonial-carousel { max-width: 760px; margin: 0 auto; }
.testimonial-track { position: relative; min-height: 190px; }
.testimonial-card {
  position: absolute; inset: 0; margin: 0; background: #fff; border-radius: var(--radius); padding: 36px 40px;
  box-shadow: var(--shadow); opacity: 0; transform: translateX(30px); transition: opacity .5s ease, transform .5s ease; pointer-events: none;
}
.testimonial-card.active { opacity: 1; transform: translateX(0); pointer-events: auto; }
.testimonial-card p { font-size: 1.1rem; color: var(--ink); font-style: italic; }
.testimonial-card footer { color: var(--teal-700); font-weight: 700; font-size: 1rem; }
.testimonial-dots { display: flex; justify-content: center; gap: 10px; margin-top: 24px; }
.testimonial-dots button { width: 10px; height: 10px; border-radius: 50%; border: none; background: var(--teal-100); cursor: pointer; transition: background .3s, transform .3s; }
.testimonial-dots button.active { background: var(--teal-600); transform: scale(1.3); }

/* ============ Newsletter ============ */
.newsletter { background: linear-gradient(135deg, var(--teal-700), var(--teal-900)); color: #fff; }
.newsletter-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.newsletter h2 { color: #fff; }
.newsletter p { color: rgba(255,255,255,.85); }
.newsletter-fields { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter-fields input { flex: 1; min-width: 160px; padding: 14px 18px; border-radius: 999px; border: none; font-size: .95rem; }
.newsletter-fields input:focus { outline: 3px solid var(--amber-500); }
.form-msg { margin-top: 12px; font-weight: 600; font-size: 1rem; min-height: 1.2em; }

/* ============ Contact ============ */
.contact-grid { align-items: start; }
.contact-form { display: flex; flex-direction: column; gap: 14px; background: #fff; padding: 32px; border-radius: var(--radius); box-shadow: var(--shadow); }
.contact-form label { font-weight: 700; font-size: 1rem; color: var(--teal-800, var(--teal-700)); }
.contact-form input, .contact-form textarea {
  padding: 12px 14px; border: 1.5px solid #d8e4e2; border-radius: 10px; font: inherit; resize: vertical; transition: border-color .25s, box-shadow .25s;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--teal-600); box-shadow: 0 0 0 4px var(--teal-100); }

/* ============ Footer ============ */
.site-footer { background: #0b241f; color: #cfe3df; padding: 60px 0 0; }
.footer-inner { display: grid; grid-template-columns: 1.2fr 1fr 1.3fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand .logo { color: #fff; }
.footer-brand p { color: #9db8b2; margin-top: 10px; font-size: 1rem; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: #cfe3df; font-size: 1.05rem; transition: color .2s; }
.footer-links a:hover { color: var(--amber-500); }
.footer-disclaimer p { font-size: .95rem; color: #9db8b2; margin: 0; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding: 22px 0; font-size: .95rem; color: #9db8b2; }

.visit-counter { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.counter-digits {
  display: inline-flex; gap: 3px; font-family: 'Consolas', monospace; background: #05130f; color: var(--amber-500);
  padding: 6px 10px; border-radius: 6px; letter-spacing: 2px; box-shadow: inset 0 0 6px rgba(0,0,0,.5); font-variant-numeric: tabular-nums;
}

.back-to-top {
  position: fixed; bottom: 26px; right: 26px; width: 48px; height: 48px; border-radius: 50%; border: none;
  background: var(--teal-600); color: #fff; font-size: 1.3rem; cursor: pointer; box-shadow: var(--shadow-hover);
  opacity: 0; pointer-events: none; transform: translateY(12px); transition: opacity .3s, transform .3s, background .3s; z-index: 500;
}
.back-to-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top:hover { background: var(--teal-700); }

/* ============ Reveal animations ============ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .blob, .hero-media img, .scroll-cue span { animation: none; }
}

/* ============ Responsive ============ */
@media (max-width: 480px) {
  .logo-img { height: 38px; }
}

@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .grid-2, .grid-2.reverse { grid-template-columns: 1fr; direction: ltr; }
  .newsletter-inner { grid-template-columns: 1fr; text-align: center; }
  .newsletter-fields { justify-content: center; }
  .footer-inner { grid-template-columns: 1fr; }
  .amsler-wrap { grid-template-columns: 1fr; }
  .flicker-wrap { grid-template-columns: 1fr; }
  .cards-3 { grid-template-columns: repeat(2, 1fr); }
  .video-grid { grid-template-columns: 1fr; }
  .flicker-device { flex-direction: column; text-align: center; }
}

@media (max-width: 1300px) {
  .main-nav {
    position: fixed; top: 88px; left: 0; right: 0; height: calc(100vh - 88px); height: calc(100dvh - 88px); background: #fff;
    transform: translateX(100%); transition: transform .35s ease; overflow-y: auto; padding: 20px 0;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; align-items: stretch; padding: 0 24px; gap: 4px; }
  .nav-link { padding: 14px 16px; }
  .menu-toggle { display: flex; }
  .dropdown {
    position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
    background: var(--bg-alt); margin: 2px 0 10px; padding: 4px;
  }
  .dropdown a.dropdown-link { padding: 12px 16px; font-size: 1rem; }
  .has-dropdown > a.nav-link { font-weight: 700; }
  .cards-3 { grid-template-columns: 1fr; }
  .hero { padding-top: 120px; }
  .hero-stats { gap: 20px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ============ Botones destacados en naranja (Contacto, Suscribirme, Enviar mensaje) ============ */
.btn-orange.btn-orange, .nav-cta.btn-orange {
  background: var(--orange-600);
  color: var(--ink) !important;
  box-shadow: 0 8px 20px rgba(230,134,0,.35);
}
.btn-orange.btn-orange:hover, .nav-cta.btn-orange:hover,
.btn-orange.btn-orange.active, .nav-cta.btn-orange.active {
  background: var(--orange-700);
  color: var(--ink) !important;
}
