*{margin:0;padding:0;box-sizing:border-box}

:root{
  --bg: #FFFBF4;
  --ink: #1A1208;
  --navy: #11468b;
  --gold: #F5A623;
  --gold-bright: #FFD166;
  --gold-deep: #C97F0A;
  --sky: #3B8BEB;
  --mint: #06D6A0;
  --coral: #FF6B6B;
  --lavender: #A78BFA;
  --cream: #FFF3D6;
  --soft: #F7F0E6;
  --stone: #7C6E5A;
  --card-shadow: 0 8px 40px rgba(26,18,8,0.10);
}

html{scroll-behavior:smooth}

body{
  font-family:'Plus Jakarta Sans',sans-serif;
  background:var(--bg);
  color:var(--ink);
  overflow-x:hidden;
}

/* ─── CURSOR ─── */
.cursor{
  width:12px;height:12px;
  background:var(--gold);border-radius:50%;
  position:fixed;top:0;left:0;z-index:9999;
  pointer-events:none;
  transition:transform 0.15s,width 0.3s,height 0.3s;
  mix-blend-mode:multiply;
}

/* --- AJUSTES GLOBALES PARA MÓVIL --- */
@media (max-width: 960px) {
  /* 1. El Hero (Sección Inicial) */
  .hero-inner {
    grid-template-columns: 1fr !important; /* Una sola columna */
    text-align: center;
    padding-top: 100px;
    gap: 40px;
  }

  .hero h1 {
    font-size: 2.8rem !important; /* Título más pequeño para que no se corte */
    line-height: 1.1;
  }

  .hero-sub {
    margin: 0 auto 2rem;
  }

  .hero-btns {
    justify-content: center;
  }

  /* 2. Ocultar o ajustar elementos flotantes que estorben */
  .hero-floating-card {
    display: none; /* En celular suelen tapar el texto, mejor quitarlos */
  }

  .hero-visual {
    order: 2; /* Mandar la imagen abajo del texto */
  }

  .hero-photo-card {
    max-width: 300px; /* Tamaño controlable en celular */
    height: 380px;
    margin: 0 auto;
    transform: rotate(0deg); /* Quitamos la rotación para que no se vea chueco en pantallas chicas */
  }

  /* 3. Secciones "Nosotros" y "Ubicación" */
  .about-inner, .location-inner, .adm-layout {
    grid-template-columns: 1fr !important;
    gap: 40px;
  }

  .about-visual {
    order: 2;
  }

  /* 4. Grillas de tarjetas (Niveles, Por qué elegirnos) */
  .levels-grid, .why-grid, .gallery-grid, .team-grid {
    grid-template-columns: 1fr !important; /* Todo en una lista vertical */
  }

  /* 5. Ajuste de imágenes y fotos */
  .about-photo {
    aspect-ratio: 1/1; /* Más cuadrada en móvil */
  }

  /* 6. Formulario de Admisión */
  .adm-form-wrap {
    padding: 1.5rem; /* Menos espacio interno para que quepa el teclado */
  }

  /* 7. Chat Widget */
  .chat-window {
    width: calc(100% - 40px); /* Que ocupe casi todo el ancho */
    right: 20px;
    bottom: 100px;
    max-height: 70vh;
  }
}

/* --- AJUSTES PARA TABLETS (Laptops pequeñas) --- */
@media (min-width: 961px) and (max-width: 1200px) {
  .hero-inner {
    grid-template-columns: 1.2fr 0.8fr; /* Equilibrio para laptops */
    gap: 30px;
  }
  .hero h1 {
    font-size: 3.5rem;
  }
}
/* Extra small */
@media(max-width: 640px){
  .brand-text{
    display:none;
  }

  .nav-pill{
    padding:10px 12px;
    font-size:0.74rem;
  }
}
@media (max-width: 480px) {
  /* Reducimos el padding superior para que no baje tanto el contenido */
  .hero-inner {
    padding: 60px 4% 40px; 
    gap: 20px;
  }

  .hero h1 {
    /* Forzamos un tamaño menor para pantallas muy pequeñas */
    font-size: 2.1rem !important; 
    line-height: 1.1;
    letter-spacing: -0.02em;
  }
  
  /* Ajustamos el badge para que no ocupe tanto espacio vertical */
  .hero-badge {
    margin-bottom: 1rem;
    padding: 6px 12px;
    font-size: 0.65rem;
  }
}
@media (max-width: 480px) {
  .hero-btns {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  .btn-primary, .btn-ghost {
    width: 100%;
    text-align: center;
    padding: 14px;
    font-size: 0.85rem;
  }
}
/* ─── HERO ─── */
.hero {
  min-height: 100dvh;
  background: var(--navy);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding-top: 40px;        /* espacio para el nav fijo */
  padding-bottom: 40px;    /* ← esto evita que se corte abajo */
}
/* Decorative blobs */
.blob{position:absolute;border-radius:50%;filter:blur(80px);opacity:0.35}
.blob-1{width:600px;height:600px;background:#F5A623;top:-150px;right:-100px;animation:blobFloat 8s ease-in-out infinite}
.blob-2{width:400px;height:400px;background:#3B8BEB;bottom:-100px;left:-80px;animation:blobFloat 10s ease-in-out infinite reverse}
.blob-3{width:300px;height:300px;background:#06D6A0;top:40%;right:15%;animation:blobFloat 6s ease-in-out infinite 2s}
@keyframes blobFloat{0%,100%{transform:translate(0,0) scale(1)}50%{transform:translate(20px,-20px) scale(1.05)}}

/* Floating elements */
.float-shape{
  position:absolute;border-radius:20px;opacity:0.12;
  animation:floatUp 6s ease-in-out infinite;
}
.fs1{width:80px;height:80px;background:#FFD166;top:20%;left:8%;transform:rotate(20deg);animation-delay:0s}
.fs2{width:50px;height:50px;background:#06D6A0;top:60%;left:5%;transform:rotate(-15deg);animation-delay:1.5s}
.fs3{width:60px;height:60px;background:#3B8BEB;top:30%;right:8%;transform:rotate(35deg);animation-delay:1s}
.fs4{width:90px;height:90px;background:#FF6B6B;bottom:25%;right:5%;transform:rotate(-25deg);animation-delay:2.5s}
@keyframes floatUp{0%,100%{transform:translateY(0) rotate(20deg)}50%{transform:translateY(-18px) rotate(25deg)}}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 5% 60px;        /* ← más padding abajo */
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-badge{
  display:inline-flex;align-items:center;gap:10px;
  background:rgba(255,209,102,0.15);
  border:1px solid rgba(255,209,102,0.35);
  padding:8px 18px;border-radius:100px;
  font-size:0.75rem;font-weight:700;letter-spacing:0.12em;
  color:var(--gold-bright);text-transform:uppercase;
  margin-bottom:2rem;
}
.badge-dot{width:6px;height:6px;border-radius:50%;background:var(--gold-bright);animation:pulse 2s infinite}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.hero h1{
  font-family:'Fraunces',serif;
  font-size:clamp(3.2rem,5.5vw,5.5rem);
  font-weight:900;color:#fff;
  line-height:1.0;margin-bottom:1.8rem;
}
.hero h1 .accent{
  color:transparent;
  -webkit-text-stroke:2px var(--gold-bright);
  font-style:italic;
}
.hero h1 .highlight{
  background:linear-gradient(135deg,#FFD166,#F5A623);
  -webkit-background-clip:text;-webkit-text-fill-color:transparent;
}

.hero-sub{
  font-size:1.05rem;color:rgba(255,255,255,0.65);
  max-width:480px;line-height:1.8;margin-bottom:2.5rem;font-weight:400;
}

.hero-btns{display:flex;gap:1rem;flex-wrap:wrap}
.btn-primary{
  background:linear-gradient(135deg,#FFD166,#F5A623);
  color:#1A1208;padding:16px 36px;border-radius:100px;
  font-size:0.92rem;font-weight:800;letter-spacing:0.03em;
  border:none;cursor:pointer;
  box-shadow:0 8px 32px rgba(245,166,35,0.45);
  transition:all 0.35s;
}
.btn-primary:hover{transform:translateY(-4px) scale(1.03);box-shadow:0 16px 40px rgba(245,166,35,0.55)}

.btn-ghost{
  background:rgba(255,255,255,0.08);
  color:#fff;padding:16px 36px;border-radius:100px;
  font-size:0.92rem;font-weight:600;
  border:1.5px solid rgba(255,255,255,0.2);
  cursor:pointer;transition:all 0.35s;
  backdrop-filter:blur(10px);
}
.btn-ghost:hover{background:rgba(255,255,255,0.15);border-color:rgba(255,255,255,0.4);transform:translateY(-2px)}

/* Hero right visual mejorado con foto real */
.hero-visual{
  position:relative;
  display:flex;
  justify-content:center;
  align-items:center;
}

.hero-photo-wrap{
  position:relative;
  width:100%;
  max-width:520px;
  min-height:520px;
  display:flex;
  justify-content:center;
  align-items:center;
}

.hero-photo-card{
  position:relative;
  width:100%;
  max-width:430px;
  height:520px;
  border-radius:30px;
  overflow:hidden;
  box-shadow:
    0 30px 70px rgba(0,0,0,0.34),
    0 0 0 1px rgba(255,255,255,0.08);
  transform:rotate(-2deg);
  animation:heroPhotoFloat 5s ease-in-out infinite;
  background:#10284a;
}
.hero-slider{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
}

.hero-slide{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  opacity:0;
  transform:scale(1.04);
  transition:
    opacity 1s ease,
    transform 6s ease;
  filter:saturate(1.02) contrast(1.02);
}

.hero-slide.active{
  opacity:1;
  transform:scale(1);
}

.hero-slider-dots{
  position:absolute;
  left:50%;
  bottom:18px;
  transform:translateX(-50%);
  z-index:4;
  display:flex;
  gap:8px;
}

.hero-dot{
  width:10px;
  height:10px;
  border:none;
  border-radius:50%;
  background:rgba(255,255,255,0.35);
  cursor:pointer;
  transition:all 0.3s ease;
  padding:0;
}

.hero-dot.active{
  width:28px;
  border-radius:999px;
  background:linear-gradient(90deg,var(--gold),var(--gold-bright));
  box-shadow:0 0 12px rgba(245,166,35,0.35);
}
@keyframes heroPhotoFloat{
  0%,100%{transform:rotate(-2deg) translateY(0)}
  50%{transform:rotate(-2deg) translateY(-10px)}
}

.hero-photo{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  filter:saturate(1.02) contrast(1.02);
}

.hero-photo-overlay{
  position:absolute;
  inset:0;
  background:
    linear-gradient(180deg, rgba(13,37,69,0.10) 0%, rgba(13,37,69,0.25) 30%, rgba(13,37,69,0.82) 100%),
    linear-gradient(135deg, rgba(245,166,35,0.10) 0%, rgba(255,209,102,0.04) 45%, rgba(6,214,160,0.08) 100%);
}

.hero-photo-content{
  position:absolute;
  left:28px;
  right:28px;
  bottom:28px;
  z-index:2;
}

.hero-photo-kicker{
  display:inline-block;
  margin-bottom:12px;
  padding:8px 14px;
  border-radius:999px;
  background:rgba(255,255,255,0.12);
  border:1px solid rgba(255,255,255,0.16);
  backdrop-filter:blur(10px);
  color:var(--gold-bright);
  font-size:0.72rem;
  font-weight:800;
  letter-spacing:0.12em;
  text-transform:uppercase;
}

.hero-photo-title{
  font-family:'Fraunces',serif;
  font-size:2rem;
  line-height:1.08;
  font-weight:800;
  color:#fff;
  margin-bottom:12px;
  text-shadow:0 8px 28px rgba(0,0,0,0.25);
}

.hero-photo-text{
  font-size:0.95rem;
  line-height:1.7;
  color:rgba(255,255,255,0.82);
  max-width:320px;
}

.hero-photo-badge{
  position:absolute;
  z-index:3;
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 16px;
  border-radius:999px;
  background:rgba(255,251,244,0.94);
  color:var(--ink);
  font-size:0.76rem;
  font-weight:800;
  letter-spacing:0.06em;
  box-shadow:0 12px 26px rgba(0,0,0,0.16);
}

.hero-photo-badge-top{
  top:20px;
  left:20px;
}

.badge-mini-dot{
  width:8px;
  height:8px;
  border-radius:50%;
  background:var(--mint);
  box-shadow:0 0 0 4px rgba(6,214,160,0.16);
}

.hero-floating-card{
  position:absolute;
  z-index:4;
  min-width:180px;
  padding:16px 18px;
  border-radius:20px;
  background:rgba(255,255,255,0.10);
  border:1px solid rgba(255,255,255,0.14);
  backdrop-filter:blur(16px);
  box-shadow:0 18px 40px rgba(0,0,0,0.16);
}

.hero-floating-card strong{
  display:block;
  font-family:'Fraunces',serif;
  font-size:1.1rem;
  color:#fff;
  margin-bottom:4px;
}

.hero-floating-card span{
  display:block;
  font-size:0.78rem;
  line-height:1.5;
  color:rgba(255,255,255,0.72);
}

.hero-floating-card-1{
  top:52px;
  right:-18px;
  animation:floatCardA 6s ease-in-out infinite;
}

.hero-floating-card-2{
  left:-60px;
  bottom:220px;
  opacity:0.95;
}

@keyframes floatCardA{
  0%,100%{transform:translateY(0)}
  50%{transform:translateY(-8px)}
}

@keyframes floatCardB{
  0%,100%{transform:translateY(0)}
  50%{transform:translateY(10px)}
}
/* ─── WAVE DIVIDER ─── */
.wave{display:block;width:100%;height:80px;background:var(--bg);margin-top:-2px}

/* ─── ABOUT ─── */
.about{padding:100px 5%;background:var(--bg)}
.about-inner{max-width:1200px;margin:0 auto;display:grid;grid-template-columns:1fr 1fr;gap:80px;align-items:center}

.section-eyebrow{
  display:inline-flex;align-items:center;gap:10px;
  font-size:0.72rem;font-weight:800;letter-spacing:0.2em;
  text-transform:uppercase;color:var(--gold-deep);
  margin-bottom:1.2rem;
}
.eyebrow-line{width:28px;height:2px;background:linear-gradient(90deg,var(--gold),transparent)}

.section-title{
  font-family:'Fraunces',serif;
  font-size:clamp(2.2rem,3.5vw,3rem);
  font-weight:700;color:var(--ink);
  line-height:1.15;margin-bottom:1.4rem;
}
.section-title em{color:var(--gold-deep);font-style:italic}

.section-body{font-size:1rem;color:var(--stone);line-height:1.85;margin-bottom:1rem}

.value-grid{display:grid;grid-template-columns:1fr 1fr;gap:1rem;margin-top:2rem}
.val-chip{
  padding:1.2rem;border-radius:16px;
  background:#fff;border:1.5px solid rgba(26,18,8,0.07);
  display:flex;gap:12px;align-items:flex-start;
  transition:all 0.3s;box-shadow:0 2px 12px rgba(0,0,0,0.04);
}
.val-chip:hover{border-color:var(--gold);transform:translateY(-3px);box-shadow:0 8px 28px rgba(245,166,35,0.15)}
.val-emoji{font-size:1.6rem;line-height:1}
.val-name{font-size:0.9rem;font-weight:700;color:var(--ink);margin-bottom:2px}
.val-desc{font-size:0.78rem;color:var(--stone)}

/* About image */
.about-visual {
  position: relative;
  max-width: 700px; /* controla el ancho */
}

.about-photo {
    position: relative;
}

.about-photo img {
    width: 100%;
    max-height: 520px;           /* ← puedes bajar a 480px o 450px si aún sigue grande */
    height: auto;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}
.about-badge-float{
  position:absolute;bottom:-16px;right:-16px;
  background:var(--ink);color:#fff;
  padding:20px 24px;border-radius:20px;
  box-shadow:0 12px 36px rgba(26,18,8,0.25);
}
.abf-num{font-family:'Fraunces',serif;font-size:2.5rem;font-weight:900;color:var(--gold-bright);line-height:1}
.abf-txt{font-size:0.72rem;color:rgba(255,255,255,0.55);letter-spacing:0.1em;text-transform:uppercase;margin-top:4px}
.about-tag-float{
  position:absolute;top:24px;left:-20px;
  background:var(--gold);color:var(--ink);
  padding:10px 18px;border-radius:100px;
  font-size:0.78rem;font-weight:800;
  box-shadow:0 8px 24px rgba(245,166,35,0.4);
  letter-spacing:0.04em;
}

/* ─── LEVELS ─── */
.levels{padding:100px 5%;background:var(--soft)}
.levels-inner{max-width:1200px;margin:0 auto}
.levels-grid{display:grid;grid-template-columns:repeat(auto-fit, minmax(380px, 1fr));gap:1.5rem;margin-top:4rem}

.level-card{
  border-radius:24px;overflow:hidden;
  background:#fff;border:1.5px solid rgba(26,18,8,0.07);
  transition:all 0.4s cubic-bezier(0.34,1.56,0.64,1);
  cursor:pointer;position:relative;
  box-shadow:0 4px 20px rgba(0,0,0,0.05);
}
.level-card:hover{transform:translateY(-12px) scale(1.02);box-shadow:0 28px 60px rgba(0,0,0,0.13);border-color:transparent}

.lcard-top{
  padding:2.5rem 2.5rem 2rem;
  position:relative;overflow:hidden;
}
.lcard-top-0{background:linear-gradient(135deg,#FFE8A3,#FFD166)}
.lcard-top-1{background:linear-gradient(135deg,#B8F0E4,#06D6A0)}
.lcard-top-2{background:linear-gradient(135deg,#C2D8FF,#3B8BEB)}

.lcard-emoji{font-size:3rem;display:block;margin-bottom:1rem}
.lcard-tag{
  display:inline-block;font-size:0.68rem;font-weight:800;
  letter-spacing:0.14em;text-transform:uppercase;
  padding:5px 14px;border-radius:100px;
  background:rgba(26,18,8,0.1);color:var(--ink);
  margin-bottom:0.6rem;
}
.lcard-title{
  font-family:'Fraunces',serif;font-size:2rem;font-weight:900;
  color:var(--ink);
}

.lcard-body{padding:1.8rem 2.5rem 2rem}
.lcard-desc{font-size:0.9rem;color:var(--stone);line-height:1.75;margin-bottom:1.5rem}
.lcard-features{display:flex;flex-direction:column;gap:0.6rem}
.lcard-feat{
  display:flex;align-items:center;gap:10px;
  font-size:0.82rem;font-weight:600;color:var(--ink);
}
.feat-dot{width:8px;height:8px;border-radius:50%;flex-shrink:0}
.dot-0{background:#F5A623}
.dot-1{background:#06D6A0}
.dot-2{background:#3B8BEB}

.lcard-cta{
  margin:1.5rem 2.5rem 2rem;
  display:flex;align-items:center;gap:8px;
  font-size:0.85rem;font-weight:700;color:var(--ink);
  text-decoration:none;
  background:none;border:none;cursor:pointer;padding:0;
}
.lcard-arrow{
  width:32px;height:32px;border-radius:50%;
  background:var(--ink);display:flex;align-items:center;justify-content:center;
  color:#fff;font-size:0.9rem;
  transition:transform 0.3s;
}
.level-card:hover .lcard-arrow{transform:translateX(5px)}

/* ─── WHY ─── */
.why{padding:100px 5%;background:var(--bg)}
.why-inner{max-width:1200px;margin:0 auto}
.why-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.5rem;margin-top:4rem}

.why-card{
  padding:2.2rem;border-radius:20px;
  background:#fff;border:1.5px solid rgba(26,18,8,0.06);
  transition:all 0.35s;
  box-shadow:0 2px 16px rgba(0,0,0,0.04);
}
.why-card:hover{transform:translateY(-6px);box-shadow:0 16px 48px rgba(0,0,0,0.09);border-color:rgba(245,166,35,0.3)}
.why-ico{
  width:54px;height:54px;border-radius:14px;margin-bottom:1.4rem;
  display:flex;align-items:center;justify-content:center;font-size:1.5rem;
}
.ico-bg-0{background:linear-gradient(135deg,#FFE8A3,#FFD166)}
.ico-bg-1{background:linear-gradient(135deg,#D4F0FF,#3B8BEB30)}
.ico-bg-2{background:linear-gradient(135deg,#E0FFF7,#06D6A030)}
.ico-bg-3{background:linear-gradient(135deg,#FFE8E8,#FF6B6B30)}
.ico-bg-4{background:linear-gradient(135deg,#EDE8FF,#A78BFA30)}
.ico-bg-5{background:linear-gradient(135deg,#E8F5E9,#4CAF5030)}
.why-card h3{font-family:'Fraunces',serif;font-size:1.1rem;font-weight:700;margin-bottom:0.7rem}
.why-card p{font-size:0.87rem;color:var(--stone);line-height:1.75}

/* ─── CTA BAND ─── */
.cta-band{
  padding:80px 5%;
  background:linear-gradient(135deg,#0D2545,#1B3D70);
  position:relative;overflow:hidden;
}
.cta-blob{position:absolute;border-radius:50%;filter:blur(60px);opacity:0.25}
.cta-b1{width:400px;height:400px;background:#F5A623;top:-100px;left:-80px}
.cta-b2{width:300px;height:300px;background:#06D6A0;bottom:-80px;right:-40px}

.cta-inner{
  max-width:800px;margin:0 auto;text-align:center;position:relative;z-index:2;
}
.cta-inner h2{
  font-family:'Fraunces',serif;font-size:clamp(2.5rem,4vw,3.8rem);
  font-weight:900;color:#fff;line-height:1.1;margin-bottom:1.2rem;
}
.cta-inner h2 em{
  background:linear-gradient(135deg,#FFD166,#F5A623);
  -webkit-background-clip:text;-webkit-text-fill-color:transparent;font-style:normal;
}
.cta-inner p{font-size:1rem;color:rgba(255,255,255,0.6);margin-bottom:2.5rem;line-height:1.75}
.cta-btns{display:flex;gap:1rem;justify-content:center;flex-wrap:wrap}

/* ─── LOCATION ─── */
.location{padding:100px 5%;background:var(--soft)}
.location-inner{max-width:1200px;margin:0 auto;display:grid;grid-template-columns:1fr 1.2fr;gap:70px;align-items:start}

.contact-cards{display:flex;flex-direction:column;gap:1rem;margin:2rem 0}
.contact-card{
  display:flex;align-items:center;gap:16px;
  padding:1.2rem 1.5rem;
  background:#fff;border-radius:16px;
  border:1.5px solid rgba(26,18,8,0.06);
  transition:all 0.3s;
  box-shadow:0 2px 12px rgba(0,0,0,0.04);
}
.contact-card:hover{border-color:var(--gold);transform:translateX(4px)}
.cc-icon{
  width:44px;height:44px;border-radius:12px;
  display:flex;align-items:center;justify-content:center;font-size:1.2rem;flex-shrink:0;
}
.cc-label{font-size:0.72rem;color:var(--stone);font-weight:600;letter-spacing:0.06em;text-transform:uppercase;margin-bottom:3px}
.cc-value{font-size:0.92rem;font-weight:700;color:var(--ink)}

.map-wrap{
  border-radius:24px;overflow:hidden;
  box-shadow:0 24px 60px rgba(26,18,8,0.13);
  border:3px solid #fff;
}
.map-wrap iframe{display:block;filter:contrast(1.05) saturate(1.1)}

/* ─── ADMISSION ─── */
.admission{padding:100px 5%;background:var(--bg)}
.admission-inner{max-width:1200px;margin:0 auto}
.adm-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-top: 2rem; /* Reduje un poco el margen para que no haya tanto vacío */
  align-items: start; /* Alineación superior */
}

.adm-step:first-child {
  padding-top: 0;
  margin-top: 0; /* Asegura que el paso 1 no tenga espacio extra arriba */
}

.adm-form-wrap {
  background: var(--ink);
  border-radius: 28px;
  padding: 3rem;
  box-shadow: 0 32px 80px rgba(26,18,8,0.25);
  position: relative;
  overflow: hidden;
  margin-top: 0; /* Evita cualquier margen que lo empuje hacia abajo */
}
.steps-list{display:flex;flex-direction:column;gap:0}
.adm-step{
  display:flex;gap:20px;padding:1.8rem 0;
  border-bottom:1.5px solid rgba(26,18,8,0.06);position:relative;
}
.adm-step:first-child{padding-top:0}
.step-bubble{
  width:44px;height:44px;border-radius:50%;flex-shrink:0;
  display:flex;align-items:center;justify-content:center;
  font-family:'Fraunces',serif;font-size:1rem;font-weight:900;color:#fff;
  background:linear-gradient(135deg,#F5A623,#FFD166);
  box-shadow:0 4px 16px rgba(245,166,35,0.4);
}
.step-info strong{font-size:0.95rem;font-weight:700;color:var(--ink);display:block;margin-bottom:4px}
.step-info span{font-size:0.83rem;color:var(--stone);line-height:1.7}

/* Form */
.adm-form-wrap{
  background:var(--ink);border-radius:28px;
  padding:3rem;
  box-shadow:0 32px 80px rgba(26,18,8,0.25);
  position:relative;overflow:hidden;
}
.form-glow{
  position:absolute;top:-60px;right:-60px;
  width:200px;height:200px;border-radius:50%;
  background:rgba(245,166,35,0.15);filter:blur(50px);
}
.adm-form-wrap h3{
  font-family:'Fraunces',serif;font-size:1.8rem;font-weight:700;
  color:#fff;margin-bottom:0.4rem;position:relative;z-index:1;
}
.adm-form-wrap > p{font-size:0.85rem;color:rgba(255,255,255,0.45);margin-bottom:2rem;position:relative;z-index:1}

.fgroup{margin-bottom:1.2rem;position:relative;z-index:1}
.fgroup label{
  display:block;font-size:0.72rem;font-weight:700;
  letter-spacing:0.1em;text-transform:uppercase;
  color:rgba(255,255,255,0.5);margin-bottom:7px;
}
.fgroup input,.fgroup select{
  width:100%;padding:13px 16px;
  background:rgba(255,255,255,0.07);
  border:1.5px solid rgba(255,255,255,0.1);
  border-radius:12px;color:#fff;
  font-size:0.9rem;font-family:'Plus Jakarta Sans',sans-serif;
  transition:all 0.3s;outline:none;
}
.fgroup input::placeholder{color:rgba(255,255,255,0.25)}
.fgroup input:focus,.fgroup select:focus{
  border-color:rgba(245,166,35,0.6);
  background:rgba(255,255,255,0.1);
  box-shadow:0 0 0 4px rgba(245,166,35,0.1);
}
.fgroup select option{background:#1A1208;color:#fff}

.form-btn{
  width:100%;padding:16px;margin-top:0.5rem;
  background:linear-gradient(135deg,#FFD166,#F5A623);
  color:#1A1208;border:none;border-radius:14px;
  font-size:0.95rem;font-weight:800;letter-spacing:0.03em;
  cursor:pointer;transition:all 0.35s;
  font-family:'Plus Jakarta Sans',sans-serif;
  position:relative;z-index:1;
  box-shadow:0 8px 28px rgba(245,166,35,0.35);
}
.form-btn:hover{transform:translateY(-3px);box-shadow:0 16px 40px rgba(245,166,35,0.5)}

/* ─── FOOTER ─── */
footer{background:#0A0F1E;padding:70px 5% 36px;color:rgba(255,255,255,0.4)}
.footer-inner{max-width:1200px;margin:0 auto}
.footer-top{display:grid;grid-template-columns:2fr 1fr 1fr;gap:60px;margin-bottom:50px}

.f-brand{display:flex;align-items:center;gap:12px;margin-bottom:1rem}
.f-badge{
  width:44px;height:44px;border-radius:12px;
  background:linear-gradient(135deg,#F5A623,#FFD166);
  display:flex;align-items:center;justify-content:center;
  font-family:'Fraunces',serif;font-size:1.3rem;font-weight:900;color:#1A1208;
}
.f-name strong{display:block;color:#fff;font-family:'Fraunces',serif;font-size:1rem}
.f-name small{font-size:0.68rem;color:rgba(255,209,102,0.7);letter-spacing:0.12em;text-transform:uppercase}
.f-about{font-size:0.83rem;line-height:1.85;max-width:300px}
.footer-col h4{font-size:0.72rem;letter-spacing:0.14em;text-transform:uppercase;color:#fff;font-weight:700;margin-bottom:1rem}
.footer-col ul{list-style:none;display:flex;flex-direction:column;gap:0.55rem}
.footer-col a{font-size:0.83rem;color:rgba(255,255,255,0.4);text-decoration:none;transition:color 0.3s;cursor:pointer}
.footer-col a:hover{color:var(--gold-bright)}

.footer-bottom{
  padding-top:1.8rem;border-top:1px solid rgba(255,255,255,0.07);
  display:flex;justify-content:space-between;align-items:center;font-size:0.77rem;
}
.foot-motto{
  font-size:0.7rem;letter-spacing:0.18em;text-transform:uppercase;
  color:rgba(245,166,35,0.4);font-weight:700;
}

/* ─── WA BUTTON ─── */
.wa{
  position:fixed;bottom:28px;right:28px;z-index:400;
  width:62px;height:62px;border-radius:50%;
  background:linear-gradient(135deg,#25D366,#128C7E);
  display:flex;align-items:center;justify-content:center;
  font-size:1.6rem;text-decoration:none;
  box-shadow:0 8px 28px rgba(37,211,102,0.45);
  transition:all 0.3s;
}
.wa:hover{transform:translateY(-4px) scale(1.08);box-shadow:0 16px 40px rgba(37,211,102,0.55)}

/* ─── TOAST ─── */
.toast{
  position:fixed;top:90px;right:28px;z-index:600;
  background:#fff;border:1.5px solid rgba(245,166,35,0.4);
  color:var(--ink);padding:16px 22px;border-radius:14px;
  font-size:0.88rem;font-weight:600;
  transform:translateX(120%);transition:transform 0.4s cubic-bezier(0.34,1.56,0.64,1);
  box-shadow:0 12px 40px rgba(0,0,0,0.12);
  max-width:300px;
}
.toast.show{transform:translateX(0)}

/* ─── RESPONSIVE ─── */
@media(max-width:960px){
  .hero-inner{grid-template-columns:1fr;text-align:center}
  .hero-visual{display:none}
  .stats-chips{justify-content:center}
  .about-inner,.adm-layout,.location-inner{grid-template-columns:1fr}
  .levels-grid,.why-grid{grid-template-columns:1fr}
  .footer-top{grid-template-columns:1fr}
  .nav-links{display:none}
  .hero h1{font-size:clamp(2.5rem,8vw,3.8rem)}
  .hero-sub{margin:0 auto 2.5rem;text-align:center}
  .hero-btns{justify-content:center}
  .about-tag-float{left:12px}
  .map-wrap{margin-top:0}
}
/* Hamburger button */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 22px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 10;
}

.hamburger span {
  width: 100%;
  height: 3px;
  background: var(--ink);
  border-radius: 3px;
  transition: all 0.3s ease;
}

.nav-links.mobile-open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 80px;
  left: 0;
  right: 0;
  background: rgba(255,251,244,0.98);
  backdrop-filter: blur(20px);
  padding: 20px 5%;
  gap: 1.2rem;
  box-shadow: 0 10px 30px rgba(26,18,8,0.1);
  border-top: 1px solid rgba(245,166,35,0.15);
}

/* Mostrar hamburguesa solo en móvil */
@media(max-width:960px){
  .hamburger {
    display: flex;
  }
  .nav-pill {
    padding: 10px 20px;
    font-size: 0.82rem;
  }
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
@media(max-width:960px){

  .nav-links{
    display: none;
    position: absolute;
    top: 84px;
    left: 0;
    width: 100%;
    background: rgba(255,251,244,0.98);
    flex-direction: column;
    padding: 20px;
    z-index: 999;
  }

  .nav-links.active{
    display: flex;
  }

}

/* En móvil: la píldora se hace más pequeña y el menú se oculta mejor */
@media(max-width: 960px) {
  .nav-pill {
    padding: 10px 16px;
    font-size: 0.8rem;
    white-space: nowrap;
  }
  
  .nav-right {
    gap: 8px;
  }
}
.testimonial-card, .facility-card, .team-card, .faq-item {
  background:#fff; border:1.5px solid rgba(26,18,8,0.07); border-radius:24px;
  padding:2rem; box-shadow:0 4px 20px rgba(0,0,0,0.05); transition:all 0.4s;
}
.testimonial-card:hover, .facility-card:hover, .team-card:hover {transform:translateY(-8px); box-shadow:0 20px 50px rgba(245,166,35,0.15); border-color:var(--gold);}
.quote {font-size:1.4rem; line-height:1.4; color:var(--ink); font-family:'Fraunces',serif; margin-bottom:1.5rem;}
.author {display:flex; align-items:center; gap:12px;}
.author img {width:48px; height:48px; border-radius:50%; object-fit:cover;}
.stars {color:var(--gold-bright); font-size:1.3rem;}

.gallery-grid {display:grid; grid-template-columns:repeat(auto-fit, minmax(280px,1fr)); gap:1.5rem;}
.facility-card img {width:100%; height:220px; object-fit:cover; border-radius:16px; margin-bottom:1rem;}

.team-grid {display:grid; grid-template-columns:repeat(auto-fit, minmax(240px,1fr)); gap:2rem;}
.team-card {text-align:center;}
.team-card img {width:100%; height:280px; object-fit:cover; border-radius:20px; margin-bottom:1.2rem;}

.faq-question {cursor:pointer; display:flex; justify-content:space-between; align-items:center; font-weight:700;}
.faq-answer {display:none; margin-top:1rem; color:var(--stone); line-height:1.7;}
.faq-item.active .faq-answer {display:block;}
/* ─── CHAT WIDGET ─── */
.chat-widget {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.chat-bubble {
  width: 62px;
  height: 62px;
  background: linear-gradient(135deg, var(--gold), var(--gold-bright));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 8px 28px rgba(245, 166, 35, 0.45);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 3px solid #fff;
}

.chat-bubble:hover {
  transform: scale(1.1) rotate(10deg);
  box-shadow: 0 12px 40px rgba(245, 166, 35, 0.6);
}

/* Chatbot mejorado */
.chat-window {
  position: fixed;
  bottom: 110px;
  right: 30px;
  width: 380px;
  max-height: 620px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(26, 18, 8, 0.35);
  overflow: hidden;
  transform: scale(0.85) translateY(30px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 1px solid rgba(245, 166, 35, 0.2);
}

.chat-window.open {
  transform: scale(1) translateY(0);
  opacity: 1;
  visibility: visible;
}
.chat-header {
  background: linear-gradient(135deg, #0D2545, #1B3D70);
  color: white;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
}
.chat-close {
  position: absolute;
  right: 16px;
  top: 16px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.75);
  font-size: 22px;
  cursor: pointer;
  transition: color 0.3s;
}
.chat-close:hover { color: white; }
.quick-options {
  padding: 14px 16px 10px;
  background: #f8f4eb;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 1px solid #eee;
}
.chat-header-info strong {
  display: block;
  font-size: 1.05rem;
}
.status {
  font-size: 0.78rem;
  opacity: 0.85;
  display: flex;
  align-items: center;
  gap: 6px;
}
.online-dot {
  width: 8px;
  height: 8px;
  background: #06D6A0;
  border-radius: 50%;
  display: inline-block;
  animation: pulse 2s infinite;
}
.quick-options button {
  background: white;
  border: 1px solid #e0d8c8;
  padding: 9px 16px;
  border-radius: 30px;
  font-size: 0.83rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
}
.quick-options button:hover {
  background: var(--gold);
  color: #1A1208;
  border-color: var(--gold);
  transform: translateY(-1px);
}
.chat-footer {
  padding: 12px;
  background: #fff;
  display: flex;
  gap: 8px;
  align-items: center;
}

.chat-footer input {
  flex: 1;
  padding: 14px 18px;
  border: 1.5px solid #ddd;
  border-radius: 30px;
  font-size: 0.95rem;
  outline: none;
  transition: all 0.3s;
}
.chat-footer input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(245, 166, 35, 0.1);
}
.send-btn {
  background: linear-gradient(135deg, var(--gold), var(--gold-bright));
  color: #1A1208;
  border: none;
  padding: 0 24px;
  border-radius: 30px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
}
.send-btn:hover {
  transform: scale(1.05);
}
.chat-footer button:last-child {
  background: var(--gold);
  color: #1A1208;
  padding: 14px 20px;
  border: none;
  border-radius: 30px;
  font-weight: 700;
  cursor: pointer;
}
.chat-header .avatar {
  width: 42px;
  height: 42px;
  background: var(--gold-bright);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.chat-body {
  height: 380px;
  padding: 20px;
  overflow-y: auto;
  background: #f8f4eb;
  display: flex;
  flex-direction: column;
  gap: 14px;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) #eee;
}
.chat-message {
  max-width: 85%;
  padding: 13px 17px;
  border-radius: 18px;
  font-size: 0.93rem;
  line-height: 1.55;
}
.bot-message {
  align-self: flex-start;
  background: white;
  border-bottom-left-radius: 6px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.07);
}
.user-message {
  align-self: flex-end;
  background: var(--gold);
  color: #1A1208;
  border-bottom-right-radius: 6px;
  font-weight: 500;
}
.chat-footer {
  padding: 16px;
  background: white;
  border-top: 1px solid #eee;
  display: flex;
  gap: 10px;
}
.chat-footer button {
  flex: 1;
  padding: 12px 14px;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s;
}

.chat-footer .wa-btn {
  background: #25D366;
  color: white;
}

.chat-footer .info-btn {
  background: var(--gold);
  color: #1A1208;
}
/* ====================== BOTONES FLOTANTES REALISTAS ====================== */
.floating-buttons {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 500;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-end;
}

.chat-float, .wa-float {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
  border: 4px solid #ffffff;
}

.chat-float {
  width: 68px;
  height: 68px;
  background: linear-gradient(135deg, var(--gold), var(--gold-bright));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 12px 35px rgba(245, 166, 35, 0.45);
  border: 4px solid #fff;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.chat-float:hover {
  transform: scale(1.12) translateY(-6px) rotate(8deg);
  box-shadow: 0 20px 50px rgba(245, 166, 35, 0.6);
}
.wa-float {
  position: relative;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  
  background: linear-gradient(135deg, #25D366, #20B95C);

  box-shadow:
    0 12px 35px rgba(37, 211, 102, 0.55),
    inset 0 -10px 20px rgba(0,0,0,0.25),
    inset 0 10px 20px rgba(255,255,255,0.35);

  border: 4px solid #fff;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.34,1.56,0.64,1);
}

/* Hover */
.wa-float:hover {
  transform: scale(1.15) translateY(-6px);
  box-shadow:
    0 20px 50px rgba(37, 211, 102, 0.7),
    inset 0 -10px 20px rgba(0,0,0,0.3),
    inset 0 10px 20px rgba(255,255,255,0.4);
}

/* Glow animado */
.wa-float::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.4);
  animation: pulseWsp 2s infinite;
  z-index: -1;
}

@keyframes pulseWsp {
  0% { transform: scale(1); opacity: 0.6; }
  70% { transform: scale(1.6); opacity: 0; }
  100% { opacity: 0; }
}
.wa-float::before {
  content: "Escríbenos";
  position: absolute;
  right: 80px;
  background: #1A1208;
  color: #fff;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 0.75rem;
  opacity: 0;
  transform: translateX(10px);
  transition: 0.3s;
  white-space: nowrap;
}

.wa-float:hover::before {
  opacity: 1;
  transform: translateX(0);
}

/* =========================
   NAV ULTRA PRO 2026
========================= */
.modern-nav{
  position: fixed;
  top: 16px;
  left: 0;
  width: 100%;
  z-index: 1200;
  padding: 0 20px;
  transition: all 0.35s ease;
}

.nav-shell{
  max-width: 1280px;
  margin: 0 auto;
  height: 82px;
  padding: 0 18px 0 20px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;

  background:
    linear-gradient(180deg, rgba(255,255,255,0.82), rgba(255,251,244,0.88));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);

  border: 1px solid rgba(255,255,255,0.55);
  box-shadow:
    0 18px 50px rgba(13,37,69,0.10),
    0 8px 20px rgba(26,18,8,0.06),
    inset 0 1px 0 rgba(255,255,255,0.65);
}

.modern-nav::before{
  content:"";
  position:absolute;
  inset: 0;
  pointer-events:none;
  background: radial-gradient(circle at top center, rgba(255,209,102,0.12), transparent 45%);
}

.modern-nav.scrolled{
  top: 10px;
}

.modern-nav.scrolled .nav-shell{
  height: 74px;
  box-shadow:
    0 16px 42px rgba(13,37,69,0.13),
    0 8px 22px rgba(26,18,8,0.08),
    inset 0 1px 0 rgba(255,255,255,0.65);
}

/* BRAND */
.brand{
  display:flex;
  align-items:center;
  gap:14px;
  text-decoration:none;
  min-width: 0;
  flex-shrink: 0;
}

.brand-logo-wrap{
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.95), rgba(255,243,214,0.92));
  border: 1px solid rgba(245,166,35,0.18);
  box-shadow:
    0 10px 24px rgba(245,166,35,0.18),
    inset 0 1px 0 rgba(255,255,255,0.8);
  overflow:hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.brand:hover .brand-logo-wrap{
  transform: translateY(-2px) scale(1.03);
  box-shadow:
    0 16px 30px rgba(245,166,35,0.25),
    inset 0 1px 0 rgba(255,255,255,0.85);
}

.logo-img{
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.brand-text{
  display:flex;
  flex-direction:column;
  min-width: 0;
}

.brand-name{
  font-family:'Fraunces', serif;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.brand-name .accent{
  color: var(--gold-deep);
  font-style: italic;
}

.brand-sub{
  margin-top: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--stone);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* LINKS */
.nav-links{
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
  list-style:none;
  margin:0;
  padding: 8px;
  flex: 1;
  min-width: 0;

  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(245,166,35,0.08);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.65);
}

.nav-link{
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 12px 16px;
  border-radius: 999px;
  text-decoration:none;
  color: #5d5142;
  font-size: 0.93rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: all 0.28s ease;
  white-space: nowrap;
}

.nav-link:hover{
  color: var(--ink);
  background: rgba(245,166,35,0.10);
}

.nav-link.active{
  color: #1A1208;
  background: linear-gradient(135deg, rgba(255,209,102,0.28), rgba(245,166,35,0.18));
  box-shadow:
    0 8px 18px rgba(245,166,35,0.14),
    inset 0 1px 0 rgba(255,255,255,0.6);
}

.nav-link.active::after{
  content:"";
  position:absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold));
}

.nav-link-secondary{
  color: #736552;
}

/* ACTIONS */
.nav-actions{
  display:flex;
  align-items:center;
  gap: 12px;
  flex-shrink: 0;
}

.nav-cta{
  border:none;
  outline:none;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding: 14px 22px;
  border-radius: 999px;

  background: linear-gradient(135deg, #FFD166 0%, #F5A623 60%, #E89A16 100%);
  color: #1A1208;
  font-weight: 800;
  font-size: 0.90rem;
  letter-spacing: 0.01em;

  box-shadow:
    0 14px 32px rgba(245,166,35,0.32),
    inset 0 1px 0 rgba(255,255,255,0.45);

  transition: all 0.3s ease;
}

.nav-cta:hover{
  transform: translateY(-3px) scale(1.02);
  box-shadow:
    0 18px 36px rgba(245,166,35,0.42),
    inset 0 1px 0 rgba(255,255,255,0.55);
}

.nav-cta-icon{
  font-size: 1rem;
  line-height: 1;
}

/* HAMBURGER */
.hamburger{
  display:none;
  width: 48px;
  height: 48px;
  border:none;
  border-radius: 14px;
  background: rgba(245,166,35,0.12);
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:5px;
  cursor:pointer;
  transition: all 0.3s ease;
}

.hamburger:hover{
  background: rgba(245,166,35,0.18);
}

.hamburger span{
  width: 22px;
  height: 2.5px;
  border-radius: 999px;
  background: var(--gold-deep);
  transition: all 0.32s ease;
}

/* MOBILE */
@media (max-width: 1100px){
  .nav-links{
    position: fixed;
    top: 98px;
    left: 20px;
    right: 20px;
    width: auto;
    height: auto;
    min-height: calc(100vh - 120px);
    padding: 26px 20px 34px;
    border-radius: 28px;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 10px;

    background: rgba(255,251,244,0.96);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);

    box-shadow:
      0 24px 60px rgba(13,37,69,0.16),
      0 10px 24px rgba(26,18,8,0.08);

    transform: translateY(-18px) scale(0.98);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.35s ease;
  }

  .nav-links.mobile-open{
    transform: translateY(0) scale(1);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-link{
    width: 100%;
    justify-content: flex-start;
    padding: 15px 18px;
    border-radius: 18px;
    font-size: 1rem;
    background: rgba(255,255,255,0.65);
    border: 1px solid rgba(26,18,8,0.04);
  }

  .nav-link.active::after{
    display:none;
  }

  .nav-cta{
    display:none;
  }

  .hamburger{
    display:flex;
  }
}
/* =========================================================
   MOBILE FIX PRO - PÉGALO AL FINAL DE TODO EL CSS
========================================================= */
@media (max-width: 768px) {
  html, body {
    overflow-x: hidden;
  }

  body {
    font-size: 15px;
  }

  .cursor {
    display: none;
  }

  /* ================= NAV ================= */
  .modern-nav {
    top: 8px;
    padding: 0 10px;
  }

  .nav-shell {
    width: 100%;
    max-width: 100%;
    height: 68px;
    padding: 0 12px;
    border-radius: 18px;
    gap: 10px;
  }

  .brand {
    flex: 1;
    min-width: 0;
    gap: 10px;
    overflow: hidden;
  }

  .brand-logo-wrap {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    flex-shrink: 0;
  }

  .logo-img {
    width: 30px;
    height: 30px;
  }

  .brand-text {
    min-width: 0;
    overflow: hidden;
  }

  .brand-name {
    font-size: 0.95rem;
    line-height: 1.05;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .brand-sub {
    font-size: 0.55rem;
    letter-spacing: 0.06em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hamburger {
    display: flex;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 12px;
  }

  .hamburger span {
    width: 20px;
  }

  .nav-links {
    position: fixed;
    top: 84px;
    left: 10px;
    right: 10px;
    width: auto;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    padding: 16px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: rgba(255, 251, 244, 0.98);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 18px 45px rgba(13, 37, 69, 0.14);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    min-height: unset;
  }

  .nav-links.mobile-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-link {
    width: 100%;
    justify-content: flex-start;
    padding: 14px 16px;
    border-radius: 14px;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.82);
  }

  .nav-link.active::after {
    display: none;
  }

  /* ================= HERO ================= */
  .hero {
    min-height: auto;
    padding-top: 98px;
    padding-bottom: 28px;
    align-items: flex-start;
  }

  .hero-inner {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 28px !important;
    width: 100%;
    max-width: 100%;
    padding: 24px 16px 20px !important;
    text-align: center;
  }

  .hero-inner > div:first-child {
    width: 100%;
    max-width: 100%;
  }

  .hero-badge {
    margin: 0 auto 16px;
    padding: 7px 12px;
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    text-align: center;
    justify-content: center;
    max-width: 100%;
  }

  .hero h1 {
    font-size: clamp(2rem, 9vw, 2.8rem) !important;
    line-height: 1.05;
    margin-bottom: 14px;
    text-align: center;
  }

  .hero-sub {
    max-width: 100%;
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0 auto 20px !important;
    color: rgba(255, 255, 255, 0.78);
    padding: 0 4px;
  }

  .hero-btns {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    align-items: stretch;
  }

  .btn-primary,
  .btn-ghost {
    width: 100%;
    padding: 14px 18px;
    font-size: 0.9rem;
    text-align: center;
    justify-content: center;
  }

  /* Mostrar imagen del hero en móvil, pero ordenada */
  .hero-visual {
    display: flex !important;
    order: 2;
    width: 100%;
    justify-content: center;
  }

  .hero-photo-wrap {
    width: 100%;
    max-width: 340px;
    min-height: auto;
  }

  .hero-photo-card {
    width: 100%;
    max-width: 340px;
    height: 390px;
    transform: none !important;
    border-radius: 24px;
    animation: none;
  }

  .hero-photo-badge-top {
    top: 14px;
    left: 14px;
    padding: 8px 12px;
    font-size: 0.68rem;
  }

  .hero-photo-content {
    left: 18px;
    right: 18px;
    bottom: 18px;
  }

  .hero-photo-kicker {
    font-size: 0.62rem;
    padding: 7px 11px;
    margin-bottom: 10px;
  }

  .hero-photo-title {
    font-size: 1.45rem;
    line-height: 1.08;
    margin-bottom: 10px;
  }

  .hero-photo-text {
    font-size: 0.84rem;
    line-height: 1.55;
    max-width: 100%;
  }

  .hero-slider-dots {
    bottom: 12px;
    gap: 6px;
  }

  .hero-dot {
    width: 8px;
    height: 8px;
  }

  .hero-dot.active {
    width: 22px;
  }

  .hero-floating-card {
    display: none !important;
  }

  /* Formas decorativas */
  .blob-1 {
    width: 300px;
    height: 300px;
    right: -140px;
    top: -80px;
  }

  .blob-2 {
    width: 240px;
    height: 240px;
    left: -120px;
    bottom: -80px;
  }

  .blob-3 {
    width: 180px;
    height: 180px;
    right: -70px;
    top: 52%;
  }

  .float-shape {
    opacity: 0.08;
  }

  /* ================= SECCIONES ================= */
  .about,
  .levels,
  .why,
  .location,
  .admission,
  footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .about,
  .levels,
  .why,
  .location,
  .admission {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .about-inner,
  .location-inner,
  .adm-layout,
  .footer-top {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }

  .about-visual {
    order: -1;
    max-width: 100%;
  }

  .about-photo img {
    max-height: 360px !important;
    border-radius: 18px;
  }

  .about-tag-float {
    position: static;
    display: inline-flex;
    margin-bottom: 14px;
    font-size: 0.72rem;
    padding: 8px 14px;
  }

  .about-badge-float {
    position: static;
    margin-top: 16px;
    display: inline-block;
    padding: 14px 18px;
    border-radius: 16px;
  }

  .abf-num {
    font-size: 2rem;
  }

  .abf-txt {
    font-size: 0.66rem;
  }

  .section-title {
    font-size: clamp(1.8rem, 7vw, 2.3rem);
    line-height: 1.15;
    margin-bottom: 1rem;
  }

  .section-body {
    font-size: 0.95rem;
    line-height: 1.75;
  }

  .value-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .val-chip {
    padding: 1rem;
    border-radius: 14px;
  }

  /* ================= TARJETAS ================= */
  .levels-grid,
  .why-grid,
  .gallery-grid,
  .team-grid {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }

  .level-card-photo,
  .why-card,
  .testimonial-card,
  .facility-card,
  .team-card,
  .faq-item {
    border-radius: 20px;
  }

  .level-image {
    height: 220px;
  }

  .level-content {
    padding: 1.4rem 1.2rem 1.6rem;
  }

  .level-content h3 {
    font-size: 1.7rem;
    margin-bottom: 0.8rem;
  }

  .level-content p,
  .why-card p,
  .quote {
    font-size: 0.92rem;
    line-height: 1.7;
  }

  .level-features {
    gap: 10px;
    margin-bottom: 1.4rem;
  }

  .feat {
    font-size: 0.9rem;
  }

  .feat span {
    font-size: 1.2rem;
    width: 24px;
  }

  .level-cta {
    padding: 14px 16px;
    font-size: 0.92rem;
  }

  .why-card {
    padding: 1.4rem;
  }

  .why-ico {
    width: 48px;
    height: 48px;
    font-size: 1.25rem;
    margin-bottom: 1rem;
  }

  .facility-card img,
  .team-card img {
    height: 220px;
    border-radius: 16px;
  }

  .testimonial-card,
  .facility-card,
  .team-card,
  .faq-item {
    padding: 1.3rem;
  }

  .quote {
    font-size: 1.05rem;
    margin-bottom: 1rem;
  }

  .author img {
    width: 42px;
    height: 42px;
  }

  /* ================= CTA ================= */
  .cta-band {
    padding: 64px 16px;
  }

  .cta-inner h2 {
    font-size: clamp(1.9rem, 8vw, 2.7rem);
    line-height: 1.1;
  }

  .cta-inner p {
    font-size: 0.95rem;
    line-height: 1.7;
  }

  .cta-btns {
    flex-direction: column;
    gap: 10px;
  }

  .cta-btns .btn-primary,
  .cta-btns .btn-ghost {
    width: 100%;
  }

  /* ================= UBICACIÓN ================= */
  .contact-cards {
    gap: 12px;
    margin: 1.4rem 0;
  }

  .contact-card {
    padding: 1rem;
    gap: 12px;
    border-radius: 14px;
  }

  .cc-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }

  .cc-value {
    font-size: 0.88rem;
    line-height: 1.5;
  }

  .map-wrap {
    border-radius: 18px;
  }

  .map-wrap iframe {
    height: 300px;
  }

  /* ================= ADMISIÓN ================= */
  .adm-layout {
    gap: 28px !important;
    margin-top: 1.2rem !important;
  }

  .adm-step {
    gap: 14px;
    padding: 1.2rem 0;
  }

  .step-bubble {
    width: 38px;
    height: 38px;
    font-size: 0.9rem;
  }

  .step-info strong {
    font-size: 0.9rem;
  }

  .step-info span {
    font-size: 0.82rem;
    line-height: 1.6;
  }

  .adm-form-wrap {
    padding: 1.4rem !important;
    border-radius: 20px;
  }

  .adm-form-wrap h3 {
    font-size: 1.45rem;
  }

  .adm-form-wrap > p {
    font-size: 0.82rem;
    line-height: 1.6;
    margin-bottom: 1.2rem;
  }

  .fgroup {
    margin-bottom: 1rem;
  }

  .fgroup label {
    font-size: 0.66rem;
    margin-bottom: 6px;
  }

  .fgroup input,
  .fgroup select {
    padding: 12px 14px;
    font-size: 0.92rem;
    border-radius: 10px;
  }

  .form-btn {
    padding: 14px 16px;
    font-size: 0.9rem;
    border-radius: 12px;
  }

  /* ================= FAQ ================= */
  .faq-question {
    font-size: 0.94rem;
    line-height: 1.5;
    gap: 12px;
  }

  .faq-answer {
    font-size: 0.88rem;
    line-height: 1.7;
  }

  /* ================= FOOTER ================= */
  .footer-top {
    gap: 28px;
    margin-bottom: 28px;
  }

  .f-about {
    max-width: 100%;
    font-size: 0.82rem;
    line-height: 1.75;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
    font-size: 0.72rem;
  }

  .foot-motto {
    font-size: 0.65rem;
    letter-spacing: 0.12em;
  }

  /* ================= BOTONES FLOTANTES ================= */
  .floating-buttons {
    right: 14px;
    bottom: 14px;
    gap: 10px;
  }

  .chat-float,
  .wa-float {
    width: 56px;
    height: 56px;
    border-width: 3px;
  }

  .wa-float svg,
  .chat-float svg {
    width: 24px;
    height: 24px;
  }

  .wa-float::before {
    display: none;
  }

  /* ================= CHAT ================= */
  .chat-widget {
    bottom: 0;
    right: 0;
  }

  .chat-window {
    right: 10px !important;
    left: 10px;
    bottom: 84px;
    width: auto !important;
    max-width: none;
    max-height: 72vh;
    border-radius: 20px;
  }

  .chat-header {
    padding: 14px 16px;
    gap: 10px;
  }

  .chat-header .avatar {
    width: 38px;
    height: 38px;
    font-size: 18px;
  }

  .chat-header-info strong {
    font-size: 0.92rem;
  }

  .status {
    font-size: 0.72rem;
  }

  .chat-close {
    right: 12px;
    top: 12px;
    font-size: 20px;
  }

  .quick-options {
    padding: 10px 12px;
    gap: 8px;
  }

  .quick-options button {
    font-size: 0.76rem;
    padding: 8px 12px;
  }

  .chat-body {
    height: 260px;
    padding: 14px;
    gap: 10px;
  }

  .chat-message {
    max-width: 92%;
    padding: 11px 13px;
    font-size: 0.88rem;
  }

  .chat-footer {
    padding: 12px;
    gap: 8px;
  }

  .chat-footer input {
    padding: 12px 14px;
    font-size: 0.88rem;
    border-radius: 24px;
  }

  .chat-footer button:last-child {
    padding: 12px 14px;
    font-size: 0.8rem;
    flex: 0 0 auto;
  }

  /* ================= SECCIONES INLINE DEL HTML ================= */
  section[style*="padding:100px 5%"] {
    padding: 72px 16px !important;
  }

  section[style*="max-width:1200px"] > div,
  section[style*="max-width:800px"] > div,
  section[style*="max-width:1200px"],
  section[style*="max-width:800px"] {
    max-width: 100% !important;
  }

  div[style*="display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:2rem;margin-top:2rem;"] {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
}

/* =========================================================
   EXTRA SMALL
========================================================= */
@media (max-width: 480px) {
  .modern-nav {
    padding: 0 8px;
  }

  .nav-shell {
    height: 64px;
    padding: 0 10px;
    border-radius: 16px;
  }

  .brand-logo-wrap {
    width: 40px;
    height: 40px;
  }

  .logo-img {
    width: 28px;
    height: 28px;
  }

  .brand-name {
    font-size: 0.88rem;
  }

  .brand-sub {
    display: none;
  }

  .hero {
    padding-top: 90px;
  }

  .hero-inner {
    padding: 18px 14px 18px !important;
    gap: 22px !important;
  }

  .hero h1 {
    font-size: clamp(1.85rem, 10vw, 2.45rem) !important;
  }

  .hero-sub {
    font-size: 0.9rem;
  }

  .hero-photo-card {
    max-width: 300px;
    height: 350px;
  }

  .hero-photo-title {
    font-size: 1.25rem;
  }

  .section-title {
    font-size: clamp(1.6rem, 8vw, 2.1rem);
  }

  .level-image {
    height: 200px;
  }

  .level-content h3 {
    font-size: 1.5rem;
  }

  .map-wrap iframe {
    height: 260px;
  }

  .chat-window {
    bottom: 78px;
    left: 8px;
    right: 8px !important;
    border-radius: 18px;
  }

  .floating-buttons {
    right: 12px;
    bottom: 12px;
  }

  .chat-float,
  .wa-float {
    width: 52px;
    height: 52px;
  }
}
/* ====================== TARJETAS CON FOTOS - VERSIÓN CORREGIDA ====================== */
.levels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 2.2rem;
  margin-top: 4rem;
}

.level-card-photo {
  background: #fff;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(26, 18, 8, 0.12);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.level-card-photo:hover {
  transform: translateY(-12px);
  box-shadow: 0 25px 60px rgba(26, 18, 8, 0.18);
}

/* === IMAGEN CORREGIDA === */
.level-image {
  position: relative;
  height: 250px;           /* Altura más generosa */
  overflow: hidden;
}

.level-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;       /* Cubre todo el espacio sin deformarse */
  object-position: center; /* Centra la imagen */
  transition: transform 0.7s ease;
}

.level-card-photo:hover .level-image img {
  transform: scale(1.07);
}

.level-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(0,0,0,0.65) 100%);
}

.level-badge {
  position: absolute;
  top: 30px;
  left: 24px;
  background: rgba(255, 255, 255, 0.95);
  color: #1A1208;
  font-weight: 800;
  font-size: 1rem;
  padding: 8px 26px;
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  letter-spacing: 0.6px;
  z-index: 2;
}

/* Contenido */
.level-content {
  padding: 2rem 2rem 2.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.level-age {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--gold-deep);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.level-content h3 {
  font-family: 'Fraunces', serif;
  font-size: 2.15rem;
  font-weight: 800;
  margin-bottom: 1.1rem;
  color: var(--ink);
}

.level-content p {
  color: var(--stone);
  line-height: 1.78;
  margin-bottom: 1.8rem;
  flex-grow: 1;
}

.level-features {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 2rem;
}

.feat {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.97rem;
  color: #333;
}

.feat span {
  font-size: 1.45rem;
  width: 28px;
}

/* Botón */
.level-cta {
  width: 100%;
  background: linear-gradient(135deg, var(--gold), var(--gold-bright));
  color: #1A1208;
  border: none;
  padding: 16px 20px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 1.02rem;
  cursor: pointer;
  margin-top: auto;
  transition: all 0.35s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.level-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(245, 166, 35, 0.45);
}

.level-cta span {
  transition: transform 0.3s ease;
}

.level-card-photo:hover .level-cta span {
  transform: translateX(8px);
}

/* HISTORIA PRO */
.historia-section {
  padding: 110px 5%;
  background: linear-gradient(180deg, var(--bg), var(--soft));
  overflow: hidden;
}

.historia-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.historia-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 4rem;
  align-items: center;
}

.historia-content {
  background: #fff;
  padding: 2.8rem;
  border-radius: 30px;
  box-shadow: var(--card-shadow);
  border: 1.5px solid rgba(245, 166, 35, 0.14);
}

.historia-content p {
  color: var(--stone);
  font-size: 1rem;
  line-height: 1.85;
  margin-bottom: 1rem;
}

.historia-photo-wrap {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  min-height: 460px;
  box-shadow: 0 28px 70px rgba(26, 18, 8, 0.18);
  background: var(--navy);
}

.historia-photo {
  width: 100%;
  height: 460px;
  object-fit: cover;
  display: block;
  filter: saturate(1.05) contrast(1.04);
}

.historia-photo-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(17, 70, 139, 0.02),
    rgba(17, 70, 139, 0.55)
  );
}

.historia-photo-badge {
  position: absolute;
  left: 24px;
  bottom: 24px;
  z-index: 2;
  padding: 18px 22px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255,255,255,0.22);
  backdrop-filter: blur(16px);
  color: #fff;
}

.historia-photo-badge strong {
  display: block;
  font-family: 'Fraunces', serif;
  font-size: 1.6rem;
  color: var(--gold-bright);
}

.historia-photo-badge span {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.82);
}

.historia-timeline-pro {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}

.historia-step {
  background: #fff;
  padding: 1.6rem;
  border-radius: 22px;
  border: 1.5px solid rgba(26,18,8,0.06);
  box-shadow: 0 8px 24px rgba(26,18,8,0.06);
  transition: all 0.3s ease;
}

.historia-step:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 42px rgba(26,18,8,0.10);
  border-color: rgba(245,166,35,0.35);
}

.historia-step span {
  display: inline-flex;
  margin-bottom: 0.9rem;
  padding: 8px 15px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold), var(--gold-bright));
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 900;
}

.historia-step h3 {
  font-family: 'Fraunces', serif;
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
  color: var(--ink);
}

.historia-step p {
  color: var(--stone);
  font-size: 0.87rem;
  line-height: 1.65;
}

/* Responsive */
@media (max-width: 992px) {
  .historia-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .historia-timeline-pro {
    grid-template-columns: repeat(2, 1fr);
  }

  .historia-photo-wrap,
  .historia-photo {
    min-height: 380px;
    height: 380px;
  }
}

@media (max-width: 576px) {
  .historia-section {
    padding: 75px 16px;
  }

  .historia-content {
    padding: 1.5rem;
    border-radius: 22px;
  }

  .historia-timeline-pro {
    grid-template-columns: 1fr;
  }

  .historia-photo-wrap,
  .historia-photo {
    min-height: 320px;
    height: 320px;
  }
}
/* --- SECCIÓN HISTORIA PROFESIONAL --- */
.historia-section {
  padding: 120px 5%;
  background-color: var(--bg);
  position: relative;
}

.historia-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr; /* Texto más ancho que la foto */
  gap: 80px;
  align-items: center;
  margin-bottom: 80px;
}

.p-destacado {
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 1.5rem;
  font-weight: 500;
  line-height: 1.5;
}

.historia-text-wrap p {
  margin-bottom: 1rem;
  color: var(--stone);
  font-size: 1rem;
  line-height: 1.8;
}

/* Contenedor de la Imagen */
.historia-visual {
  position: relative;
}

.historia-photo-frame {
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,0.12);
  border: 8px solid #fff;
}

.historia-img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  display: block;
}

.floating-history-badge {
  position: absolute;
  bottom: 30px;
  right: -20px;
  background: var(--gold);
  padding: 20px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 15px 35px rgba(245,166,35,0.4);
  color: var(--ink);
}

.badge-year {
  display: block;
  font-family: 'Fraunces', serif;
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1;
}

.badge-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.05em;
}

/* Timeline Horizontal */
.historia-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  border-top: 2px dashed rgba(245,166,35,0.3);
  padding-top: 40px;
}

.timeline-item {
  position: relative;
}

.time-mark {
  display: inline-block;
  padding: 6px 14px;
  background: var(--navy);
  color: #fff;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 800;
  margin-bottom: 15px;
}

.timeline-item h4 {
  font-family: 'Fraunces', serif;
  font-size: 1.15rem;
  margin-bottom: 8px;
  color: var(--ink);
}

.timeline-item p {
  font-size: 0.85rem;
  color: var(--stone);
  line-height: 1.5;
}

/* Ajuste móvil */
@media (max-width: 960px) {
  .historia-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  .historia-timeline {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .floating-history-badge {
    right: 20px;
  }
}
/* ===================== HISTORIA MEJORADA ===================== */
.historia-section {
  padding: 120px 5% 100px;
  background: var(--bg);
}

.historia-grid-improved {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 992px) {
  .historia-grid-improved {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

/* Imagen controlada */
.historia-photo-frame {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.historia-img {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: cover;
  display: block;
}

/* Texto */
.historia-content {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.historia-text p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #444;
}

.p-destacado {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--accent);
}

/* Timeline */
.historia-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.timeline-item {
  background: white;
  padding: 1.2rem;
  border-radius: 16px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.06);
  text-align: center;
}

.time-mark {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
/* ===================== HISTORIA - VERSIÓN FINAL (Imagen controlada) ===================== */
.historia-section {
  padding: 110px 5% 100px;
  background: var(--bg);
}

.historia-grid-improved {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;   /* Texto un poco más ancho */
  gap: 4.5rem;
  align-items: center;
  max-width: 1250px;
  margin: 0 auto;
}

@media (max-width: 992px) {
  .historia-grid-improved {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

/* Imagen más pequeña y elegante */
.historia-photo-frame {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(26,18,8,0.15);
  border: 10px solid #fff;
}

.historia-img {
  width: 100%;
  height: 460px;           /* ← Altura fija más razonable */
  object-fit: cover;
  object-position: center;
  display: block;
}

.floating-history-badge {
  position: absolute;
  bottom: 28px;
  right: -15px;
  background: var(--gold);
  color: #1A1208;
  padding: 18px 22px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 15px 35px rgba(245,166,35,0.45);
  z-index: 2;
}

.badge-year {
  display: block;
  font-family: 'Fraunces', serif;
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 1;
}

.badge-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Texto */
.historia-content {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.historia-text p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--stone);
}

.p-destacado {
  font-size: 1.22rem;
  font-weight: 600;
  color: var(--navy);
}

/* Timeline */
.historia-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
  gap: 1.4rem;
}

.timeline-item {
  background: #fff;
  padding: 1.3rem 1rem;
  border-radius: 18px;
  box-shadow: 0 6px 20px rgba(26,18,8,0.06);
  text-align: center;
  transition: all 0.3s;
}

.timeline-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(245,166,35,0.15);
}

.time-mark {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 0.6rem;
}