/* ============================================
   ZEISS SMILE LANDING — style.css
   Marca: AstaTec | Manual de Marca v1
   Colores: #28346D #FAF7E8 #E9E9E9 #141E8C #FFF
   Tipografía principal: Montserrat
   ============================================ */

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

:root {
  --blue-dark:   #28346D;
  --blue-main:   #141E8C;
  --cream:       #FAF7E8;
  --gray-light:  #E9E9E9;
  --white:       #FFFFFF;
  --orange:      #E07B20;
  --text:        #111111;
  --text-mid:    #444444;
  --text-light:  #888888;
  --border:      #D8DCEA;
  --font:        'Montserrat', sans-serif;
  --max-w:       1280px;
  --radius:      16px;
}

html  { scroll-behavior: smooth; }
body  {
  font-family: var(--font);
  font-size: 15px;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

img   { display: block; max-width: 100%; }
a     { text-decoration: none; }

/* ── CONTAINER ── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
}

/* ── SECTION SPACING ── */
section { padding: 80px 0; }

/* ── SECTION HEADERS ── */
.sec-head          { text-align: center; margin-bottom: 48px; }
.sec-head h2       {
  font-size: 28px; font-weight: 600;
  color: var(--blue-main); letter-spacing: -0.03em;
  margin-bottom: 14px; line-height: 1.15;
}
.sec-head p        {
  font-size: 15px; color: var(--text-mid);
  line-height: 1.7; max-width: 680px; margin: 0 auto;
}

/* ── DIVIDER ── */
.sec-divider {
  width: 200px;
    height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin: 0 auto;
}

/* ============================================
   NAV
   ============================================ */
#nav-wrap {
  position: absolute;
  top: 120px;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  padding: 20px 24px;
}

#nav-wrap.is-sticky {
  position: fixed;
  top: 0;
}
#main-nav {
  pointer-events: all;
  display: inline-flex; align-items: center; justify-content: center;
  background: url('nav-bg.png') center/cover no-repeat;
  backdrop-filter: blur(5.7px);
  -webkit-backdrop-filter: blur(5.7px);
  border-radius: 50px;
  padding: 12px 32px;
  border: solid 1px white;
}
/* logo oculto en desktop, visible solo en mobile */
.nav-logo {
  display: none;
  font-size: 18px; font-weight: 600;
  color: var(--blue-dark); letter-spacing: -0.04em;
  white-space: nowrap;
}
.nav-links {
  display: flex; align-items: center; gap: 0;
  list-style: none;
}
.nav-links a {
  display: block;
  font-size: 12px; font-weight: 600;
  color: var(--blue-dark); letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 6px 14px; border-radius: 30px;
  white-space: nowrap;
  transition: transform .25s cubic-bezier(.215,.61,.355,1), opacity .2s;
}
.nav-links a:hover { transform: scale(1.05); opacity: .8; }
.nav-hamburger {
  display: none; background: none; border: none;
  cursor: pointer; padding: 4px;
  flex-direction: column; gap: 5px;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--blue-dark); border-radius: 2px;
}

/* ── MOBILE MENU ── */
.mobile-menu {
  display: none; position: fixed; inset: 0;
  z-index: 2000; background: var(--white);
  flex-direction: column; overflow-y: auto;
}
.mobile-menu.open { display: flex; }
.mobile-menu-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}
.mobile-menu-close {
  background: none; border: none; cursor: pointer;
  font-size: 24px; color: var(--text); line-height: 1;
}
.mobile-nav-links { list-style: none; padding: 12px 0; }
.mobile-nav-links li a {
  display: block; padding: 16px 28px;
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.mobile-menu-footer { padding: 24px; }

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
}
.hero-video-wrap {
  position: absolute; inset: 0;
  z-index: 0; overflow: hidden;
  background: #050e5a;
}
.hero-video-wrap video {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0)     0%,
    rgba(0,0,0,0.08)  50%,
    rgba(0,0,0,0.60)  80%,
    rgba(0,0,0,0.72) 100%
  );
}
.hero-brand {
  position: absolute;
  top: 56px; left: 0; right: 0;
  text-align: center; z-index: 2;
}
.hero-brand h1 {
    font-size: clamp(32px, 5vw, 40px);
    font-weight: 700;
    color: var(--white);
    letter-spacing: -1px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}
.hero-content {
  position: relative; z-index: 2;
  padding: 0 64px 0px;
  max-width: 920px;
}
.hero-content h2 {
  font-size: clamp(26px, 4vw, 41px);
  font-weight: 600; color: var(--white);
  letter-spacing: -0.02em; line-height: 1.1;
  margin-bottom: 30px;
  text-shadow: 0 2px 16px rgba(0,0,0,0.3);
}
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── BUTTONS ── */
.btn-solid {
  background: var(--blue-main); color: var(--white);
  border: none; font-family: var(--font);
  font-size: 14px; font-weight: 700;
  padding: 13px 24px; border-radius: 30px;
  cursor: pointer; display: inline-block;
  transition: background .2s, transform .2s;
}
.btn-solid:hover { background: var(--blue-dark); transform: translateY(-2px); }

.btn-ghost {
  background: rgba(255,255,255,0.16);
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.55);
  font-family: var(--font);
  font-size: 14px; font-weight: 700;
  padding: 13px 24px; border-radius: 30px;
  cursor: pointer; display: inline-block;
  backdrop-filter: blur(6px);
  transition: background .2s, transform .2s;
}
.btn-ghost:hover { background: rgba(255,255,255,0.26); transform: translateY(-2px); }

/* ============================================
   QUE ES ZEISS SMILE
   ============================================ */
#que-es { background: var(--white); padding-top: 100px; }

.que-es-intro {
  max-width: 720px; margin: 0 auto 52px;
  text-align: center;
}
.que-es-intro h2 {
  font-size: 28px; font-weight: 600;
  color: var(--blue-main); letter-spacing: -0.03em;
  margin-bottom: 20px;
}
.que-es-intro p {
  font-size: 15px; line-height: 1.8;
  color: var(--text-mid); margin-bottom: 10px;
}

/* Steps box */
.steps-box {
  background: var(--blue-main);
  border-radius: 24px;
  padding: 48px 40px 40px;
}
.steps-box h3 {
  font-size: 28px; font-weight: 600;
  color: var(--white); text-align: center;
  margin-bottom: 32px; letter-spacing: -0.02em;
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Step card hover effect */
.step-card {
  position: relative; border-radius: 14px;
  overflow: hidden; cursor: default;
  aspect-ratio: 16/10;
  background: #1a2fa0;
}
.step-card img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: opacity .45s ease;
}
.step-card-front {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(to top, rgba(0,0,0,.55) 0%, rgba(0,0,0,0) 55%);
  display: flex; align-items: flex-end;
  padding: 30px 20px;
  transition: opacity .35s ease;
}
.step-card-front span {
  font-size: 28px; font-weight: 600;
  color: var(--white); letter-spacing: -0.02em;
  line-height: 1.2;
}
.step-card-hover {
  position: absolute; inset: 0; z-index: 3;
  background: rgba(255,255,255,0.88);
  border-radius: 14px;
  display: flex; flex-direction: column;
  justify-content: flex-end;
  padding: 22px 20px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity .35s ease, transform .35s ease;
}
.step-card-hover h4 {
  font-size: 28px; font-weight: 600;
  color: var(--text); margin-bottom: 8px;
  letter-spacing: -0.03em;
}
.step-card-hover p {
  font-size: 16px; color: var(--text-mid);
  line-height: 1.2;
}
.step-card:hover img        { opacity: 1; }
.step-card:hover .step-card-front { opacity: 0; }
.step-card:hover .step-card-hover { opacity: 1; transform: translateY(0); pointer-events: all; }
.step-card:hover { box-shadow: 0 12px 40px rgba(0,0,0,0.18); }

/* Badges inside box */
.steps-badges {
  margin-top: 28px;
  display: flex; flex-direction: column; gap: 8px;
}
.steps-badges p {
  font-size: 16px; color: var(--white);
  line-height: 1.5; text-align: center;
}
.steps-badges strong { font-weight: 700; }

/* ============================================
   COMO FUNCIONA
   ============================================ */
#como-funciona { background: var(--white); }

.video-wrap {
  border-radius: 20px; overflow: hidden;
  aspect-ratio: 16/9; background: #000;
  margin-top: 32px;
}
.video-wrap video {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  cursor: pointer;
}
.video-caption {
  text-align: center; margin-top: 14px;
  font-size: 13px; font-style: italic;
  color: var(--text-light);
}

/* ============================================
   BENEFICIOS
   ============================================ */
#beneficios { background: var(--white); }

.beneficios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* shared card base */
.ben-card {
  position: relative;
  border-radius: 18px; overflow: hidden;
  aspect-ratio: 16/10; cursor: default;
  background: #ccc;
}
.ben-card img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: opacity .45s ease;
}
.ben-card-front {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(to top, rgba(0,0,0,.60) 0%, rgba(0,0,0,0) 55%);
  display: flex; align-items: flex-end;
  padding: 30px 20px;
  transition: opacity .35s ease;
}
.ben-card-front span {
  font-size: 26px; font-weight: 600;
  color: var(--white); letter-spacing: -0.02em;
  line-height: 1.2;
}
.ben-card-hover {
  position: absolute; inset: 0; z-index: 3;
  background: rgba(255,255,255,0.88);
  border-radius: 18px;
  display: flex; flex-direction: column;
  justify-content: flex-end;
  padding: 22px 20px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .35s ease, transform .35s ease;
}
.ben-card-hover h4 {
  font-size: 26px; font-weight: 700;
  color: var(--text); margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.ben-card-hover p {
  font-size: 16px; color: var(--text-mid);
  line-height: 1.2;
}
.ben-card:hover img         { opacity: 1; }
.ben-card:hover .ben-card-front  { opacity: 0; }
.ben-card:hover .ben-card-hover  { opacity: 1; transform: translateY(0); pointer-events: all; }
.ben-card:hover { box-shadow: 0 12px 40px rgba(0,0,0,0.18); }

/* text-only card (Mínima alteración) */
.ben-card.text-only {
  background: var(--gray-light);
  display: flex; flex-direction: column;
  justify-content: flex-end;
  padding: 22px 20px;
}
.ben-card.text-only img,
.ben-card.text-only .ben-card-front,
.ben-card.text-only .ben-card-hover { display: none; }
.ben-card.text-only h4 {
  font-size: 20px; font-weight: 600;
  color: var(--text); margin-bottom: 8px;
  letter-spacing: -0.03em;
}
.ben-card.text-only p {
  font-size: 13px; color: var(--text-mid); line-height: 1.6;
}

/* ============================================
   SMILE VS LASIK
   ============================================ */
#smile-vs-lasik { background: var(--white); }

/* ── DESKTOP ── */
.vs-outer {
  background: var(--blue-main);
  padding: 45px; overflow: hidden;
  margin-top: 40px;
  border-radius: 22px;
}
.vs-inner {
  background: var(--gray-light);
  border-radius: 22px;
  margin: 5px; overflow: hidden;
}
.vs-table {
  width: 100%; border-collapse: collapse;
}
.vs-table thead th {
  padding: 22px 28px;
  font-size: 18px; font-weight: 700;
  color: var(--blue-main); text-align: center !important;
  letter-spacing: -0.01em;
}
.vs-table thead th:first-child { text-align: left; }
.vs-table tbody tr { border-top: 1px solid rgba(180,190,220,.5); }
.vs-table tbody td {
  padding: 20px 28px;
  font-size: 14px; color: var(--text-mid);
  text-align: center; line-height: 1.4;background: white;
}
.vs-table tbody td:first-child {
  text-align: center !important; font-weight: 700; color: var(--text);
}

/* ── MOBILE: ocultar tabla, mostrar acordeón ── */
.vs-mobile { display: none; }

@media (max-width: 640px) {
  .vs-outer  { display: none; }
  .vs-mobile {
    display: block; margin-top: 24px;
    background: var(--blue-main);
    border-radius: 24px;
    padding: 16px;
    display: flex; flex-direction: column; gap: 8px;
  }
  .vs-mob-header {
    background: var(--cream);
    border-radius: 20px;
    padding: 14px 20px;
    font-size: 18px; font-weight: 700;
    color: var(--blue-main);
    text-align: center;
    margin-bottom: 10px;
  }

  .vs-mob-item { margin-bottom: 10px; }

  .vs-mob-btn {
    width: 100%;
    background: var(--white); color: var(--text);
    border: 1.5px solid var(--border);
    border-radius: 30px;
    padding: 16px 20px;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font); font-size: 15px; font-weight: 600;
    text-align: left; cursor: pointer;
    transition: border-radius .25s;
  }
  .vs-mob-btn.open {
    border-radius: 16px 16px 0 0;
    border-bottom-color: transparent;
  }
  .vs-mob-arrow {
    font-size: 18px; font-weight: 300;
    color: var(--text-light);
    transition: transform .25s, color .2s;
    flex-shrink: 0;
  }
  .vs-mob-btn.open .vs-mob-arrow { transform: rotate(90deg); color: var(--orange); }

  .vs-mob-body {
    max-height: 0; overflow: hidden;
    background: var(--cream);
    border: 1.5px solid var(--border);
    border-top: none;
    border-radius: 0 0 16px 16px;
    transition: max-height .35s ease;
    border: 0px !important;
  }

  .vs-mob-row {
    display: flex; align-items: center;
    padding: 0px;
    border-top: 1px solid rgba(180,190,220,.5);
    font-size: 14px;
  }
  .vs-mob-row:first-child { border-top: none; }
  .vs-mob-label {
    font-weight: 700; color: var(--blue-main);
    width: 50%; flex-shrink: 0;padding: 14px 20px;
  }
  .vs-mob-val {
    color: var(--text-mid);
    width: 50%;
    background:white;
    text-align: right;padding: 14px 20px;
  }
}

/* ============================================
   ESPECIALISTAS
   ============================================ */
#especialistas { background: var(--white); }

.map-wrap {
  border-radius: 20px; overflow: hidden;
  height: 460px; margin-top: 36px;
  border: 1px solid var(--border);
}
#map { width: 100%; height: 100%; min-height: 300px; }

.esp-cards-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px; margin-top: 36px;
  width: 100%;
  box-sizing: border-box;
}
.esp-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px; padding: 20px 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  transition: box-shadow .2s, transform .2s;
  min-width: 0;
  word-break: break-word;
  display: flex;
  flex-direction: column;
}
.esp-card:hover {
  box-shadow: 0 6px 24px rgba(20,30,140,.12);
  transform: translateY(-2px);
}
.esp-name     { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.esp-specialty{ font-size: 12px; color: var(--text-light); margin-bottom: 2px; }
.esp-clinic   { font-size: 13px; font-weight: 700; color: var(--blue-main); margin-bottom: 14px; }
.esp-row {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 12px; color: var(--text-mid);
  margin-bottom: 7px; line-height: 1.4;
}
.esp-row svg { flex-shrink: 0; margin-top: 1px; }
.btn-contactar {
  display: block; width: 100%;
  background: var(--blue-main); color: var(--white);
  border: none; border-radius: 10px;
  padding: 10px; margin-top: auto;
  padding-top: 10px;
  font-family: var(--font); font-size: 13px; font-weight: 700;
  cursor: pointer; transition: background .2s;
}
.btn-contactar:hover { background: var(--blue-dark); }

/* Leaflet popup */
.leaflet-popup-content-wrapper {
  border-radius: 14px !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15) !important;
  padding: 0 !important;
}
.leaflet-popup-content { margin: 0 !important; width: 280px !important; }
.popup-inner   { padding: 18px 18px 14px; font-family: var(--font); }
.popup-name    { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.popup-spec    { font-size: 12px; color: var(--text-light); margin-bottom: 2px; }
.popup-clinic  { font-size: 13px; font-weight: 700; color: var(--blue-main); margin-bottom: 12px; }
.popup-row     { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-mid); margin-bottom: 7px; }
.popup-btn {
  display: block; width: 100%;
  background: var(--blue-main); color: var(--white);
  border: none; border-radius: 10px; padding: 10px;
  font-family: var(--font); font-size: 13px; font-weight: 700;
  cursor: pointer; margin-top: 12px;
}

/* ============================================
   FAQ
   ============================================ */
#faq { background: var(--white); }

.faq-list { max-width: var(--max-w); margin: 0 auto; margin-top: 36px; }

.faq-item { margin-bottom: 10px; }

/* closed state */
.faq-btn {
  width: 100%;
  background: var(--blue-main); color: var(--white);
  border: none; border-radius: 30px;
  padding: 16px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  cursor: pointer;
  font-family: var(--font);     font-size: 17px;
    font-weight: 700;
  text-align: left; letter-spacing: -0.01em;
  transition: border-radius .25s, background .2s;
}
.faq-btn:hover { background: var(--blue-dark); }

/* open state: top pill stays blue, title turns orange */
.faq-btn.open {
  border-radius: 16px 16px 0 0;
  background: rgb(246, 246, 246);
  color: var(--blue-main);
}
.faq-arrow {
  flex-shrink: 0; font-size: 20px; font-weight: 300;
  color: rgba(255,255,255,.8);
  transition: transform .25s, color .2s;
  line-height: 1;
}
.faq-btn.open .faq-arrow { transform: rotate(90deg); color: var(--orange); }

/* answer panel */
.faq-body {
  max-height: 0; overflow: hidden;
  background: rgb(246, 246, 246);
  border-radius: 0 0 16px 16px;
  transition: max-height .35s ease;
}
.faq-body-inner {
      padding: 0px 24px 20px 24px;
  font-size: 17px; color: var(--text-mid);
  line-height: 1.25;
}

/* ============================================
   CTA FINAL
   ============================================ */

.cta-final {
  background: var(--blue-main);
  border-radius: 20px;
  padding: 56px 60px 80px 60px;
  display: flex; align-items: center;
  justify-content: space-between; gap: 40px;
}
.cta-text h2 {
  font-size: 28px; font-weight: 600;
  color: var(--white); letter-spacing: -0.03em;
  margin-bottom: 10px; line-height: 1.15;
}
.cta-text p {
  font-size: 14px; color: rgba(255,255,255,.75);
  line-height: 1.7; max-width: 500px;
}
.btn-cta-white {
  background: var(--cream); color: var(--blue-main);
  border: none; font-family: var(--font);
  font-size: 14px; font-weight: 700;
  padding: 14px 28px; border-radius: 30px;
  white-space: nowrap; cursor: pointer;
  flex-shrink: 0;
  transition: background .2s, transform .2s;
  display: inline-block;
}
.btn-cta-white:hover { background: var(--white); transform: translateY(-2px); }

/* ============================================
   FOOTER
   ============================================ */
.footer-wrap {     margin-top: -30px; }
footer {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-radius: 20px;
  padding: 16px 32px;
  text-align: center;
}
footer p {
  font-size: 12px; color: var(--text-light); line-height: 1.6;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1100px) {
  .esp-cards-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-logo  { display: block; }
  #main-nav  { width: calc(100% - 32px); justify-content: space-between; }
  .nav-hamburger { display: flex; }
  .hero-content  { padding: 0 32px 60px; }
  .steps-grid, .beneficios-grid { grid-template-columns: 1fr 1fr; }
  .cta-final { flex-direction: column; padding: 40px 32px; }
}
@media (max-width: 640px) {
  section { padding: 60px 0; }
  .container { padding: 0 20px; }
  .steps-grid, .beneficios-grid { grid-template-columns: 1fr; }
  .esp-cards-grid { grid-template-columns: 1fr; }
  .cta-wrap, .footer-wrap { padding-left: 16px; padding-right: 16px; }
  .hero-content { padding: 0 20px 50px; }
  .map-wrap { height: 320px; }
  #map { width: 100%; height: 100%; min-height: 500px; }
}

/* ── GOOGLE MAPS InfoWindow ── */
/* ── GOOGLE MAPS InfoWindow ── */
.gm-style .gm-style-iw-c {
  border-radius: 14px !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15) !important;
  padding: 0 !important;
  max-width: 300px !important;
}
.gm-style .gm-style-iw-d {
  overflow: auto !important;
  padding: 0 !important;
  max-height: none !important;
}
.gm-style .gm-style-iw-d::-webkit-scrollbar { display: none; }
.gm-style .gm-style-iw-t::after { display: none; }
.gm-style .gm-style-iw-ch { display: none !important; }

/* botón cerrar */
.gm-ui-hover-effect {
  position: absolute !important;
  top: 8px !important;
  right: 8px !important;
  width: 28px !important;
  height: 28px !important;
  opacity: 0.7 !important;
  background: var(--white) !important;
  border-radius: 50% !important;
}
.gm-ui-hover-effect span {
  width: 14px !important;
  height: 14px !important;
  margin: 7px !important;
}
