/* Home */

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--brand-deep);
  color: #ffffff;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


.hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  flex: 1;
  padding-top: var(--header-h);
}

.hero__content {
  display: flex;
  align-items: center;
  flex: 1;
  padding-top: var(--space-5);
  padding-bottom: var(--space-5);
}
.hero__copy { max-width: 780px; }

.hero__eyebrow { margin-bottom: var(--space-3); color: var(--accent); }
.hero__title { margin-bottom: var(--space-3); color: #ffffff; }
.hero__lead { max-width: 640px; margin-bottom: 0; color: var(--on-dark); }

/* Entrada del hero: fade-up de 600 ms, 100 ms entre cada elemento. */
.hero__copy > * { animation: hero-fade-up .6s var(--ease-out) both; }
.hero__copy > :nth-child(2) { animation-delay: .1s; }
.hero__copy > :nth-child(3) { animation-delay: .2s; }

/* Tarjetas de área: siguen la cascada (+80 ms). Van en CSS y no con AOS porque se ven al cargar:
   esperar al JS del CDN retrasaba el LCP en mobile. La animación va en la columna para no pisar el hover. */
.hero__areas-title,
.hero__areas .row > * { animation: hero-fade-up .6s var(--ease-out) both; }
.hero__areas-title { animation-delay: .3s; }
.hero__areas .row > :nth-child(1) { animation-delay: .38s; }
.hero__areas .row > :nth-child(2) { animation-delay: .46s; }
.hero__areas .row > :nth-child(3) { animation-delay: .54s; }
.hero__areas .row > :nth-child(4) { animation-delay: .62s; }
.hero__areas .row > :nth-child(5) { animation-delay: .7s; }

/* Zoom lento del video (o del poster) de 1 a 1.06 en 20 s. */
.hero__media { animation: hero-zoom 20s var(--ease-out) both; }

@keyframes hero-zoom {
  from { transform: scale(1); }
  to { transform: scale(1.06); }
}

@media (prefers-reduced-motion: reduce) {
  /* Sin zoom ni desplazamientos: el contenido aparece sin movimiento. */
  .hero__media,
  .hero__copy > *,
  .hero__areas-title,
  .hero__areas .row > * { animation: none; }
}

.hero__areas { padding-bottom: var(--space-5); }
.hero__areas-title {
  margin-bottom: var(--space-2);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 22px;
  font-weight: 600;
  color: #ffffff;
}

@media (min-width: 768px) {
  .hero { min-height: 880px; }
  :root { --header-h: 104px; }
}

/* ---------- Trayectoria ---------- */
.intro__title { margin-bottom: var(--space-3); }
.intro__lead { margin-bottom: var(--space-4); }

/* ---------- Titular ---------- */
/* Mobile: la foto va arriba, de borde a borde. Desktop: mitad izquierda de la franja, con todo el alto. */
.founder {
  position: relative;
  padding-top: 0;
  overflow: hidden; /* las cajas entran desde los costados: sin scroll horizontal */
}
.founder__media { margin-bottom: var(--space-5); }
.founder__photo {
  display: block;
  width: 100%;
  height: 360px;
  object-fit: cover;
  object-position: 72% 30%; /* el Dr. Torrealday está a la derecha de la foto: que no se corte al recortar */
}
.founder__name { margin-bottom: var(--space-1); }
.founder__role {
  margin-bottom: var(--space-3);
  font-weight: 600;
  color: var(--brand);
}
.founder__lead { margin-bottom: 0; }

@media (min-width: 992px) {
  .founder {
    display: flex;
    align-items: center;
    min-height: clamp(560px, 44vw, 760px);
    padding-top: var(--section-pad);
  }
  .founder > .container { position: relative; width: 100%; }
  .founder__media {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 50%;
    margin-bottom: 0;
  }
  .founder__photo { height: 100%; }
  .founder__copy { padding-left: var(--space-6); }
}

/* ---------- Traslado ---------- */
.transfer {
  padding-top: 56px;
  padding-bottom: 56px;
  background: var(--brand-deep);
  color: var(--on-dark);
}
.transfer__band {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
}
.transfer__info { display: flex; align-items: flex-start; gap: var(--space-3); }
.transfer__icon { flex: none; }
.transfer__title { margin-bottom: var(--space-1); color: #ffffff; }
.transfer__text { max-width: 640px; }
.transfer__cta { flex: none; }

@media (min-width: 992px) {
  .transfer__band {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* ---------- Opiniones (slider) ---------- */
.reviews__header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}
.reviews__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  margin-bottom: var(--space-4);
  text-align: center;
}
.reviews__google { width: auto; height: 26px; }
.reviews__brand-title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
  color: var(--ink);
}
.reviews__stars { display: flex; gap: 4px; color: var(--google-star); }
.reviews__profile { font-size: var(--fs-label); line-height: var(--lh-label); }

@media (min-width: 992px) {
  .reviews__body {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    gap: var(--space-4);
    align-items: center;
  }
  .reviews__brand { margin-bottom: 0; }
  .reviews__google { height: 32px; }
  /* Con la columna de marca al lado entran 2 tarjetas; desde 1200 px, 3 */
  .reviews .slider__item { flex-basis: calc((100% - var(--slider-gap)) / 2); }
}
@media (min-width: 1200px) {
  .reviews .slider__item { flex-basis: calc((100% - 2 * var(--slider-gap)) / 3); }
}

/* ---------- Sucursales ---------- */
.branches__header { max-width: 720px; margin-bottom: var(--space-5); }
.branches__note { margin-top: var(--space-4); color: var(--muted); }
.branches__note strong { color: var(--ink); }

/* ---------- Contacto ---------- */
.contact__title { margin-bottom: var(--space-3); }
.contact__lead { margin-bottom: var(--space-4); }
.contact__info { margin: 0; padding: 0; list-style: none; color: var(--muted); }
