/* ============================================
   CARLA ALBERTI — Nutrición Deportiva
   Archetype: Light Editorial Cream
   v20260520
   ============================================ */

/* === QUICKSAND === */
@font-face {
  font-family: 'Quicksand';
  src: url('assets/fonts/Quicksand/Quicksand-VariableFont_wght.ttf') format('truetype');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

/* === BRICOLAGE GROTESQUE (solo hero + section__title) === */
@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('assets/fonts/Bricolage_Grotesque/BricolageGrotesque-VariableFont_opsz,wdth,wght.ttf') format('truetype');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

/* === TOKENS === */
:root {
  --bg:           #FFFFFF;
  --surface:      #FEF3E8;
  --orange-1:     #E8630A;
  --orange-2:     #F4944A;
  --orange-3:     #FBBF7C;
  --navy:         #1A2B4A;
  --text:         #2C2C2C;
  --text-soft:    #6B6B6B;
  --white:        #FFFFFF;

  --font-serif:   'Playfair Display', Georgia, serif;
  --font-sans:    'DM Sans', 'Inter', system-ui, sans-serif;
  --font-display: 'Bricolage Grotesque', 'DM Sans', system-ui, sans-serif;

  --space-xs:     0.5rem;
  --space-sm:     1rem;
  --space-md:     2rem;
  --space-lg:     4rem;
  --space-xl:     4.5rem;

  --radius:       4px;
  --transition:   0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --max-w:        1200px;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  font-size: 16px;
  scroll-padding-top: 80px;
  overflow-x: clip; /* clip HORIZONTAL sin crear scroll container — no rompe position:fixed */
}
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative; /* necesario para que overflow-x: hidden funcione en iOS Safari */
  width: 100%;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; }

/* === SPLASH === */
.splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: splashFade 2s ease forwards;
  pointer-events: none;
}
.splash.hidden { display: none; }
.splash__mono {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(2.5rem, 6vw, 5rem);
  color: var(--navy);
  letter-spacing: 0.04em;
  opacity: 0;
  animation: splashMono 2s ease forwards;
}
.splash__logo {
  width: clamp(220px, 32vw, 360px);
  height: auto;
  opacity: 0;
  animation: splashMono 2s ease forwards;
}
@keyframes splashFade {
  0%   { opacity: 1; }
  60%  { opacity: 1; }
  85%  { opacity: 0; }
  100% { opacity: 0; pointer-events: none; }
}
@keyframes splashMono {
  0%   { opacity: 0; transform: translateY(12px); }
  15%  { opacity: 1; transform: translateY(0); }
  70%  { opacity: 1; }
  90%  { opacity: 0; }
  100% { opacity: 0; }
}

/* === NAVIGATION === */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.5rem var(--space-md);
  background: transparent;
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  box-shadow: none;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition), backdrop-filter var(--transition);
}
.nav.scrolled {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 1px 20px rgba(26,43,74,0.08);
  padding: 1rem var(--space-md);
}
.nav__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Quicksand', sans-serif;
  font-style: normal;
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--white);
  letter-spacing: 0.02em;
  transition: color var(--transition);
  white-space: nowrap;
  line-height: 1;
}
.nav.scrolled .nav__logo { color: var(--navy); }
.nav__logo-icon {
  height: 30px;
  width: auto;
  display: block;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.18));
  transition: filter var(--transition), transform var(--transition);
}
.nav.scrolled .nav__logo-icon {
  filter: none;
}
.nav__logo:hover .nav__logo-icon {
  transform: rotate(-6deg) scale(1.05);
}
.nav__logo-text {
  display: inline-block;
}
.nav__menu {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  position: relative; /* necesario para que .nav-cursor sea absoluto dentro */
  border: 1.5px solid rgba(255,255,255,0.45);
  border-radius: 999px;
  padding: 0.45rem 1.5rem;
  transition: border-color var(--transition);
}
.nav.scrolled .nav__menu {
  border-color: rgba(26,43,74,0.2);
}
.nav__menu a {
  font-family: 'Quicksand', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  transition: color var(--transition);
  position: relative;
  z-index: 1; /* encima del cursor */
}
/* Underline ::after solo cuando NO hay cursor-pill activo (touch / sin hover) */
.nav__menu a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--orange-1);
  transition: width var(--transition);
}
.nav.scrolled .nav__menu a { color: var(--navy); }
.nav__menu a:hover { color: var(--orange-1); }
.nav.scrolled .nav__menu a:hover { color: var(--orange-1); }

/* Con hover disponible: la píldora reemplaza el underline.
   El texto NO cambia a naranja (sería ilegible sobre la píldora naranja). */
@media (hover: hover) {
  .nav__menu a::after { display: none; }          /* píldora toma el rol */
  .nav__menu a:hover                    { color: rgba(255,255,255,0.9); }
  .nav.scrolled .nav__menu a:hover      { color: var(--navy); }
}

/* === NAV CURSOR PILL === */
.nav-cursor {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: 30px;
  background: var(--orange-1);
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  z-index: 0;                     /* detrás de los links (z-index: 1) */
  will-change: left, width, opacity;
  transition:
    left    180ms ease,
    width   180ms ease,
    opacity 180ms ease;
}

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  z-index: 1010;
}
.nav__hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--white);
  transition: all var(--transition);
}
.nav.scrolled .nav__hamburger span { background: var(--navy); }
.nav__hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 4px); background: var(--navy); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; }
.nav__hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -4px); background: var(--navy); }

/* Mobile nav overlay */
.nav__overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
}
.nav__overlay.open { display: flex; }
.nav__overlay a {
  font-family: 'Quicksand', sans-serif;
  font-style: normal;
  font-weight: 700;
  font-size: 2.2rem;
  color: var(--navy);
  transition: color var(--transition);
}
.nav__overlay a:hover { color: var(--orange-1); }
.nav__overlay .nav__cta-mobile {
  margin-top: 1rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--orange-1);
  padding: 0.85rem 2rem;
  border-radius: 999px;
  font-style: normal;
}

/* === HERO === */
.hero {
  position: relative;
  height: 100dvh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('assets/img/hero-bg.webp');
  background-size: cover;
  background-position: center 30%;
  /* sin transform ni will-change: parallax eliminado para evitar hueco azul */
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(26, 43, 74, 0.72) 0%,
    rgba(26, 43, 74, 0.55) 50%,
    rgba(26, 43, 74, 0.40) 100%
  );
}
.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--space-md);
  padding-top: 6rem;
}
.hero__tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange-3);
  margin-bottom: 1.5rem;
  opacity: 0;
}
.hero__headline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(2.8rem, 6.5vw, 6rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  max-width: 800px;
  margin-bottom: 1.5rem;
  opacity: 0;
}
.hero__sub {
  font-family: var(--font-sans);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: rgba(255,255,255,0.80);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 2.5rem;
  opacity: 0;
}
.hero__ctas {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  opacity: 0;
}
.hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  animation: scrollBounce 2s ease infinite 1.5s;
}
.hero__scroll span {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}
.hero__scroll svg { color: rgba(255,255,255,0.6); }
@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.9rem 2rem;
  border-radius: 999px;
  white-space: nowrap;
  width: fit-content;
  transition: background var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn--primary {
  background: var(--orange-1);
  color: var(--white);
}
.btn--primary:hover {
  background: #C04D00;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(232,99,10,0.35);
}
.btn--ghost {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.6);
}
.btn--ghost:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.08);
  transform: translateY(-2px);
}
.btn--outline {
  background: transparent;
  color: var(--orange-1);
  border: 1.5px solid var(--orange-1);
}
.btn--outline:hover {
  background: var(--orange-1);
  color: var(--white);
  transform: translateY(-2px);
}
.btn--dark {
  background: var(--navy);
  color: var(--white);
}
.btn--dark:hover {
  background: #0f1d33;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26,43,74,0.3);
}
.btn--whatsapp {
  background: #25D366;
  color: var(--white);
  font-size: 0.95rem;
  padding: 1rem 2.2rem;
}
.btn--whatsapp:hover {
  background: #1eba57;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37,211,102,0.35);
}
.btn--whatsapp-large {
  font-size: 1.05rem;
  padding: 1.2rem 2.8rem;
  margin-top: 0.5rem;
  width: 100%;
  justify-content: center;
  border-radius: 999px;
}
.contact__number {
  margin-top: 1.25rem;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  text-align: center;
}

/* === SECTION LAYOUT === */
.section {
  padding: 3.5rem var(--space-md) var(--space-xl);
  max-width: 100%;
  overflow-x: hidden;
}
.section--surface { background: var(--bg); }
.section--bg { background: var(--bg); }

/* === SECTION DIVIDER === */
.section-divider {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  padding: 0 var(--space-md);
  background: var(--bg);
}
.section-divider__svg {
  position: absolute;
  left: var(--space-md);
  right: var(--space-md);
  width: calc(100% - 4rem);
  height: 40px;
  top: 50%;
  transform: translateY(-50%);
}
.section-divider__logo {
  position: relative;
  z-index: 1;
  width: 52px;
  height: auto;
  display: block;
  background: var(--bg);
  padding: 0 10px;
  box-sizing: content-box;
  transition: transform var(--transition);
  cursor: pointer;
}
.section-divider__logo:hover {
  transform: rotate(-6deg) scale(1.05);
}
@media (max-width: 768px) {
  .section-divider {
    height: 48px;
    padding: 0 1rem;
  }
  .section-divider__svg {
    left: 1rem;
    right: 1rem;
    width: calc(100% - 2rem);
    height: 32px;
  }
  .section-divider__logo {
    width: 42px;
    padding: 0 8px;
  }
}
.section--navy {
  background: var(--navy);
  color: var(--white);
}
.container {
  max-width: var(--max-w);
  margin: 0 auto;
}
.section__label {
  font-family: 'Quicksand', sans-serif;
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange-1);
  margin-bottom: 1rem;
  display: block;
}
.section__title {
  font-family: var(--font-display);
  font-style: normal;
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.15;
  margin-bottom: 1.5rem;
}
.section--navy .section__title { color: var(--white); }
.section__lead {
  font-size: 1.05rem;
  color: var(--text-soft);
  max-width: 560px;
  line-height: 1.75;
}
.section--navy .section__lead { color: rgba(255,255,255,0.7); }
.section__header {
  margin-bottom: 4rem;
  position: relative;
}

.section__label,
.section__title,
.divider,
.section__lead {
  position: relative;
  z-index: 1;
}

/* === SIDED SECTION HEADER (label horizontal arriba — igual desktop y mobile) === */
.section__header--sided {
  display: block;
}
.section__side {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  border-right: none;
  border-bottom: 1px solid rgba(232, 99, 10, 0.25);
  margin-right: 0;
  margin-bottom: 1rem;
  padding: 0 2.5rem 0.6rem 0;
}
.section__side-text {
  font-family: 'Quicksand', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange-1);
  writing-mode: horizontal-tb;
  transform: none;
  white-space: nowrap;
}
.section__header-body {
  position: relative;
}

.divider {
  width: 48px;
  height: 2px;
  background: var(--orange-1);
  margin: 1.5rem 0 2rem;
}

/* === ANIMATED SECTION UNDERLINE ===
   Reemplaza .divider en los títulos principales.
   El path se dibuja con stroke-dashoffset via JS.
   Hover solo en desktop via @media (hover:hover).
*/
/* El h2 es block — el span interno es inline-block para que el SVG
   mida exactamente el ancho del texto, no el del contenedor. */
.section__title--underline {
  margin-bottom: 1.5rem;
}

.title-text-wrap {
  display: inline-block; /* ancla el SVG al ancho real del texto */
}

.title-underline {
  display: block;
  width: 100%;
  height: 10px;
  margin-top: 1.1rem;
  overflow: visible;
  transform: scaleY(1.8);
  transform-origin: center 60%;
}

.title-underline__path {
  /* stroke-dasharray / stroke-dashoffset los setea JS vía getTotalLength() */
  transition: stroke-dashoffset 0.95s cubic-bezier(0.4, 0, 0.2, 1);
}


/* === REVEAL ANIMATIONS ===
   La opacidad y transformación las maneja JS via inline styles.
   CSS solo provee la transición.
*/
.reveal,
.reveal--left,
.reveal--right {
  /* JS setea opacity:0 y transform al inicio, luego anima a visible */
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal[data-split] { opacity: 1 !important; transform: none !important; }

/* === ABOUT === */
.about {
  padding: 3.5rem var(--space-md) var(--space-xl);
  background: var(--bg);  /* always white */
}
.about__container {
  max-width: var(--max-w);
  margin: 0 auto;
}
.about__container .about__grid {
  max-width: none;
  margin: 2rem 0 0;
}
.about__grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}
.about__img-wrap {
  position: relative;
}
.about__img {
  width: 100%;
  height: 580px;
  object-fit: cover;
  object-position: center;
}
.about__img-accent { display: none; }

/* Marcos en L — naranja */
.about__img-wrap::before,
.about__img-wrap::after {
  content: '';
  position: absolute;
  width: 64px;
  height: 64px;
  z-index: 2;
}
/* Esquina superior izquierda */
.about__img-wrap::before {
  top: -10px;
  left: -10px;
  border-top: 3px solid var(--orange-1);
  border-left: 3px solid var(--orange-1);
}
/* Esquina inferior derecha */
.about__img-wrap::after {
  bottom: -10px;
  right: -10px;
  border-bottom: 3px solid var(--orange-1);
  border-right: 3px solid var(--orange-1);
}
.about__photo-placeholder {
  width: 100%;
  height: 580px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  border: 2px dashed rgba(26,43,74,0.15);
  color: var(--text-soft);
  font-size: 0.85rem;
  text-align: center;
  padding: 2rem;
}
.about__text { padding: 0; }
.about__quote {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 500;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 2rem;
}
.about__bio {
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 2rem;
  font-size: 1.0rem;
}
.about__specialties {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}
.about__specialty {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
}
.about__specialty::before {
  content: '';
  width: 20px;
  height: 2px;
  background: var(--orange-1);
  flex-shrink: 0;
}

/* === EXPERIENCE TIMELINE === */
.experience {
  padding: 3.5rem var(--space-md) var(--space-xl);
  background: var(--bg);
}
.experience__container {
  max-width: var(--max-w);
  margin: 0 auto;
}
.experience__blocks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
}
.experience__block-title {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--orange-1);
  margin-bottom: 2.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.experience__block-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(26,43,74,0.12);
}
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}
.timeline::before { display: none; }
.timeline__item {
  display: flex;
  gap: 1.5rem;
  padding-bottom: 2.5rem;
  position: relative;
}
.timeline__item::after {
  content: '';
  position: absolute;
  left: 9px;
  top: 24px;
  bottom: 0;
  width: 8px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='24' viewBox='0 0 8 24'%3E%3Cpath d='M 4 0 C 0 6 8 12 4 18 C 0 24 4 24 4 24' fill='none' stroke='%231A2B4A' stroke-width='1.3' stroke-linecap='round' opacity='0.5'/%3E%3C/svg%3E");
  background-repeat: repeat-y;
  background-size: 8px 24px;
}
.timeline__item:last-child::after { display: none; }
.timeline__dot {
  width: 26px;
  height: 20px;
  background: url('assets/img/logo-icon.webp') center/contain no-repeat;
  border: none;
  border-radius: 0;
  flex-shrink: 0;
  margin-top: 2px;
  position: relative;
  z-index: 1;
}
.timeline__content {}
.timeline__year {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 0.35rem;
}
.timeline__title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.25rem;
  line-height: 1.3;
}
.timeline__institution {
  font-size: 0.9rem;
  color: var(--text-soft);
  line-height: 1.5;
}

/* === SERVICES === */
.services {
  padding: 3.5rem var(--space-md) var(--space-xl);
  background: var(--bg);
}
.services__container {
  max-width: var(--max-w);
  margin: 0 auto;
}
.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 4rem;
}
.service-card {
  background: var(--bg);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  transition: transform var(--transition), box-shadow var(--transition);
  border-top: 3px solid transparent;
  display: flex;
  flex-direction: column;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--orange-1);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(26,43,74,0.10); }

/* Card con imagen de fondo difuminada */
.service-card--img {
  background-size: cover;
  background-position: center;
  color: var(--white);
}
/* Quitar borde superior y línea naranja de hover en cards con imagen */
.service-card--img { border-top: none; }
.service-card--img::before { display: none; }

/* Overlay que cubre TODO el card — z-index 1 para garantizar que tape la imagen */
.service-card--img::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(18, 28, 46, 0.68);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 1;
  transition: background var(--transition);
}
.service-card--img:hover::after {
  background: rgba(18, 28, 46, 0.58);
}
/* Contenido siempre por encima del overlay */
.service-card--img .service-card__icon,
.service-card--img .service-card__title,
.service-card--img .service-card__desc,
.service-card--img .service-card__link {
  position: relative;
  z-index: 2;
}
.service-card--img .service-card__title { color: #ffffff; }
.service-card--img .service-card__desc  { color: #ffffff; text-shadow: 0 1px 6px rgba(0,0,0,0.5); }
.service-card--img .service-card__link  { color: var(--orange-3); }
.service-card--img .service-card__icon  { color: var(--orange-3); }
.service-card:hover::before { transform: scaleX(1); }
.service-card__icon {
  width: 44px;
  height: 44px;
  margin-bottom: 1.5rem;
  color: var(--orange-1);
}
.service-card__title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.75rem;
  line-height: 1.25;
}
.service-card__desc {
  font-size: 0.95rem;
  color: var(--text-soft);
  line-height: 1.75;
  margin-bottom: 1.5rem;
}
.service-card__link {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange-1);
  display: flex;
  align-items: center;
  align-self: flex-start; /* card es flex-column → esto restringe el ancho al contenido */
  gap: 0.5rem;
  transition: gap var(--transition);
}
@media (hover: hover) {
  .service-card__link:hover { gap: 0.85rem; }
}

/* === GALLERY === */
.gallery {
  padding: 3.5rem var(--space-md) var(--space-xl);
  background: var(--bg);
}
.gallery__container {
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
}
.gallery__collage-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-top: 2rem;
}
.gallery__group {
  position: relative;
  height: clamp(320px, 32vw, 460px);
}

/* Foto principal — grande, fondo */
.gallery__col-main {
  position: absolute;
  right: 0;
  top: 10%;
  width: 70%;
  height: 82%;
  border-radius: 1.4rem;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.16);
  z-index: 1;
  transition: transform 0.3s ease, box-shadow 0.3s ease, z-index 0s;
  cursor: pointer;
}
.gallery__col-main:hover {
  transform: scale(1.03);
  box-shadow: 0 18px 48px rgba(0,0,0,0.28);
  z-index: 10;
}

/* Fotos pequeñas — encima */
.gallery__col-thumb {
  position: absolute;
  border-radius: 1.2rem;
  overflow: hidden;
  box-shadow: 0 6px 22px rgba(0,0,0,0.22);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  z-index: 3;
}
.gallery__col-thumb:hover {
  box-shadow: 0 14px 40px rgba(0,0,0,0.32);
  z-index: 10;
}

/* Thumb 1 — arriba izquierda */
.gallery__col-thumb--1 {
  width: 48%;
  height: 48%;
  top: 0;
  left: 0;
  transform: rotate(-4deg);
}
.gallery__col-thumb--1:hover { transform: rotate(-4deg) scale(1.05); }

/* Thumb 2 — abajo izquierda */
.gallery__col-thumb--2 {
  width: 46%;
  height: 46%;
  bottom: 0;
  left: 4%;
  transform: rotate(-2deg);
}
.gallery__col-thumb--2:hover { transform: rotate(-2deg) scale(1.05); }

/* Thumb 3 — abajo derecha, solapando la principal */
.gallery__col-thumb--3 {
  width: 44%;
  height: 42%;
  bottom: 4%;
  right: 0;
  transform: rotate(3deg);
  z-index: 2;
}
.gallery__col-thumb--3:hover { transform: rotate(3deg) scale(1.05); z-index: 10; }

.gallery__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* === LOCATIONS CAROUSEL === */
.locations {
  padding: 3.5rem var(--space-md) var(--space-xl);
  background: var(--bg);
  overflow: hidden; /* clipa las cards del carrusel que sobresalen lateralmente */
}
.locations__container {
  max-width: var(--max-w);
  margin: 0 auto;
}

/* Stage y track — mismo patrón que testimonials */
.lcard-stage {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}
.lcard-track {
  position: relative;
  width: 100%;
  height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

/* Card base */
.lcard {
  position: absolute;
  width: 460px;
  background: var(--white);
  border-radius: 1rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  opacity: 0;
  box-shadow: 0 4px 20px rgba(26,43,74,0.08);
  transition:
    transform  0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    opacity    0.45s ease,
    box-shadow 0.45s ease;
  will-change: transform, opacity;
}
.lcard--active {
  cursor: default;
  box-shadow:
    0 24px 64px rgba(26,43,74,0.18),
    0 8px  20px rgba(26,43,74,0.10);
}
.lcard__img-wrap {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.lcard__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.lcard--active .lcard__img { transform: scale(1.03); }
.lcard__body {
  padding: 1.75rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.lcard__name {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--navy);
  line-height: 1.3;
}
.lcard__address {
  font-size: 0.9rem;
  color: var(--text-soft);
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  line-height: 1.5;
}
.lcard__address svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--orange-2);
}
.lcard__body .btn {
  align-self: flex-start;
  margin-top: 0.25rem;
  font-size: 0.85rem;
  padding: 0.65rem 1.4rem;
}

/* Controles — reutiliza tcard__btn */
/* Dots de consultorios */
.lcard-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}
.l-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(26,43,74,0.18);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}
.l-dot.t-dot--active {
  background: var(--orange-1);
  transform: scale(1.3);
}

/* Botón "Próximamente" — no interactivo */
.lcard__btn--soon {
  opacity: 0.55;
  cursor: default;
  pointer-events: none;
  letter-spacing: 0.08em;
}

.lcard-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

@media (max-width: 768px) {
  .lcard-track { height: 400px; }
  .lcard { width: 300px; }
}
@media (max-width: 480px) {
  .lcard-track { height: 380px; }
  .lcard { width: 270px; }
}

/* === CONTACT === */
.contact {
  padding: 3.5rem var(--space-md) var(--space-xl);
  background: var(--navy);
  color: var(--white);
}
.contact__container {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: start;
}
/* Versión centrada — solo WA, sin formulario */
.contact__container--centered {
  grid-template-columns: 1fr;
  max-width: 680px;
}
.contact__info {}
.contact__info .section__label { color: var(--orange-3); }
.contact__info .section__title { color: var(--white); }
.contact__info .divider { background: var(--orange-2); }
.contact__body {
  color: rgba(255,255,255,0.72);
  line-height: 1.8;
  font-size: 1.0rem;
  margin-bottom: 2rem;
}
.contact__steps {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.contact__step {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.contact__step-num {
  width: 28px;
  height: 28px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--orange-3);
  flex-shrink: 0;
  margin-top: 2px;
}
.contact__step-text {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.6;
}
.contact__form-wrap {
  background: var(--bg);
  padding: 3rem;
  border-radius: 2px;
}
.form__title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1.75rem;
}
.form__group {
  margin-bottom: 1.25rem;
}
.form__label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 0.4rem;
}
.form__input,
.form__textarea,
.form__select {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  border: 1.5px solid rgba(26,43,74,0.12);
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
  outline: none;
}
.form__input:focus,
.form__textarea:focus,
.form__select:focus {
  border-color: var(--orange-1);
  box-shadow: 0 0 0 3px rgba(232,99,10,0.12);
}
.form__textarea {
  height: 120px;
  resize: vertical;
}
.form__submit {
  width: 100%;
  margin-top: 0.5rem;
}
.contact__or {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
  color: var(--text-soft);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.contact__or::before,
.contact__or::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(26,43,74,0.12);
}
.contact__wa { width: 100%; justify-content: center; }

/* === FOOTER === */
.footer {
  background: #111c2e;
  padding: 4rem var(--space-md) 2.5rem;
  color: rgba(255,255,255,0.6);
}
.footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.footer__top {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 2.5rem;
}
.footer__brand {}
.footer__logo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
  color: var(--white);
  transition: opacity var(--transition);
}
.footer__logo-link:hover { opacity: 0.85; }
.footer__logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
  transition: transform var(--transition);
}
.footer__logo-link:hover .footer__logo-img {
  transform: rotate(-6deg) scale(1.05);
}
.footer__logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.footer__logo-name {
  font-family: 'Quicksand', sans-serif;
  font-style: normal;
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--white);
  letter-spacing: 0.02em;
}
.footer__logo-sub {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-top: 0.25rem;
}
.footer__tagline {
  font-size: 0.85rem;
  line-height: 1.6;
  max-width: 240px;
}
.footer__matricula {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--orange-3);
  opacity: 0.85;
}
.footer__nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.footer__nav-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1.25rem;
}
.footer__nav ul {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.footer__nav a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  transition: color var(--transition);
}
.footer__nav a:hover { color: var(--orange-2); }
.footer__social {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.footer__social a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  transition: color var(--transition);
}
.footer__social a:hover { color: var(--orange-2); }
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
}
.footer__copy { color: rgba(255,255,255,0.35); }
.footer__credits { color: rgba(255,255,255,0.25); font-size: 0.72rem; }

/* === RESPONSIVE === */
@media (max-width: 768px) {
  :root {
    --space-xl: 4rem;
    --space-lg: 2.5rem;
  }

  .nav__menu { display: none; }
  .nav__hamburger { display: flex; }

  .hero__tag { font-size: 0.85rem; letter-spacing: 0.14em; }
  .hero__headline { font-size: clamp(3rem, 11vw, 4rem); }
  .hero__sub { font-size: 1rem; }
  .hero__ctas { flex-direction: column; align-items: flex-start; }

  .about__grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .about__img { height: 360px; }
  .about__photo-placeholder { height: 360px; }
  .about__img-accent { display: none; }

  .experience__blocks {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .services__grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }


  .gallery__collage-wrap {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .gallery__group {
    height: 360px;
  }

  .contact__container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .contact__form-wrap { padding: 2rem 1.5rem; }

  .footer__top {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .footer__nav {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .hero { min-height: 100svh; }
  .hero__ctas .btn { width: 100%; justify-content: center; }
  .gallery__group { height: 300px; }
  .footer__nav { grid-template-columns: 1fr; }
  .contact__form-wrap { padding: 1.5rem 1.25rem; }
}

/* === TESTIMONIALS — STAGGER CARDS === */
.testimonials {
  padding: 3.5rem var(--space-md) var(--space-xl);
  background: var(--bg);
  overflow: hidden; /* clipa las cards del carrusel que sobresalen lateralmente */
}

.testimonials__wrap {
  max-width: var(--max-w);
  margin: 0 auto;
}

.testimonials__stage {
  margin-top: 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}

.testimonials__track {
  position: relative;
  width: 100%;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

/* Base card */
.tcard {
  position: absolute;
  width: 365px;
  min-height: 360px;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  border-radius: 3px;
  cursor: pointer;
  opacity: 0;                  /* JS gestiona la opacidad */
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 28px), calc(100% - 28px) 100%, 0 100%);
  transition:
    transform  0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    opacity    0.45s ease,
    box-shadow 0.45s ease;
  will-change: transform, opacity;
}

.tcard--active {
  cursor: default;
  box-shadow:
    0 24px 64px rgba(26, 43, 74, 0.22),
    0 8px  20px rgba(26, 43, 74, 0.12);
}

/* Color variants */
.tcard--orange-soft { background: var(--orange-3); color: var(--navy); }
.tcard--white       { background: #ffffff;         color: var(--navy); border: 1.5px solid rgba(26,43,74,0.07); }
.tcard--navy        { background: var(--navy);     color: #ffffff; }
.tcard--orange      { background: var(--orange-1); color: #ffffff; }
.tcard--surface     { background: #f5ede2;         color: var(--navy); }

/* Fruit icon */
.tcard__fruit svg {
  width: 42px;
  height: 42px;
  opacity: 0.80;
}

/* Quote */
.tcard__quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.7;
  flex: 1;
}

/* Author */
.tcard__author { margin-top: auto; }

.tcard__name {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
}

.tcard__role {
  font-size: 0.78rem;
  opacity: 0.60;
  margin-top: 0.2rem;
  font-weight: 400;
}

/* Controls */
.testimonials__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  position: relative;
  z-index: 20;
}

.tcard__btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  transition: background var(--transition), transform var(--transition);
  flex-shrink: 0;
}
.tcard__btn:hover  { background: var(--orange-1); transform: scale(1.08); }
.tcard__btn:active { transform: scale(0.96); }
.tcard__btn svg    { width: 18px; height: 18px; }

/* Dots */
.testimonials__dots {
  display: flex;
  align-items: center;
  gap: 8px;
}
.t-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(26, 43, 74, 0.18);
  transition: background var(--transition), transform var(--transition);
  cursor: pointer;
}
.t-dot--active {
  background: var(--orange-1);
  transform: scale(1.35);
}

/* Mobile */
@media (max-width: 768px) {
  .testimonials__track { height: 360px; }
  .tcard { width: 290px; min-height: 320px; padding: 2rem 1.75rem; }
  .tcard__quote { font-size: 0.97rem; }
}

@media (max-width: 400px) {
  .testimonials__track { height: 340px; }
  .tcard { width: 260px; padding: 1.75rem 1.5rem; }
  .tcard__quote { font-size: 0.92rem; }
}

/* === UTILITIES === */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}
.text-orange { color: var(--orange-1); }
.text-navy   { color: var(--navy); }
