/* Exámenes por categoría en columnas */
.exam-categories--row {
  display: flex;
  flex-direction: row;
  gap: 24px;
  justify-content: center;
  margin-top: 24px;
}
.exam-category {
  flex: 0 1 320px;
  max-width: 360px;
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius2);
  box-shadow: var(--shadow);
  padding: 18px 14px 14px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-height: 370px;
  overflow-y: auto;
}
.exam-category__title {
  margin: 0 0 10px 0;
  font-size: 20px;
  color: var(--navy);
  text-align: center;
}
.exam-category__list {
  width: 100%;
  margin: 0;
  padding-left: 18px;
}
.exam-category.exam-category--procedimientos {
  width: 70%;
  max-width: 800px;
  margin: 32px auto 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius2);
  box-shadow: var(--shadow);
  padding: 18px 14px 14px 14px;
  min-height: 80px;
}
@media (max-width: 900px) {
  .exam-categories--row {
    flex-direction: column;
    gap: 16px;
  }
  .exam-category {
    min-width: 0;
    width: 100%;
  }
}
:root{
  --bg: #ffffff;
  --text: #16223b;
  --muted: #5b7490;
  --line: #cce8f4;
  --alt: #f0f8fc;
  --blue: #1a80c2;       /* azul medio del ícono */
  --sky: #00c4de;        /* turquesa/cian del gradiente */
  --navy: #1b2d78;       /* azul marino oscuro "CHILE" */
  --green: #1ec56b;
  --soft: #e4f5fb;       /* fondo suave tono cian */
  --shadow: 0 18px 40px rgba(26, 128, 194, .13);
  --radius: 16px;
  --radius2: 22px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: "Source Sans 3", "Segoe UI", Tahoma, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
}

img{ max-width: 100%; height: auto; }

h1, h2, h3{
  font-family: "Poppins", "Segoe UI", sans-serif;
  color: var(--navy);
}

a{ color: inherit; text-decoration: none; }
.link{ text-decoration: underline; text-underline-offset: 3px; color: var(--blue); }

.container{
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar .container,
.header .container{
  width: min(1320px, calc(100% - 32px));
}

.sr-only{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden;
  clip:rect(0,0,0,0); white-space:nowrap; border:0;
}

/* Topbar */
.topbar{
  background: #fff;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.topbar__inner{
  display:flex;
  gap: 14px;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  flex-wrap: wrap;
}
.topbar__item{ display:flex; align-items:center; gap: 8px; color: var(--muted); }
.dot{ width:10px; height:10px; border-radius: 999px; display:inline-block; }
.dot--blue{ background: var(--sky); }

/* Header */
.header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.header__inner{
  display:flex;
  align-items:center;
  justify-content: flex-start;
  padding: 10px 0;
  gap: 14px;
}

.brand{
  display:flex;
  align-items:center;
  gap: 12px;
  flex-shrink: 0;
}
.brand__logo{
  height: 70px;
  width: auto;
  display: block;
}
.brand__name{ font-weight: 800; }
.brand__tag{ font-size: 12px; color: var(--muted); margin-top: 2px; }

.nav{
  display:flex;
  align-items:center;
  gap: 10px;
  flex: 1;
  justify-content: center;
}
.nav__toggle{
  display:none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  cursor: pointer;
}
.nav__toggleLine{ display:block; width: 18px; height:2px; background: var(--text); margin: 4px 0; }

.nav__links{
  display:flex;
  align-items:center;
  gap: 14px;
}
.nav__link{
  color: var(--muted);
  font-weight: 600;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 18px;
  white-space: nowrap;
}
.nav__link:hover{ background: var(--alt); color: var(--text); }
.nav__cta{
  margin-left: 4px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  white-space: nowrap;
  border-radius: 999px;
  border: 1px solid #9ed8ee;
  background: linear-gradient(135deg, #ffffff 0%, #f2fbff 100%);
  color: var(--navy);
  padding: 11px 24px;
  box-shadow: 0 10px 24px rgba(26, 128, 194, .16);
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease, background .24s ease;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav__cta::after{
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(255,255,255,0) 15%, rgba(255,255,255,.65) 50%, rgba(255,255,255,0) 85%);
  transform: translateX(-150%);
  transition: transform .55s ease;
}

.nav__cta::before{
  content: "\01F489";
  position: absolute;
  right: 8px;
  top: 50%;
  font-size: 18px;
  opacity: 0;
  pointer-events: none;
  filter: drop-shadow(0 4px 8px rgba(26, 128, 194, .25));
  transform: translate(12px, -50%) rotate(-22deg) scale(.92);
  transition: opacity .25s ease, transform .25s ease;
  display: inline-block;
}

.nav__cta:hover{
  transform: translateY(-2px) scale(1.02);
  border-color: #2ecf7a;
  background: linear-gradient(135deg, #f7fffb 0%, #e9fff4 100%);
  box-shadow: 0 16px 34px rgba(26, 128, 194, .24), 0 0 0 3px rgba(46, 207, 122, .18);
}

.nav__cta:hover::after{
  transform: translateX(150%);
}

.nav__cta:hover::before{
  opacity: 1;
  transform: translate(0, -50%) rotate(-22deg) scale(1);
  animation: syringe-inject .95s cubic-bezier(.22,.61,.36,1);
}

@keyframes syringe-inject{
  0%{ transform: translate(12px, -50%) rotate(-22deg) scale(.92); }
  40%{ transform: translate(-2px, -50%) rotate(-22deg) scale(1.03); }
  68%{ transform: translate(3px, -50%) rotate(-22deg) scale(.98); }
  100%{ transform: translate(0, -50%) rotate(-22deg) scale(1); }
}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-weight: 700;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  user-select: none;
}
.btn:active{ transform: translateY(1px); }
.btn--primary{
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--sky));
  border-color: transparent;
  box-shadow: var(--shadow);
}
.btn--primary:hover{ transform: translateY(-1px); }
.btn--whatsapp{
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, #18b866, #26d37b);
  border-color: transparent;
  box-shadow: 0 16px 36px rgba(24, 184, 102, .28);
}
.btn--whatsapp::after{
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(255,255,255,0) 15%, rgba(255,255,255,.45) 50%, rgba(255,255,255,0) 85%);
  transform: translateX(-130%);
  transition: transform .5s ease;
}
.btn--whatsapp:hover{
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 20px 42px rgba(24, 184, 102, .36), 0 0 0 3px rgba(38, 211, 123, .18);
  filter: saturate(1.08);
}
.btn--whatsapp:hover::after{ transform: translateX(130%); }
.btn--ghost{
  background: #fff;
}
.btn--ghost:hover{ background: var(--alt); }
.btn--block{ width: 100%; }

/* Hero */
.hero{
  position: relative;
  padding: 48px 0 30px;
  background: linear-gradient(160deg, #e6f6fb 0%, #ffffff 60%);
}
.hero__grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
  position: relative;
  z-index: 1;
  max-width: 680px;
}
.pill{
  display:inline-flex;
  align-items:center;
  gap: 10px;
  background: var(--soft);
  border: 1px solid var(--line);
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 700;
}
.hero__title{
  font-size: clamp(28px, 3.2vw, 44px);
  margin: 14px 0 10px;
  line-height: 1.15;
  color: var(--navy);
}
.accent{
  background: linear-gradient(135deg, var(--blue), var(--sky));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__subtitle{
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 17px;
  max-width: 52ch;
}
.hero__actions{ display:flex; gap: 12px; flex-wrap: wrap; }

.trustRow{
  margin-top: 22px;
  display:flex;
  gap: 0;
  flex-wrap: wrap;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
}
.trustRow__item{
  flex: 1 1 180px;
  padding: 14px 16px;
  border-right: 1px solid var(--line);
}
.trustRow__item:last-child{ border-right: none; }
.trustRow__kpi{ font-weight: 900; }
.trustRow__text{ color: var(--muted); font-size: 13px; }

/* Cards & Forms */
.card{
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius2);
  box-shadow: var(--shadow);
  padding: 18px;
}
.card__title{ margin: 0 0 6px; font-size: 18px; }
.card__hint{ margin: 0 0 14px; color: var(--muted); font-size: 14px; }

.section--carousel{
  padding: 38px 0;
  background:
    radial-gradient(1200px 280px at 50% -40px, rgba(0, 196, 222, .12), transparent 55%),
    linear-gradient(135deg, #e4f5fb 0%, #f0f8fc 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.carousel-center{
  width: min(1000px, calc(100vw - 40px));
  max-width: 1000px;
  margin: 0 auto;
}
.carousel{
  position: relative;
  border: 1px solid rgba(157, 220, 240, .95);
  border-radius: 26px;
  padding: 24px 24px;
  background: linear-gradient(180deg, rgba(255,255,255,.95) 0%, rgba(255,255,255,.9) 100%);
  backdrop-filter: blur(2px);
  box-shadow: 0 26px 56px rgba(15, 71, 104, .16);
  text-align: center;
  width: 100%;
  overflow: hidden;
}
.slide{ display: none; }
.slide.is-active{
  display: block;
  animation: slide-fade-up .45s ease;
}
.slide__image{
  display: block;
  width: 100%;
  height: clamp(250px, 35vw, 400px);
  object-fit: cover;
  border-radius: 18px;
  margin: 0 auto 20px;
  border: 1px solid rgba(157, 220, 240, .95);
  box-shadow: 0 20px 34px rgba(23, 61, 102, .14);
}
.slide__title{
  margin: 0 0 12px;
  font-size: clamp(24px, 2.5vw, 28px);
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--navy);
  max-width: 28ch;
  margin-inline: auto;
}
.slide__text{
  margin: 0;
  color: #4f6885;
  font-size: clamp(14px, 1.2vw, 16px);
  max-width: 56ch;
  margin-inline: auto;
}
.carousel__actions{
  position: absolute;
  top: 50%;
  left: 22px;
  right: 22px;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  z-index: 4;
}

.carousel__arrow{
  width: 56px;
  height: 56px;
  border-radius: 999px;
  border: 1px solid rgba(157, 220, 240, .95);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(6px);
  color: var(--navy);
  font-size: 34px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 12px 28px rgba(27, 45, 120, .14);
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.carousel__arrow:hover{
  background: #fff;
  transform: scale(1.08);
  box-shadow: 0 16px 34px rgba(27, 45, 120, .2);
}

.carousel__arrow:focus-visible{
  outline: 3px solid rgba(26, 128, 194, .35);
  outline-offset: 2px;
}

@keyframes slide-fade-up{
  from{ opacity: 0; transform: translateY(8px); }
  to{ opacity: 1; transform: translateY(0); }
}

.form{ display:flex; flex-direction: column; gap: 12px; }
.formRow{ display:grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.field{ display:flex; flex-direction: column; gap: 6px; }
.field__label{ font-size: 13px; color: var(--muted); font-weight: 700; }
.field__input{
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 12px;
  font-size: 16px; /* accesible */
  outline: none;
}
.field__input:focus{
  border-color: rgba(14,165,233,.8);
  box-shadow: 0 0 0 4px rgba(14,165,233,.15);
}
.field__textarea{ resize: vertical; min-height: 96px; }
.form__small{ margin: 0; font-size: 12px; color: var(--muted); }

.section{
  padding: 54px 0;
}
.section--alt{
  background: var(--alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section__head{
  margin: 0 auto 22px;
  text-align: center;
  max-width: 760px;
}
.section__title{ margin: 0 0 6px; font-size: 30px; }
.section__subtitle{ margin: 0; color: var(--muted); }

/* Grids */
.grid3{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.feature{
  border: 1px solid var(--line);
  border-radius: var(--radius2);
  padding: 18px;
  background: #fff;
  transition: transform .18s ease, box-shadow .18s ease;
}
.feature:hover{ transform: translateY(-2px); box-shadow: var(--shadow); }
.feature__icon{
  width: 48px; height: 48px;
  display:grid; place-items:center;
  border-radius: 999px;
  background: var(--soft);
  color: var(--blue);
  font-size: 22px;
}
.feature__title{ margin: 10px 0 6px; }
.feature__text{ margin: 0; color: var(--muted); }

.pricing{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.priceCard{
  border: 1px solid var(--line);
  border-radius: var(--radius2);
  background: #fff;
  padding: 18px;
  box-shadow: var(--shadow);
}
.priceCard__title{ margin: 0 0 6px; }
.priceCard__price{
  font-size: 28px;
  font-weight: 900;
  margin: 10px 0 8px;
}
.priceCard__text{ margin: 0 0 12px; color: var(--muted); }
.list{ margin: 10px 0 14px; padding-left: 18px; color: var(--muted); }
.note{ margin: 14px 0 0; color: var(--muted); }

/* Accordion */
.accordion{ display:flex; flex-direction: column; gap: 10px; }
.accItem{
  border: 1px solid var(--line);
  border-radius: var(--radius2);
  background: #fff;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.accItem__summary{
  list-style: none;
  cursor: pointer;
  padding: 16px 16px;
  display:flex;
  align-items:center;
  justify-content: space-between;
  font-weight: 900;
}
.accItem__summary::-webkit-details-marker{ display:none; }
.accItem__content{ padding: 0 16px 16px; color: var(--muted); }
.bullets{ margin: 0 0 12px; padding-left: 18px; }

/* Portal box */
.portal{
  margin-top: 14px;
  border: 1px dashed rgba(63,106,216,.35);
  border-radius: var(--radius2);
  padding: 16px;
  background: rgba(63,106,216,.05);
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.portal__title{ margin: 0; }
.portal__subtitle{ margin: 6px 0 0; color: var(--muted); }

/* Trust / logos */
.twoCol{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.card--trust{
  background: linear-gradient(180deg, #ffffff 0%, #f7fcff 100%);
  border-color: #b9e1f1;
  text-align: center;
}
.card--trust .card__title{ text-align: center; }
.card--trust .card__hint{ text-align: center; margin-top: 10px; }
.logoGrid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 10px;
  justify-items: center;
}
.logoBox{
  border: 1px solid var(--line);
  border-radius: 16px;
  min-height: 128px;
  width: 100%;
  padding: 20px 22px;
  background: linear-gradient(160deg, #ffffff 0%, #f3fbff 100%);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align:center;
  font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.7);
}
.logoBox__img{
  display: block;
  width: auto;
  max-width: min(100%, 320px);
  max-height: 98px;
  object-fit: contain;
  margin: 0 auto;
}
.logoBox__img--sis{
  max-width: min(100%, 340px);
  max-height: 110px;
}
.safe{
  display:flex;
  gap: 10px;
  align-items:flex-start;
  justify-content: center;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.safe__icon{ font-size: 18px; }
.safe__text{ color: var(--muted); }

.about{
  margin-top: 14px;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.about__box{
  border: 1px solid var(--line);
  border-radius: var(--radius2);
  padding: 18px;
  background: #fff;
  box-shadow: var(--shadow);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.about__box:hover{
  transform: translateY(-6px);
  border-color: #9ed8ee;
  box-shadow: 0 22px 42px rgba(26, 128, 194, .18);
}
.mapWrap{
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.mapWrap iframe{
  width: 100%;
  height: 280px;
  border: 0;
  display: block;
}
.muted{ color: var(--muted); }

/* Contact */
.contact{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 14px;
}
.stack{ display:flex; flex-direction: column; gap: 10px; }
.divider{ border: none; border-top: 1px solid var(--line); margin: 16px 0; }

.form-toast{
  position: fixed;
  top: 96px;
  right: 16px;
  z-index: 10000;
  max-width: min(92vw, 360px);
  color: #fff;
  padding: 14px 18px;
  border-radius: 12px;
  font-weight: 700;
  box-shadow: 0 16px 28px rgba(13, 38, 76, .28);
  transform: translateX(16px);
  opacity: 0;
  animation: toast-enter .28s ease forwards;
}

.form-toast--success{ background: linear-gradient(135deg, #1b2d78, #1a80c2); }
.form-toast--warning{ background: linear-gradient(135deg, #b25f00, #e18b1f); }
.form-toast--error{ background: linear-gradient(135deg, #8d1e2d, #cc3045); }

.form-toast.is-leaving{
  animation: toast-leave .28s ease forwards;
}

@keyframes toast-enter{
  to{
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes toast-leave{
  to{
    transform: translateX(20px);
    opacity: 0;
  }
}

/* WhatsApp float */
.waFloat{
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #18b866, #26d37b);
  border: 1px solid rgba(24, 184, 102, .2);
  box-shadow: 0 16px 30px rgba(24, 184, 102, .3);
}
.waFloat__icon{ font-size: 18px; }
.waFloat__text{ font-weight: 900; color: #fff; }

/* Testimonials */
.testimonials{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.testimonial{
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius2);
  padding: 18px;
  box-shadow: var(--shadow);
}
.testimonial__text{ margin: 0 0 12px; color: var(--text); }
.testimonial__meta{ color: var(--muted); font-weight: 600; }

/* Footer */
.footer{
  border-top: 1px solid var(--line);
  padding: 18px 0;
  background: #fff;
}
.footer__inner{
  display:flex;
  align-items:center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.footer__small{ color: var(--muted); font-size: 13px; }

/* ===== EFECTOS ESPECIALES ===== */

/* -- Punto pulsante topbar -- */
@keyframes pulse-dot {
  0%,100%{ box-shadow: 0 0 0 0 rgba(0,196,222,.6); }
  50%     { box-shadow: 0 0 0 7px rgba(0,196,222,0); }
}
.dot--pulse{
  animation: pulse-dot 1.6s ease infinite;
}

/* -- Línea ECG animada -- */
.ecg-banner{
  width: 100%;
  overflow: hidden;
  line-height: 0;
  background: #fff;
}
.ecg-svg{
  width: 100%;
  height: 56px;
  display: block;
}
@keyframes ecg-draw {
  from{ stroke-dashoffset: 2400; }
  to  { stroke-dashoffset: 0; }
}
@keyframes ecg-loop {
  0%  { stroke-dashoffset: 0; }
  100%{ stroke-dashoffset: -2400; }
}
.ecg-line{
  fill: none;
  stroke: url(#ecgGrad);
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 2400;
  animation: ecg-draw 2.4s cubic-bezier(.4,0,.2,1) forwards,
             ecg-loop 3.6s linear 2.4s infinite;
}
/* Gradiente inline vía filter para el trazo cian->azul */
.ecg-line{
  stroke: var(--sky);
  filter: drop-shadow(0 0 4px rgba(0,196,222,.55));
}

/* -- Cruces médicas flotantes de fondo -- */
.med-bg{
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
@keyframes float-cross {
  0%  { transform: translateY(110vh) rotate(0deg); opacity: 0; }
  5%  { opacity: .08; }
  95% { opacity: .08; }
  100%{ transform: translateY(-12vh) rotate(180deg); opacity: 0; }
}
.med-cross{
  position: absolute;
  bottom: -60px;
  font-size: 28px;
  color: var(--sky);
  animation: float-cross linear infinite;
}
.med-cross:nth-child(1){ left:  6%; animation-duration: 14s; animation-delay:  0s; font-size: 22px; }
.med-cross:nth-child(2){ left: 18%; animation-duration: 18s; animation-delay:  3s; font-size: 32px; }
.med-cross:nth-child(3){ left: 40%; animation-duration: 15s; animation-delay:  7s; font-size: 18px; }
.med-cross:nth-child(4){ left: 58%; animation-duration: 20s; animation-delay:  1s; font-size: 26px; }
.med-cross:nth-child(5){ left: 76%; animation-duration: 16s; animation-delay:  5s; font-size: 20px; }
.med-cross:nth-child(6){ left: 90%; animation-duration: 12s; animation-delay:  9s; font-size: 30px; }

/* Asegurar que el contenido quede sobre el fondo */
header, main, footer, .topbar{ position: relative; z-index: 1; }

/* ============================= */


.reveal{
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.is-visible{
  opacity: 1;
  transform: translateY(0);
}

/* ===== MAPA COMUNAS ===== */
.communes-map {
  width: 100%;
  height: 500px;
  border-radius: var(--radius2);
  box-shadow: var(--shadow);
  overflow: hidden;
  background: #f5f5f5;
  margin-top: 20px;
}

.selector-wrapper {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  z-index: 1000;
}

.selector-label {
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  font-family: "Poppins", sans-serif;
}

.searchable-select {
  position: relative;
  width: 100%;
  z-index: 1001;
}

.commune-search-input {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  border: 2px solid var(--line);
  border-radius: 10px;
  background: white;
  color: var(--text);
  font-family: "Source Sans 3", sans-serif;
  cursor: text;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(26, 128, 194, 0.08);
}

.commune-search-input::placeholder {
  color: var(--muted);
}

.commune-search-input:hover {
  border-color: var(--blue);
  box-shadow: 0 4px 12px rgba(26, 128, 194, 0.15);
}

.commune-search-input:focus {
  outline: none;
  border-color: var(--sky);
  box-shadow: 0 0 0 3px rgba(0, 196, 222, 0.1);
}

.select-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 2px solid var(--line);
  border-top: none;
  border-radius: 0 0 10px 10px;
  max-height: 300px;
  overflow-y: auto;
  display: none;
  z-index: 9999;
  box-shadow: 0 8px 16px rgba(26, 128, 194, 0.12);
}

.select-dropdown.active {
  display: block;
}

.select-option {
  padding: 12px 16px;
  cursor: pointer;
  color: var(--text);
  font-size: 14px;
  transition: all 0.2s ease;
  border-bottom: 1px solid var(--alt);
}

.select-option:last-child {
  border-bottom: none;
}

.select-option:hover {
  background-color: var(--soft);
  color: var(--blue);
  font-weight: 500;
}

.select-option.active {
  background: linear-gradient(135deg, rgba(0, 196, 222, 0.15) 0%, rgba(26, 128, 194, 0.15) 100%);
  color: var(--blue);
  font-weight: 600;
  border-left: 4px solid var(--sky);
  padding-left: 12px;
}

.select-option.hidden {
  display: none;
}

.select-option:empty {
  padding: 12px 16px;
  color: var(--muted);
  text-align: center;
}

.coverage-layout {
  margin-top: 14px;
  display: grid;
  grid-template-columns: minmax(280px, 380px) 1fr;
  gap: 16px;
  align-items: start;
}

.coverage-panel {
  position: relative;
  z-index: 20;
}

.coverage-map {
  position: relative;
  z-index: 1;
}

.coverage-map .mapWrap {
  border: none;
}

.coverage-map .communes-map {
  margin-top: 0;
  height: 520px;
}

.leaflet-container {
  border-radius: var(--radius2);
}

.commune-marker {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--sky) 0%, var(--blue) 100%);
  border: 3px solid white;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(26, 128, 194, 0.4);
  transition: all 0.3s ease;
}

.commune-marker:hover {
  transform: scale(1.2);
  box-shadow: 0 6px 18px rgba(26, 128, 194, 0.6);
}

.commune-popup {
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  border: none;
  overflow: hidden;
  min-width: min(280px, calc(100vw - 48px));
  max-width: calc(100vw - 32px);
}

.commune-popup .leaflet-popup-content {
  padding: 0;
  margin: 0;
  width: 100% !important;
}

.commune-popup-header {
  background: linear-gradient(135deg, var(--sky) 0%, var(--blue) 100%);
  color: white;
  padding: 18px;
  text-align: center;
  font-size: clamp(18px, 4vw, 22px);
  font-weight: 700;
  font-family: "Poppins", sans-serif;
  border-bottom: 4px solid var(--green);
}

.commune-popup-body {
  padding: 16px 18px;
}

.commune-popup-info {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 14px;
  color: var(--text);
}

.commune-popup-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--soft);
  border-radius: 8px;
  font-size: 16px;
}

.commune-popup-action {
  background: linear-gradient(135deg, var(--sky) 0%, var(--blue) 100%);
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: all 0.3s ease;
  font-family: "Poppins", sans-serif;
  margin-top: 8px;
}

.commune-popup-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(26, 128, 194, 0.4);
}

.commune-popup-action:active {
  transform: translateY(0);
}

/* Leaflet custom popup */
.leaflet-popup-close-button {
  color: var(--blue) !important;
  font-size: 20px !important;
  width: auto !important;
  height: auto !important;
  padding: 4px !important;
}

.leaflet-popup-close-button:hover {
  color: var(--navy) !important;
}

/* Responsive */
@media (max-width: 980px){
  .hero__grid{ grid-template-columns: 1fr; }
  .hero__card{ max-width: none; margin-left: 0; }
  .pricing{ grid-template-columns: 1fr; }
  .grid3{ grid-template-columns: 1fr; }
  .twoCol{ grid-template-columns: 1fr; }
  .about{ grid-template-columns: 1fr; }
  .coverage-layout{ grid-template-columns: 1fr; }
  .coverage-map .communes-map{ height: 430px; }
  .contact{ grid-template-columns: 1fr; }
  .testimonials{ grid-template-columns: 1fr; }
  .carousel{ padding: 20px 20px; }
  .slide__image{ height: clamp(220px, 36vw, 330px); }
  .slide__title{ font-size: clamp(22px, 2.8vw, 26px); }
  .slide__text{ font-size: clamp(13px, 1.8vw, 15px); }
  .section{ padding: clamp(36px, 6vw, 54px) 0; }
  .section__title{ font-size: clamp(25px, 4.8vw, 30px); }
}

@media (max-width: 860px){
  .nav{
    flex: 0 0 auto;
    margin-left: auto;
    justify-content: flex-end;
  }
  .nav__toggle{ display:inline-flex; }
  .nav__links{
    position: absolute;
    right: 16px;
    top: 118px;
    width: min(360px, calc(100vw - 32px));
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius2);
    box-shadow: var(--shadow);
    padding: 10px;
    display:none;
    flex-direction: column;
    align-items: stretch;
  }
  .nav__links.is-open{ display:flex; }
  .nav__link{ padding: 12px 10px; }
}
@media (max-width: 520px){
  .container{ width: min(1120px, calc(100% - 20px)); }
  .formRow{ grid-template-columns: 1fr; }
  .topbar__inner{ gap: 10px; }
  .trustRow{ flex-direction: column; }
  .trustRow__item{ border-right: none; border-bottom: 1px solid var(--line); }
  .trustRow__item:last-child{ border-bottom: none; }
  .brand__logo{ height: 40px; width: auto; }
  .section--carousel{ padding: 24px 0; }
  .carousel{ padding: 14px 10px 70px; border-radius: 20px; }
  .carousel__actions{
    top: auto;
    bottom: 14px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: 132px;
  }
  .carousel__arrow{
    width: 46px;
    height: 46px;
    font-size: 30px;
  }
  .slide__image{ height: 180px; border-radius: 14px; margin-bottom: 14px; }
  .slide__title{ font-size: clamp(22px, 7.2vw, 28px); }
  .slide__text{ font-size: clamp(14px, 4.2vw, 16px); }
  .coverage-map .communes-map{ height: 340px; }
  .communes-map{ height: 340px; }
  .exam-category{ max-height: none; }
  .exam-category.exam-category--procedimientos{ width: 100%; }
}

@media (max-width: 640px){
  .nav__cta{ width: 100%; }
  .commune-popup-body{ padding: 12px 14px; }
  .commune-popup-info{ font-size: 13px; gap: 10px; }
  .commune-popup-icon{ width: 28px; height: 28px; font-size: 14px; }
}