/* =========================================================
   VARIABLES / RESET / BASE
========================================================= */
:root{
  --lightviolet: #cac1ce;
  --violet: #a688b3;        /* violeta/lila del diseño */
  --violet-dark: #8f6f9b;
  --ink: #111;
  --muted: rgba(17,17,17,.70);
  --page: #ffffff;
  --container: 1080px;

  --shadow: 0 18px 40px rgba(0,0,0,.16);
  --stroke: rgba(0,0,0,.10);
  --radius: 18px;
  --footer: #6b5d54;
}

*{ box-sizing: border-box; }
html, body{ margin: 0; padding: 0; }

body{
  font-family: Garamond, Georgia, "Times New Roman", serif;
  color: var(--ink);
  background: var(--page);
}

.blanco{
    color: #f4f2ea;
    font-size: clamp(40px, 6vw, 80px); /* Para desktop */
}


@media (max-width: 768px){
  .blanco{ 
    font-size: 50px !important; /* 👈 Más grande: de 32px a 50px */
  }
}

@media (max-width: 480px){
  .blanco{ 
    font-size: 40px !important; /* 👈 Ajustado para móviles pequeños */
  }
}
/* =========================================================
   LAYOUT
========================================================= */
.container{
  width: min(var(--container), calc(100% - 48px));
  margin: 0 auto;
}


/* =========================================================
   HEADER / TOPBAR
========================================================= */
.topbar{
  height: 64px;
  display: flex;
  align-items: center;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 2), rgba(255, 255, 255, 0));

  /* Sticky */
  position: sticky;
  top: 0;
  z-index: 1000;
}

.topbar__inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand__logo{
  width: 90px;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  letter-spacing: .10em;
  font-size: 12px;
}

.brand__logo img{
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.nav{
  display: flex;
  gap: 22px;
  align-items: center;
  margin-left: auto;
  margin-right: 12px;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.nav a{
  text-decoration: none;
  color: var(--violet);
  letter-spacing: .08em;
  font-weight: 700;
  font-size: 12px;
}

.nav a:hover{
  color: var(--lightviolet);
}

.topbar__icon{
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.18);
  display: grid;
  place-items: center;
  text-decoration: none;
}

.topbar__icon .dot{
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--violet-dark);
}


/* =========================================================
   BOTÓN - ESTILO 1 (Underline)
========================================================= */
.btn-underline{
  background: none;
  border: none;
  color: var(--lightviolet);
  font-size: 15px;
  letter-spacing: 0.5px;
  padding: 8px 16px;
  cursor: pointer;
  position: relative;
  transition: color 0.3s;
}

.btn-underline::after{
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 1px;
  background: var(--lightviolet);
  transition: width 0.3s, left 0.3s;
}

.btn-underline:hover::after{
  width: 100%;
  left: 0;
}


/* =========================================================
   BOTONES - EFECTO RELLENO (Outline Fill)
========================================================= */
.button-container{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10rem;
  margin: 2rem 0;
}

.btn-outline{
  border: 1.5px solid var(--violet-dark);
  border-radius: 30px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 12px 30px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  width: 250px;
  z-index: 1;
}

.btn-outline::before{
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
}

.btn-outline:hover::before{
  left: 0;
}

.btn-outline:hover{
  color: #fff;
  border-color: var(--violet-dark);
}

/* Variantes */
.oscuro{
  background: var(--violet-dark);
  color: var(--lightviolet);
}

.oscuro::before{
  background: var(--lightviolet);
}

.oscuro:hover{
  color: var(--violet-dark);
}

.claro{
  background: var(--lightviolet);
  color: var(--violet-dark);
}

.claro::before{
  background: var(--violet-dark);
}

.claro:hover{
  color: #fff;
}

/* RESPONSIVE - BOTONES */
@media (max-width: 768px){
  .button-container{
    gap: 2rem; /* 👈 Gap más pequeño en móviles */
    flex-direction: column; /* 👈 Botones en columna si prefieres */
  }

  .btn-outline{
    width: 100%; /* 👈 Botones ocupan todo el ancho en móvil */
    max-width: 300px; /* 👈 Pero con un máximo */
  }
}

@media (max-width: 480px){
  .button-container{
    gap: 1.5rem;
  }

  .btn-outline{
    font-size: 12px;
    padding: 10px 20px;
    letter-spacing: 1px;
  }
}
/* =========================================================
   HERO
========================================================= */
.hero{
  background: linear-gradient(180deg, #e0e0e0 0%, #999898 100%);
  border-bottom: 1px solid rgba(0,0,0,.10);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 100vh;
  width: 100%;
  position: relative;
  overflow: hidden;
  margin-bottom: 0;
}

/* Imagen de la mujer — encima del marquee */
.hero__woman-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 2;
  pointer-events: none;
  animation: zoomLoop 35s ease-in-out infinite; /* ← loop infinito */
}

@keyframes zoomLoop {
  0%   { transform: scale(1.5); }
  50%  { transform: scale(1); }
  100% { transform: scale(1.5); }
}


@keyframes zoomIn{
  0%{ transform: scale(1.3); }
  100%{ transform: scale(1); }
}

.hero__grid{
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: stretch;
  min-height: 280px;
  position: relative;
  z-index: 1;
  
}

.hero__left{
  display: flex;
  align-items: center;
  padding: 26px 0;
}

.hero__panel{
  width: min(430px, 100%);
  background: rgba(255,255,255,.10);
  padding: 26px 26px 22px;
}

.hero__title{
  margin: 0;
  margin-top: 50%;
  font-size: 40px;
  line-height: 1.0;
  letter-spacing: .06em;
  color: #fff;
  font-weight: 700;
  position: relative;
  z-index: 2;
}

.hero__subtitle-rotator {
  position: relative;
  height: 200px;        /* altura fija para que no mueva el layout */
  overflow: hidden;
  margin: 68px 0 1px;
}

.rotator-item {
  position: absolute;
  top: 0;
  left: 0;
  font-family: system-ui, -apple-system, sans-serif;
  color: var(--footer);
  font-size: 18px;
  line-height: 1.6;
  letter-spacing: .06em;
  font-weight: 600;
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.rotator-desc {
  color: var(--violet);  /* ← el color que quieras acá */
  font-size: 18px;
  font-weight: 400;
}

.rotator-item.active {
  opacity: 1;
  transform: translateY(0);
}

.rotator-item.exit {
  opacity: 0;
  transform: translateY(-40px);
}

/* Letras animadas */
.hero-letter{
  display: inline-block;
  opacity: 0;
  transform: scale(3);
  transition: all 1.5s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center center;
}

.hero-letter.animate-to-position{
  opacity: 1;
  transform: scale(1);
}

/* Fade elements */
.hero-fade-element{
  opacity: 0;
  transform: translateY(20px);
  transition: all 1s ease-out;
}

.hero-fade-element.visible{
  opacity: 1;
  transform: translateY(0);
}

.hero__subtitle{
  margin: 88px 0 14px;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--page);
  font-size: 18px;
  line-height: 1.6;
  letter-spacing: .06em;
  font-weight: 600;
}

.hero__line{
  width: 220px;
  height: 2px;
  background: rgba(255,255,255,.55);
}

.hero__right{
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  overflow: hidden;
}

.hero__img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: normal;
  opacity: .95;
}

.hero__logo-bg {
  position: absolute;
  right: -70px;           /* un poco salido al borde derecho */
  bottom: 65%;          /* anclado abajo */
  width: 320px;           /* tamaño grande */
  z-index: 3;             /* detrás de la imagen de la mujer */
  pointer-events: none;
  
}

.hero__logo-bg img {
  width: 70%;
  height: auto;
  display: block;
}



/* Marquee — detrás de la imagen */
.hero-marquee {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 0;
  width: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;              /* ← DETRÁS de la imagen */
  opacity: 0.35;           /* más visible porque el fondo es oscuro */
}

.hero-marquee__track {
  display: flex;
  white-space: nowrap;
  animation: marqueeScroll 22s linear infinite;
}

.hero-marquee__track span {
  display: inline-block;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 300;
  font-style: italic;
  letter-spacing: 0.1em;
  color: #ffffff;          /* blanco sobre fondo violeta */
  flex-shrink: 0;
}

@keyframes marqueeScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Contenido por encima de todo */
.hero .container {
  position: relative;
  z-index: 3;
}

@keyframes slowZoomOut {
  0%   { transform: scale(1.5); }
  100% { transform: scale(1); }
}

@keyframes marqueeScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Contenido del hero por encima */
.hero .container {
  position: relative;
  z-index: 4;
}


/* Responsive - HERO */
@media (max-width: 768px){
  .hero-letter{ transform: scale(2); }
  .hero__title{ font-size: 32px; }
  .hero__logo-bg {
    width: 110px;
    right: 12px;
    top: 70px;
    }
  .hero-marquee{ position: relative;}
}


/* =========================================================
   POR QUÉ ELEGIRNOS
========================================================= */
.why-choose-section{
  background: #fff !important;
  padding: 100px 50px 80px;
}

.why-choose-container{
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

/* Header (título + imagen) */
.why-header{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 10px;
}

.why-header__image{
  width: 100%;
  height: 250px;
  overflow: hidden;
  border-radius: 8px;
}

.why-header__image img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Título ola */
.wave-title{
  font-size: clamp(40px, 8vw, 100px);
  font-weight: 300;
  letter-spacing: -2px;
  line-height: 1.1;
  color: var(--violet-dark);
  transform: none !important;
}

.wave-word{
  display: inline-block;
  margin-right: 20px;
}

.wave-letter{
  display: inline-block;
  opacity: 0;
  transform: translateY(100%);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.wave-letter.visible{
  opacity: 1;
  transform: translateY(0);
}

/* Grid de razones */
.reasons-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px 40px;
  padding-top: 20px;
}

.reason-item{
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reason-item.visible{
  opacity: 1;
  transform: translateY(0);
}

.reason-title{
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
  color: var(--violet);
}

.reason-description{
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}


/* Responsive - POR QUÉ ELEGIRNOS */
@media (max-width: 1024px){
  .reasons-grid{ grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 968px){
  .why-header{
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 60px;
  }

  .why-header__image{ height: 350px; }
  .wave-title{ font-size: 50px; }

  .why-choose-section{ padding: 40px 20px 60px; 
    background: #fff !important;}
    

}

@media (max-width: 640px){
  .reasons-grid{
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .wave-title{ font-size: 40px; }
  .why-header__image{ height: 280px; }

  .reason-description{
    color: var(--ink) !important;
    font-family: system-ui, -apple-system, 'Segoe UI', sans-serif !important;
}
}



/*nuevo elegirnos*/

.why-scene {
  position: relative;
  width: 100%;
  height: 420px;          /* misma altura aprox que la imagen original */
  overflow: hidden;
  border-radius: 12px;
  flex-shrink: 0;
}

/* Imagen que se expande desde el centro */
.why-img-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  overflow: hidden;
  border-radius: 4px;
  width: 100px;
  height: 120px;
  animation: whyExpandReveal 4s cubic-bezier(0.76, 0, 0.24, 1) forwards;
}

.why-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(2.2);
  animation: whyImgScale 4s cubic-bezier(0.76, 0, 0.24, 1) forwards;
}

/* Vignette oscuro */
.why-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.6) 100%);
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  animation: fadeVignette 1.2s ease 2.8s forwards;
}

/* Card CTA superpuesta */
.why-cta-card {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) translateY(100%);
  background: #6b5d54;
  backdrop-filter: blur(12px);
  border: 1px solid rgba(210, 180, 140, 0.2);
  padding: 24px 32px;
  text-align: center;
  width: 260px;
  opacity: 0;
  z-index: 10;
  animation: slideCardUp 1s cubic-bezier(0.16, 1, 0.3, 1) 3.2s forwards;
}

.why-cta-card .eyebrow {
  font-weight: 200;
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--page);
  margin-bottom: 10px;
}

.why-cta-card h2 {
  font-weight: 300;
  font-size: 48px;
  color: #f5ede3;
  line-height: 1.1;
  margin-bottom: 4px;
}

.why-cta-card h2 em {
  font-style: italic;
  color:var(--violet);
}

.why-cta-card p {
  font-weight: 200;
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--lightviolet);
  margin-bottom: 18px;
  text-transform: uppercase;
}

/* ========== KEYFRAMES PROPIOS (no pisan los del .scene) ========== */

@keyframes whyExpandReveal {
  0% {
    width: 100px;
    height: 120px;
    border-radius: 4px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
  60% {
    width: calc(100% - 16px);
    height: calc(100% - 16px);
    border-radius: 8px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
  100% {
    width: calc(100% - 16px);
    height: calc(100% - 16px);
    border-radius: 8px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
}

@keyframes whyImgScale {
  0%   { transform: scale(2.2); }
  60%  { transform: scale(1); }
  100% { transform: scale(1); }
}

/* ========== FASE REVERSA ========== */

.why-reversing .why-img-wrapper {
  animation: whyCollapseHide 3.5s cubic-bezier(0.76, 0, 0.24, 1) forwards !important;
}
.why-reversing .why-img-wrapper img {
  animation: whyImgReverseScale 3.5s cubic-bezier(0.76, 0, 0.24, 1) forwards !important;
}
.why-reversing .why-cta-card {
  animation: slideCardDown 0.8s cubic-bezier(0.76, 0, 0.24, 1) forwards !important;
}
.why-reversing .why-vignette {
  animation: fadeVignetteOut 1.5s ease forwards !important;
}

@keyframes whyCollapseHide {
  0% {
    width: calc(100% - 16px);
    height: calc(100% - 16px);
    border-radius: 8px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
  100% {
    width: 100px;
    height: 120px;
    border-radius: 4px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
}

@keyframes whyImgReverseScale {
  0%   { transform: scale(1); }
  100% { transform: scale(2.2); }
}


/* =========================================================
   CARDS SECTION (stack) PROFESIONAL MATRICULADO
========================================================= */
.cards-section{
  padding: 54px 0 70px;
  background: #fff;
  border-top: 1px solid rgba(0,0,0,.10);
}

.cards-section__inner{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  align-items: center;
}

.cards-kicker{
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--violet-dark);
  letter-spacing: .14em;
  font-weight: 800;
  font-size: 12px;
}

.cards-title{
  margin: 8px 0 10px;
  font-size: 34px;
  font-weight: 700;
}

.cards-desc{
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--muted);
  line-height: 1.6;
}

/* Stack base */
.cards-stage{
  display: grid;
  justify-items: end;
}

.stack{
  position: relative;
  width: min(92vw, 720px);
  height: min(78vw, 520px);
}

.card{
  position: absolute;
  inset: 0;
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  will-change: transform;
}

.card img{
  width: 100%;
  height: 82%;
  object-fit: cover;
}

.card-caption{
  height: 18%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 900;
  letter-spacing: .12em;
  color: #222;
  background: rgba(255,255,255,.92);
}

/* Profundidad inicial */
.stack .card:nth-child(1){
  transform: translate(0,0) scale(1);
  z-index: 3;
}

.stack .card:nth-child(2){
  transform: translate(18px,18px) scale(.965);
  z-index: 2;
}

.stack .card:nth-child(3){
  transform: translate(36px,36px) scale(.93);
  z-index: 1;
}

/* Responsive - Cards/Hero/Nav */
@media (max-width: 880px){
  .hero__grid{ grid-template-columns: 1fr; }
  .hero__right{ min-height: 240px; }

  .cards-section__inner{ grid-template-columns: 1fr; }
  .cards-stage{ justify-items: center; }

  .why__grid{
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .nav{ display: none; }
}


/* =========================================================
   FP (Carrusel Infinito)
========================================================= */

.fp-wrap{
  padding: 100px 50px 80px;
  background: var(--violet-dark);
  display: flex;
  justify-content: center;
}

.fp-frame{
  display: grid;
  grid-template-columns: 600px 1fr;
  gap: 32px;
  align-items: stretch;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

/* Menú izquierdo */
.fp-menu{
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.fp-item{
  text-align: left;
  background: transparent;
  border: 0;
  padding: 12px 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: .02em;
  font-size: 20px;
  color: rgba(255,255,255,.5);
  cursor: pointer;
  transition: all 0.4s ease;
  opacity: 0.5;
  border-left: 3px solid transparent;
  padding-left: 15px;
}

.fp-item.is-active{
  opacity: 1;
  color: rgba(255, 255, 255, 1);
  border-left-color: var(--page);
  transform: translateX(8px);
}

/* Descripción debajo de cada título */
.fp-item-desc {
  display: none;
  margin-top: 8px;
  padding-left: 15px;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
  font-weight: 400;
  letter-spacing: 0;
}

.fp-item.is-active + .fp-item-desc {
  display: block;
  animation: fadeInDesc 0.5s ease;
}

@keyframes fadeInDesc {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Stage derecho - CAROUSEL */
.fp-stage{
  position: relative;
  background: rgba(59, 216, 45, 0.05);
  border-radius: 20px;
  overflow: hidden;
  min-height: 450px; 
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Contenedor de imágenes carousel */
.carousel-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-slide {
  position: absolute;
  width: 90%; /* 👈 NECESARIO - ancho del slide */
  height: 90%; /* 👈 NECESARIO - alto del slide */
  background-size: contain !important;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 15px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  opacity: 1;
  transform: translateX(150%);
  transition: none;
}

/* Clases con las imágenes */
.slide-1 {
  background-image: url('imagenes/tituloUno.jpg');
}

.slide-2 {
  background-image: url('imagenes/tituloDos.jpg');
}

.slide-3 {
  background-image: url('imagenes/tituloTres.jpg');
}

.slide-4 {
  background-image: url('imagenes/titulocuatro.jpg');
}

/* Animación: derecha -> centro -> izquierda */
@keyframes slideIn {
  0% {
    opacity: 0;
    transform: translateX(150%) scale(0.8);
  }
  20% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
  80% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateX(-150%) scale(0.8);
  }
}

.carousel-slide.active {
  animation: slideIn 5s ease-in-out forwards;
}

/* Indicador de título flotante */
.title-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.95);
  padding: 15px 30px;
  border-radius: 50px;
  font-weight: 700;
  color: var(--violet-dark);
  font-size: 16px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 10;
}

.title-indicator.show {
  opacity: 1;
}

/* Responsive - FP */
@media (max-width: 900px){
  .fp-wrap{
    padding: 60px 20px;  /* consistente con el resto */
  }
  .fp-frame{
    grid-template-columns: 1fr;
  }

  .fp-item{ font-size: 18px; }
  
  .fp-stage {
    min-height: 400px;
  }

  .carousel-slide {
    width: 90%;
    height: 70%;
  }
}
/* =========================================================
   TRATAMIENTOS SECTION
========================================================= */
.tratamientos-section {
    background-image: url("imagenes/fondoTratamientos.png");
    padding: 100px 5% 80px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh; /* Cambiado de height a min-height */
    width: 100%;
    position: relative;
    overflow: visible; /* Cambiado de hidden a visible */
    
}

.section {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.section-title {
     text-align: center;
    font-size: 2.5rem;
     margin-bottom: 1rem;
     color: #2c3e50;
}

.section-subtitle {
    text-align: center;
    color: #5a6c7d;
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
    margin-top: 50px;
}

.service-card {
    background: rgba(255, 255, 255, 0.699);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.2);
}

.service-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--violet-dark);
}

.service-list {
    list-style: none;
    margin-bottom: 1.5rem;
}

.service-list li {
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--ink);
    transition: all 0.3s ease;
}

.service-list li:hover {
    color: var(--violet);
    padding-left: 10px;
}

.service-list li::before {
    content: "✦ ";
    color: #764ba2;
    margin-right: 0.5rem;
}

/* ================================
   FIX: "Tratamientos" no corta la S (solo mobile)
================================ */
@media (max-width: 480px){
  #tratamientos .wave-title{
    font-size: clamp(32px, 10vw, 44px); /* baja un poco SOLO en mobile */
    line-height: 1.05;
  }

  #tratamientos .wave-title .wave-word{
    margin-right: 0;        /* 🔥 saca el extra de 20px SOLO acá */
    white-space: nowrap;    /* 🔥 evita que "Tratamientos" se parta */
  }
}

/* =========================================================
   FOOTER
========================================================= */
 footer {
    background: linear-gradient(to bottom, #6b5d54 0%, #6b5d54 90%, #b8a3c7 90%, #b8a3c7 100%);
    color: white;
    padding: 50px 20px 20px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-title {
    font-size: 1.8rem;
    font-weight: 300;
    letter-spacing: 3px;
    margin-bottom: 8px;
    text-align: center;
}

.footer-subtitle {
    font-size: 0.9rem;
    font-weight: 300;
    letter-spacing: 1px;
    margin-bottom: 40px;
    text-align: center;
    opacity: 0.9;
}

.contact-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 50px;
}

.contact-item {
    text-align: center;
}

.contact-label {
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 10px;
    opacity: 0.9;
}

.contact-value {
    color:var(--lightviolet);
    padding: 15px 20px;
    border-radius: 4px;
    font-size: 0.95rem;
    display: block;
    width: 100%;
}

.map-link {
    color: #8b7ba8;
    text-decoration: none;
    font-style: italic;
    transition: color 0.3s ease;
}

.map-link:hover {
    color: #b8a3c7;
}

.social-section {
    text-align: center;
    margin-bottom: 30px;
}

.social-label {
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 15px;
    opacity: 0.9;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.social-icon {
    background: #b8a3c7;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none;
    color: white;
}

.social-icon i {
    color: white; /* Agregá esto específicamente para el ícono */
}

.social-icon:hover {
    background: #9d8ab3;
    transform: translateY(-3px);
}

.logo-text {
    font-family: 'Brush Script MT', cursive;
    font-size: 2.5rem;
    color: white;
    opacity: 0.9;
}

.footer-bottom {
    text-align: center;
    font-size: 0.75rem;
    letter-spacing: 1px;
    opacity: 0.8;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--ink);
}

/* Responsive Design */
@media (min-width: 768px) {
    .contact-section {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .contact-item {
        text-align: center;
    }

    .contact-value {
        display: block;
        width: 100%;
    }

    footer {
        padding: 60px 40px 30px;
    }

    .footer-title {
        font-size: 2.2rem;
    }

    .social-icons {
        gap: 20px;
    }

    .social-icon {
        width: 50px;
        height: 50px;
        font-size: 1.4rem;
    }
}

@media (min-width: 1024px) {
    .footer-title {
        font-size: 2.5rem;
    }

    .contact-section {
        gap: 50px;
        max-width: 900px;
        margin-left: auto;
        margin-right: auto;
    }

    .social-icons {
        gap: 25px;
    }

    .social-icon {
        width: 55px;
        height: 55px;
    }
}


.logo{
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 25px;
}

.logo img{
    width: 250px;       /* achica el logo */
    height: auto;      /* mantiene proporción */
}

/* =========================================================
   IMAGEN EFECTO AUMENTO - 25 AÑOS
========================================================= */

  /* Image container that expands */
  .img-wrapper {
    position: absolute;
    overflow: hidden;
    border-radius: 4px;
    animation: expandReveal 4s cubic-bezier(0.76, 0, 0.24, 1) forwards;
  }

  .img-wrapper img {
    width: 100%;
    height: 50%;
    object-fit: cover;
    display: block;
    /* Counteract the scale so image stays sharp */
    animation: imgCounterScale 4s cubic-bezier(0.76, 0, 0.24, 1) forwards;
  }

  /* CTA Card */
  .cta-card {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    background: rgba(10, 8, 7, 0.92);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(210, 180, 140, 0.2);
    padding: 40px 60px;
    text-align: center;
    min-width: 420px;
    opacity: 0;
    animation: slideCardUp 1s cubic-bezier(0.16, 1, 0.3, 1) 3.2s forwards;
    z-index: 10;
  }

  .cta-card .eyebrow {
    font-family: 'Montserrat', sans-serif;
    font-weight: 200;
    font-size: 10px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #c8a97e;
    margin-bottom: 16px;
  }

  .cta-card h2 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: 36px;
    color: #f5ede3;
    line-height: 1.2;
    margin-bottom: 8px;
  }

  .cta-card h2 em {
    font-style: italic;
    color: #c8a97e;
  }

  .cta-card p {
    font-weight: 200;
    font-size: 11px;
    letter-spacing: 2px;
    color: #8a7a6e;
    margin-bottom: 28px;
    text-transform: uppercase;
  }

  .cta-btn {
    display: inline-block;
    padding: 14px 36px;
    background: transparent;
    border: 1px solid var(--violet);
    color: var(--lightviolet);
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
  }

  .cta-btn:hover {
    background: var(--lightviolet);
    color: #0e0c0b;
  }

  /* Overlay vignette */
  .vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.6) 100%);
    pointer-events: none;
    z-index: 5;
    opacity: 0;
    animation: fadeVignette 1s ease 2s forwards;
  }

  /* ========== KEYFRAMES ========== */

  @keyframes expandReveal {
    0% {
      width: 180px;
      height: 220px;
      border-radius: 4px;
    }
    60% {
      width: 100vw;
      height: 100vh;
      border-radius: 0px;
    }
    100% {
      width: 100vw;
      height: 100vh;
      border-radius: 0px;
    }
  }

  @keyframes imgCounterScale {
    0% {
      transform: scale(2.2);
    }
    60% {
      transform: scale(1);
    }
    100% {
      transform: scale(1);
    }
  }

  @keyframes slideCardUp {
    from {
      transform: translateX(-50%) translateY(100%);
      opacity: 0;
    }
    to {
      transform: translateX(-50%) translateY(0%);
      opacity: 1;
    }
  }

  @keyframes fadeVignette {
    from { opacity: 0; }
    to { opacity: 1; }
  }

  /* ========== REVERSE PHASE ========== */
  /* Applied via JS class toggle */

  .reversing .img-wrapper {
    animation: collapseHide 3.5s cubic-bezier(0.76, 0, 0.24, 1) forwards;
  }

  .reversing .img-wrapper img {
    animation: imgReverseScale 3.5s cubic-bezier(0.76, 0, 0.24, 1) forwards;
  }

  .reversing .cta-card {
    animation: slideCardDown 0.8s cubic-bezier(0.76, 0, 0.24, 1) forwards;
  }

  .reversing .vignette {
    animation: fadeVignetteOut 1.5s ease forwards;
  }

  @keyframes collapseHide {
    0% {
      width: 100vw;
      height: 100vh;
      border-radius: 0px;
    }
    100% {
      width: 180px;
      height: 220px;
      border-radius: 4px;
    }
  }

  @keyframes imgReverseScale {
    0% { transform: scale(1); }
    100% { transform: scale(2.2); }
  }

  @keyframes slideCardDown {
    from {
      transform: translateX(-50%) translateY(0%);
      opacity: 1;
    }
    to {
      transform: translateX(-50%) translateY(100%);
      opacity: 0;
    }
  }

  @keyframes fadeVignetteOut {
    from { opacity: 1; }
    to { opacity: 0; }
  }

  /* Instruction text */
  .hint {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 9px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(200,169,126,0.4);
    z-index: 100;
    pointer-events: none;
  }