
/* ── RESET & BASE ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 17px; scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; color: #1B2A72; background: #fff; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
 
:root {
  --azul-profundo: #1A3A6E;
  --azul-medio: #2057A7;
  --azul-cielo: #5DB8D4;
  --azul:        /*#1B2A72;*/#222950;
  --azul-mid:    #243494;
  --azul-claro:  #8EC6E6;
  --dorado:      #8B7320;
  --dorado-claro:#B09A3E;
  --blanco:      #FFFFFF;
  --gris-claro:  #F4F5F8;
  --gris-texto:  #4A4E6B;
  --borde:       rgba(27,42,114,0.12);
  --site-width:  1100px;
  --site-pad:    32px;
}
 
/* ── TOPBAR ── */
.topbar {
  background: var(--azul-profundo);
  padding: 0 32px;
}
.topbar-inner {
  max-width: var(--site-width);
  margin: 0 auto;
  padding: 12px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.topbar-logos { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.tl-img { height: 46px; width: auto; filter: brightness(0) invert(1); opacity: .88; }
.topbar-right { color: rgba(255,255,255,.6); font-size: 12px; letter-spacing: .03em; }
 
/* ── HEADER ── */
.header {
  background: var(--blanco);
  padding: 0 32px;
  border-bottom: 1px solid var(--borde);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 12px rgba(27,42,114,.07);
}
.header-inner {
  max-width: var(--site-width);
  margin: 0 auto;
  display: flex;
  align-items: stretch;
  width: 100%;
}
.header-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  flex-shrink: 0;
  margin-right: 20px;
}
.logo-box {
  /*width: 72px; */
  height: 72px;
  background: transparent;
  border-radius: 0;
  display: flex; align-items: center; justify-content: center;
  border: none;
  overflow: hidden;
  flex-shrink: 0;
}
.logo-box img { width: 100%; height: 100%; object-fit: contain; padding: 0; }
.brand-text h1 {
  font-family: 'Playfair Display', serif;
  font-size: 16px; font-weight: 700;
  color: var(--azul); line-height: 1.3;
}
.brand-text p {
  font-size: 11.5px; color: var(--dorado);
  font-weight: 600; letter-spacing: .07em;
  text-transform: uppercase; margin-top: 3px;
}
 
/* ── HAMBURGER ── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px; height: 40px;
  cursor: pointer;
  margin-left: auto;
  border: 1px solid var(--borde);
  border-radius: 8px;
  flex-shrink: 0;
  background: none;
}
.hamburger span {
  display: block;
  width: 20px; height: 2px;
  background: var(--azul);
  border-radius: 2px;
  transition: all .3s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
 
/* ── NAV DESKTOP ── */
nav {
  display: flex;
  align-items: stretch;
  flex: 1;
}
.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 500;
  color: var(--gris-texto);
  padding: 0 11px;
  cursor: pointer;
  white-space: nowrap;
  transition: color .18s;
  border-bottom: 2px solid transparent;
  user-select: none;
  text-decoration: none;
}
.nav-item:hover,
.nav-item.open { color: var(--azul); border-bottom-color: var(--azul); }
.chevron {
  font-size: 8px; opacity: .4;
  transition: transform .22s;
  display: inline-block;
}
.nav-item.open .chevron { transform: rotate(180deg); opacity: .75; }
 
.btn-plat {
  margin-left: auto;
  align-self: center;
  background: var(--azul);
  color: white !important;
  padding: 8px 15px;
  border-radius: 8px;
  border-bottom: none !important;
  font-size: 12px; font-weight: 600;
  transition: background .18s;
}
.btn-plat:hover { background: var(--azul-mid) !important; }
 
/* ── DROPDOWN DESKTOP ── */
.dropdown {
  position: absolute;
  top: calc(100% + 1px);
  left: 0;
  background: var(--blanco);
  border: 1px solid var(--borde);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(27,42,114,.14), 0 2px 8px rgba(27,42,114,.06);
  padding: 8px;
  min-width: 215px;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity .22s, transform .22s;
  z-index: 300;
}
.dropdown.wide {
  min-width: 460px;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.dropdown.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}
.dd-col { padding: 4px; }
.dd-col-title {
  font-size: 10px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--dorado);
  padding: 8px 10px 4px;
  display: block;
}
.dd-divider { height: 1px; background: var(--borde); margin: 5px 8px; }
.dd-item {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: background .15s;
  text-decoration: none;
  color: inherit;
}
.dd-item:hover { background: var(--gris-claro); }
.dd-icon {
  width: 28px; height: 28px;
  border-radius: 6px;
  background: var(--gris-claro);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  margin-top: 1px;
}
.dd-icon svg { width: 14px; height: 14px; }
.dd-label { font-size: 13px; font-weight: 500; color: var(--gris-texto); line-height: 1.3; display: block; }
.dd-desc { font-size: 11px; color: #9098B5; margin-top: 1px; display: block; font-weight: 400; }
.dd-simple {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px; border-radius: 8px; cursor: pointer;
  font-size: 13px; color: var(--gris-texto);
  transition: background .15s; text-decoration: none;
}
.dd-simple:hover { background: var(--gris-claro); color: var(--azul); }
.dd-simple span { font-size: 10px; opacity: .35; }
.dd-badge {
  background: rgba(139,115,32,.12);
  border: 1px solid rgba(139,115,32,.25);
  color: var(--dorado);
  font-size: 9px; font-weight: 700;
  padding: 2px 7px; border-radius: 100px;
  letter-spacing: .06em; text-transform: uppercase;
}
 
/* ── ANIMACIONES ── */
@keyframes fadeUp   { from{opacity:0;transform:translateY(22px)} to{opacity:1;transform:translateY(0)} }
@keyframes fadeIn   { from{opacity:0} to{opacity:1} }
@keyframes slideInR { from{opacity:0;transform:translateX(40px)} to{opacity:1;transform:translateX(0)} }
@keyframes lineIn   { from{transform:scaleX(0)} to{transform:scaleX(1)} }
@keyframes orb1     { 0%,100%{transform:translate(0,0)} 50%{transform:translate(22px,-16px)} }
@keyframes orb2     { 0%,100%{transform:translate(0,0)} 50%{transform:translate(-18px,20px)} }
@keyframes pulse    { 0%{transform:scale(1);opacity:.5} 100%{transform:scale(1.7);opacity:0} }

/* ── CAROUSEL ── */
.carousel-wrap {
  position: relative; overflow: hidden;
  min-height: 560px; background: var(--azul);
}
/* Pista ya no necesita flex+translateX: ahora usamos opacity por slide */
.carousel-track { position: relative; min-height: 560px; }

.slide {
  position: absolute; inset: 0;
  display: flex; align-items: flex-end;
  opacity: 0; pointer-events: none;
  transition: opacity .55s ease;
}
.slide.active { opacity: 1; pointer-events: auto; }

/* orbs decorativos */
.slide-orb-a {
  position: absolute; border-radius: 50%; pointer-events: none;
  animation: orb1 14s ease-in-out infinite;
}
.slide-orb-b {
  position: absolute; border-radius: 50%; pointer-events: none;
  animation: orb2 17s ease-in-out infinite;
}

.slide-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.slide-overlay { position: absolute; inset: 0; }

/* Contenido del slide con animación al activarse */
.slide-content {
  position: relative; z-index: 2;
  padding: 0 56px 68px;
  max-width: 620px;
}
.slide.active .slide-tag   { animation: fadeUp .5s .1s ease both; }
.slide.active .slide-content h2 { animation: fadeUp .6s .25s ease both; }
.slide.active .slide-content h2 em::after { animation: lineIn .6s .85s ease both; }
.slide.active .slide-content p   { animation: fadeUp .6s .4s ease both; }
.slide.active .slide-cta         { animation: fadeUp .6s .55s ease both; }

.slide-tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(139,115,32,.28); border: 1px solid rgba(176,154,62,.4);
  color: #D4B85A; font-size: 10px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 100px; margin-bottom: 13px;
  opacity: 0; /* se activa con la animación */
}
.slide-tag-dot { width: 4px; height: 4px; background: #D4B85A; border-radius: 50%; }

.slide-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 38px; font-weight: 700; color: white;
  line-height: 1.15; letter-spacing: -.02em;
  max-width: 540px; margin-bottom: 10px;
  opacity: 0;
}
.slide-content h2 em {
  color: var(--azul-claro); font-style: normal;
  position: relative;
}
.slide-content h2 em::after {
  content: ''; position: absolute; bottom: -3px; left: 0; right: 0;
  height: 2px; background: var(--dorado-claro); border-radius: 1px;
  transform-origin: left; transform: scaleX(0);
}

.slide-content p {
  font-size: 15px; color: rgba(255,255,255,.72);
  max-width: 460px; line-height: 1.6;
  font-weight: 300; margin-bottom: 22px;
  opacity: 0;
}
.slide-cta {
  background: var(--dorado-claro); color: white;
  font-size: 13px; font-weight: 600;
  padding: 11px 22px; border-radius: 8px;
  border: none; font-family: 'DM Sans', sans-serif;
  cursor: pointer; display: inline-block;
  text-decoration: none; opacity: 0;
  transition: filter .2s, transform .2s;
}
.slide-cta:hover { filter: brightness(1.1); transform: translateY(-2px); }

.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22);
  color: white; font-size: 15px; cursor: pointer; z-index: 10;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.carousel-btn:hover { background: rgba(255,255,255,.25); }
.carousel-btn.prev { left: 16px; }
.carousel-btn.next { right: 16px; }
.carousel-dots {
  position: absolute; bottom: 18px; left: 48px;
  display: flex; gap: 7px; align-items: center; z-index: 10;
}
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,.3); cursor: pointer;
  transition: all .3s;
}
.dot.active { background: white; width: 24px; border-radius: 4px; }
.carousel-progress {
  position: absolute; bottom: 0; left: 0; height: 2px;
  background: rgba(255,255,255,.5); z-index: 10;
  width: 0; border-radius: 0 2px 2px 0;
}
 
/* ── STATS ── */
.stats-strip {
  background: var(--gris-claro);
  border-bottom: 1px solid var(--borde);
  display: grid; grid-template-columns: repeat(4,1fr);
}

/* ── CONTENIDO CENTRADO (body-wrap) ── */
.body-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ── ANIVERSARIO ── */
.stat-item { padding: 18px 8px; text-align: center; border-right: 1px solid var(--borde); }
.stat-item:last-child { border-right: none; }
.stat-num { font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 700; color: var(--azul); line-height: 1; margin-bottom: 3px; }
.stat-num span { color: var(--dorado); font-size: 15px; }
.stat-label { font-size: 10px; color: var(--gris-texto); font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }

/* ── ANIVERSARIO ── */
.aniversario-strip {
  margin: 28px 0 0;
  background: linear-gradient(90deg,rgba(139,115,32,.06),rgba(142,198,230,.08));
  border: 1px solid rgba(139,115,32,.2);
  border-radius: 12px; padding: 16px 22px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.aniv-badge {
  background: var(--azul); color: white;
  font-family: 'Playfair Display', serif;
  font-size: 18px; font-weight: 700;
  width: 50px; height: 50px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.aniv-text { flex: 1; min-width: 0; }
.aniv-text h4 { font-size: 13px; font-weight: 600; color: var(--azul); margin-bottom: 2px; }
.aniv-text p { font-size: 11px; color: var(--gris-texto); }
.aniv-link {
  background: var(--dorado); color: white;
  font-size: 12px; font-weight: 600;
  padding: 8px 14px; border-radius: 6px;
  cursor: pointer; flex-shrink: 0; white-space: nowrap;
  text-decoration: none;
}
 
/* ── CARDS ── */
.section { padding: 44px 0; }
.section-eyebrow { font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--dorado); margin-bottom: 6px; }
.section-title { font-family: 'Playfair Display', serif; font-size: 24px; font-weight: 700; color: var(--azul); letter-spacing: -.01em; margin-bottom: 22px; }
.cards-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.card {
  background: var(--blanco); border: 1px solid var(--borde);
  border-radius: 12px; padding: 20px; cursor: pointer;
  transition: all .25s; position: relative; overflow: hidden;
  text-decoration: none; display: block;
}
.card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--azul); opacity: 0; transition: opacity .25s; }
.card:hover { border-color: rgba(27,42,114,.3); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(27,42,114,.1); }
.card:hover::before { opacity: 1; }
.card-icon { width: 34px; height: 34px; background: var(--gris-claro); border-radius: 7px; margin-bottom: 11px; display: flex; align-items: center; justify-content: center; }
.card-icon svg { width: 17px; height: 17px; }
.card h3 { font-size: 13px; font-weight: 600; color: var(--azul); line-height: 1.35; margin-bottom: 5px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.card p { font-size: 12px; color: var(--gris-texto); line-height: 1.6; }
.card-arrow { margin-top: 12px; font-size: 11px; color: var(--dorado); font-weight: 600; }
 
/* ── FOOTER ── */
footer { background: var(--azul); padding: 40px 32px 22px; margin-top: 48px; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 36px; padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,.1); margin-bottom: 20px; }
.footer-brand h4 { font-family: 'Playfair Display', serif; font-size: 15px; font-weight: 700; color: white; margin-bottom: 8px; }
.footer-brand p { font-size: 12px; color: rgba(255,255,255,.55); line-height: 1.6; font-weight: 300; }
.footer-col h5 { font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--azul-claro); margin-bottom: 10px; }
.footer-link { display: block; font-size: 12px; color: rgba(255,255,255,.6); margin-bottom: 6px; cursor: pointer; text-decoration: none; transition: color .18s; }
.footer-link:hover { color: white; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.footer-bottom p { font-size: 11px; color: rgba(255,255,255,.4); }
.footer-105 { background: rgba(139,115,32,.3); border: 1px solid rgba(176,154,62,.35); color: #D4B85A; font-size: 10px; font-weight: 600; padding: 4px 10px; border-radius: 100px; letter-spacing: .05em; }
 
/* ── OVERLAY MENÚ MÓVIL ── */
.nav-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(10,18,60,.5);
  z-index: 9998;
  backdrop-filter: blur(2px);
}
.nav-overlay.show { display: block; }
/* Botón cerrar nav: oculto en desktop, se muestra en @media ≤900px */
.nav-close-btn { display: none; }

/* ══════════════════════════════════════
   RESPONSIVE BREAKPOINTS
══════════════════════════════════════ */
 
/* ── TABLET: ≤ 900px ── */
@media (max-width: 900px) {
  .topbar { padding: 0 20px; }
  .topbar-inner { padding: 8px 0; }
  .tl-img { height: 36px; }
  .header { padding: 0 20px; }
  .header-inner { width: 100%; }
  .body-wrap { padding: 0 20px; }
  .section { padding: 36px 0; }
  footer { padding: 32px 20px 18px; }
 
  /* Ocultar nav normal, mostrar hamburger */
  .hamburger { display: flex; }

  nav {
    position: fixed;
    top: 0; right: -320px;
    width: 300px; height: 100%;
    background: var(--blanco);
    z-index: 9999;
    flex-direction: column;
    align-items: stretch;
    overflow-y: auto;
    padding: 70px 0 32px;
    box-shadow: -4px 0 24px rgba(27,42,114,.15);
    transition: right .35s cubic-bezier(.77,0,.18,1);
  }
  nav.mobile-open { right: 0; }
 
  .nav-item {
    padding: 14px 20px;
    border-bottom: 1px solid var(--borde) !important;
    border-left: none !important;
    font-size: 15px;
    justify-content: space-between;
    width: 100%;
  }
  .nav-item:hover,
  .nav-item.open {
    background: var(--gris-claro);
    border-bottom-color: var(--borde) !important;
    color: var(--azul);
  }
 
  .btn-plat {
    margin: 16px 20px 0;
    align-self: stretch;
    justify-content: center;
    padding: 14px;
    font-size: 14px;
    border-radius: 8px;
    text-align: center;
  }
 
  /* Dropdown → acordeón */
  .dropdown {
    position: static !important;
    opacity: 1 !important; transform: none !important;
    pointer-events: all !important;
    box-shadow: none; border: none; border-radius: 0;
    padding: 0 0 0 12px;
    min-width: unset !important;
    display: none !important;
    transition: none;
    background: rgba(244,245,248,.6);
  }
  .dropdown.wide {
    grid-template-columns: 1fr !important;
    display: none !important;
  }
  .dropdown.mobile-sub-open,
  .dropdown.wide.mobile-sub-open {
    display: block !important;
  }
  .dd-col { padding: 0; }
  .dd-col-title { padding: 10px 12px 4px; font-size: 10px; }
  .dd-item { padding: 11px 12px; }
  .dd-label { font-size: 14px; }
  .dd-desc { font-size: 12px; }
  .dd-simple { padding: 11px 12px; font-size: 14px; }
 
  /* Cerrar nav */
  .nav-close-btn {
    display: flex !important;
    position: absolute;
    top: 14px; right: 14px;
    width: 38px; height: 38px;
    align-items: center; justify-content: center;
    border: 1px solid var(--borde); border-radius: 8px;
    font-size: 18px; cursor: pointer; color: var(--azul);
    background: none;
    font-family: 'DM Sans', sans-serif;
  }
  .stats-strip { grid-template-columns: repeat(2,1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3) { border-top: 1px solid var(--borde); border-right: 1px solid var(--borde); }
  .stat-item:nth-child(4) { border-top: 1px solid var(--borde); border-right: none; }
  .cards-grid { grid-template-columns: repeat(2,1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
 
/* ── MÓVIL: ≤ 560px ── */
@media (max-width: 560px) {
  .tl-img { height: 30px; }
  .topbar-right { display: none; }
  .topbar { padding: 0 14px; }
  .topbar-inner { padding: 10px 0; gap: 0; }
  .topbar-logos { gap: 12px; }
  .header { padding: 0 14px; }
  .header-inner { width: 100%; }
  .body-wrap { padding: 0 14px; }
 
  .logo-box { width: auto; height: 44px; }
  .logo-box img { width: auto; height: 100%; }
  .brand-text h1 { font-size: 11.5px; }
  .brand-text p { display: none; }
 
  nav { width: 88%; right: -100vw; }
 
  .slide { height: 340px; }
  .slide-content { padding: 0 18px 22px; }
  .slide-tag { display: none; }
  .slide-content h2 { font-size: 22px; }
  .slide-content p { display: none; }
  .slide-cta { font-size: 12px; padding: 9px 16px; }
  .carousel-btn { width: 30px; height: 30px; font-size: 12px; }
  .carousel-dots { right: 50%; transform: translateX(50%); bottom: 10px; }
 
  .stats-strip { grid-template-columns: repeat(2,1fr); }
 
  .aniversario-strip { padding: 14px 16px; gap: 12px; margin: 16px 0 0; }
  .aniv-text p { display: none; }
  .aniv-link { width: 100%; text-align: center; margin-top: 4px; }
 
  .section { padding: 28px 0; }
  .section-title { font-size: 20px; }
  .cards-grid { grid-template-columns: 1fr; }
 
  footer { padding: 28px 16px 16px; margin-top: 32px; }
  .footer-top { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
}
 
/* ── MÓVIL MUY PEQUEÑO: ≤ 380px ── */
@media (max-width: 380px) {
  .brand-text h1 { font-size: 13px; }
  .brand-text p { display: none; }
  .tl-img { height: 22px; }
  .slide { height: 300px; }
  .slide-content h2 { font-size: 18px; }
  .stat-num { font-size: 18px; }
}
 
/* ── SCROLL TO TOP ── */
.scroll-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: var(--azul);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(27,42,114,.38);
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease, background .2s;
  z-index: 999;
}
.scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}
.scroll-top:hover {
  background: var(--dorado);
  transform: translateY(-3px);
  box-shadow: 0 8px 26px rgba(139,115,32,.45);
}
.scroll-top:hover .st-arrow { transform: translateY(-2px); }
.st-arrow { transition: transform .2s; display: flex; align-items: center; justify-content: center; }
.st-arrow svg { width: 20px; height: 20px; }
/* Anillo de progreso SVG */
.st-ring {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  border-radius: 50%;
  pointer-events: none;
}
.st-ring circle {
  fill: none;
  stroke: var(--azul-claro);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 138.2;
  stroke-dashoffset: 138.2;
  transform-origin: center;
  transform: rotate(-90deg);
  opacity: .6;
  transition: stroke-dashoffset .08s linear;
}
@media (max-width: 560px) {
  .scroll-top { bottom: 20px; right: 18px; width: 42px; height: 42px; }
  .st-arrow svg { width: 17px; height: 17px; }
}

/* ══════════════════════════════════════
   PÁGINAS INTERIORES
══════════════════════════════════════ */

/* Hero de página interior */
.page-hero {
  background: /*linear-gradient(135deg, var(--azul) 0%, var(--azul-mid) 100%);*/
  linear-gradient(135deg, var(--azul-profundo) 0%, var(--azul-medio) 60%, #1a6688 100%);
  padding: 44px 32px 40px;
  position: relative;
  overflow: hidden;
}
.page-hero-inner {
  max-width: var(--site-width);
  margin: 0 auto;
}
.page-hero::after {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(142,198,230,.1);
  pointer-events: none;
}
.page-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(139,115,32,.28); border: 1px solid rgba(176,154,62,.4);
  color: #D4B85A; font-size: 10px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 100px; margin-bottom: 12px;
}
.page-hero h2 {
  font-family: 'Playfair Display', serif;
  font-size: 32px; font-weight: 700; color: white;
  line-height: 1.2; letter-spacing: -.02em;
  max-width: 600px; margin-bottom: 10px;
}
.page-hero p {
  font-size: 15px; color: rgba(255,255,255,.72);
  max-width: 540px; line-height: 1.6; font-weight: 300;
}

/* Contenido interior */
.inner-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 48px 32px 64px;
}
.inner-wrap h3 {
  font-family: 'Playfair Display', serif;
  font-size: 20px; font-weight: 700;
  color: var(--azul); margin: 12px 0 12px;
  line-height: 1.3;
}
.inner-wrap h4 {
  font-size: 15px; font-weight: 600;
  color: var(--azul); margin: 28px 0 8px;
}
.inner-wrap p {
  font-size: 15px; color: var(--gris-texto);
  line-height: 1.75; margin-bottom: 16px;
}
.inner-wrap ul, .inner-wrap ol {
  margin: 0 0 18px 20px;
}
.inner-wrap li {
  font-size: 15px; color: var(--gris-texto);
  line-height: 1.75; margin-bottom: 6px;
  padding-left: 4px;
}

/* Card de sección interior */
.info-card {
  background: var(--gris-claro);
  border: 1px solid var(--borde);
  border-radius: 14px;
  padding: 28px 32px;
  margin-bottom: 24px;
}
.info-card-accent {
  border-left: 4px solid var(--azul);
  background: rgba(27,42,114,.04);
}
.info-card-gold {
  border-left: 4px solid var(--dorado);
  background: rgba(139,115,32,.04);
}

/* Highlight / quote */
.highlight-box {
  background: linear-gradient(135deg, var(--azul) 0%, var(--azul-mid) 100%);
  border-radius: 8px;
  padding: 28px 32px;
  margin: 32px 0;
  color: white;
}
.highlight-box p { color: rgba(255,255,255,.85); margin: 0; font-size: 15px; }
.highlight-box strong { color: white; }

/* Tabla de costos */
.cost-table {
  width: 100%; border-collapse: collapse;
  margin: 20px 0;
}
.cost-table th {
  background: var(--azul); color: white;
  font-size: 12px; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  padding: 12px 18px; text-align: left;
}
.cost-table th:first-child { border-radius: 8px 0 0 0; }
.cost-table th:last-child  { border-radius: 0 8px 0 0; }
.cost-table td {
  padding: 14px 18px;
  font-size: 15px; color: var(--gris-texto);
  border-bottom: 1px solid var(--borde);
}
.cost-table tr:last-child td { border-bottom: none; }
.cost-table tr:nth-child(even) td { background: var(--gris-claro); }
.cost-table .amount {
  font-family: 'Playfair Display', serif;
  font-size: 20px; font-weight: 700; color: var(--azul);
}

/* Tarjeta de tutor */
.tutores-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 8px;
}
.tutor-card {
  background: var(--blanco);
  border: 1px solid var(--borde);
  border-radius: 12px;
  padding: 22px;
  transition: box-shadow .2s, transform .2s;
}
.tutor-card:hover {
  box-shadow: 0 8px 24px rgba(27,42,114,.1);
  transform: translateY(-2px);
}
.tutor-card-top {
  display: flex; align-items: flex-start; gap: 14px;
  margin-bottom: 12px;
}
.tutor-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--azul) 0%, var(--azul-mid) 100%);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-family: 'Playfair Display', serif;
  font-size: 18px; font-weight: 700; color: white;
}
.tutor-name {
  font-size: 14px; font-weight: 600; color: var(--azul);
  line-height: 1.3; margin-bottom: 2px;
}
.tutor-email {
  font-size: 12px; color: var(--dorado);
  text-decoration: none; word-break: break-all;
}
.tutor-email:hover { text-decoration: underline; }
.tutor-body {
  font-size: 13px; color: var(--gris-texto);
  line-height: 1.65;
  text-align: justify;
}
.tutor-lineas {
  margin-top: 10px; padding-top: 10px;
  border-top: 1px solid var(--borde);
  font-size: 12px; color: var(--gris-texto);
}
.tutor-lineas strong { color: var(--azul); }

/* Mapa curricular */
.curriculum-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 24px 0;
}
.semestre-block {
  background: var(--blanco);
  border: 1px solid var(--borde);
  border-radius: 12px;
  overflow: hidden;
}
.semestre-header {
  background: var(--azul);
  color: white;
  padding: 10px 18px;
  font-size: 13px; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase;
}
.semestre-body { padding: 14px 18px; }
.materia-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--borde);
  font-size: 13px; color: var(--gris-texto); line-height: 1.4;
}
.materia-item:last-child { border-bottom: none; }
.materia-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--dorado); flex-shrink: 0; margin-top: 5px;
}

/* Modalidades de grado */
.modalidad-accordion { margin: 20px 0; }
.modalidad-item {
  border: 1px solid var(--borde);
  border-radius: 10px;
  margin-bottom: 10px;
  overflow: hidden;
}
.modalidad-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  cursor: pointer;
  background: var(--blanco);
  transition: background .18s;
  user-select: none;
}
.modalidad-header:hover { background: var(--gris-claro); }
.modalidad-header.open { background: var(--azul); color: white; }
.modalidad-header.open .mod-chevron { color: white; transform: rotate(180deg); }
.modalidad-label {
  font-size: 14px; font-weight: 600; color: inherit;
  display: flex; align-items: center; gap: 10px;
}
.modalidad-badge {
  background: var(--azul); color: white;
  font-size: 11px; font-weight: 700;
  padding: 2px 9px; border-radius: 100px;
}
.modalidad-header.open .modalidad-badge {
  background: rgba(255,255,255,.2);
}
.mod-chevron { font-size: 12px; opacity: .5; transition: transform .22s; }
.modalidad-body {
  display: none;
  padding: 20px 22px;
  background: var(--gris-claro);
  font-size: 14px; color: var(--gris-texto); line-height: 1.7;
}
.modalidad-body.open { display: block; }
.modalidad-body ul { margin: 10px 0 10px 18px; }
.modalidad-body li { margin-bottom: 5px; }
.modalidad-body a { color: var(--dorado); font-weight: 500; }
.modalidad-body a:hover { text-decoration: underline; }

/* Contacto */
.contacto-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 8px;
}
.contacto-card {
  background: var(--blanco);
  border: 1px solid var(--borde);
  border-radius: 12px;
  padding: 22px;
  transition: box-shadow .2s;
}
.contacto-card:hover { box-shadow: 0 6px 20px rgba(27,42,114,.09); }
.contacto-icon {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--azul), var(--azul-mid));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.contacto-icon svg { width: 20px; height: 20px; }
.contacto-card h4 {
  font-size: 14px; font-weight: 600; color: var(--azul);
  margin-bottom: 8px; line-height: 1.3;
}
.contacto-card p, .contacto-card a {
  font-size: 13px; color: var(--gris-texto);
  line-height: 1.65; display: block; margin-bottom: 3px;
  text-decoration: none;
}
.contacto-card a:hover { color: var(--dorado); }
.contacto-horario {
  margin-top: 10px; padding-top: 10px;
  border-top: 1px solid var(--borde);
  font-size: 12px; color: var(--gris-texto);
}
.contacto-horario strong { color: var(--azul); }

/* Convocatoria timeline */
.timeline {
  position: relative;
  margin: 24px 0;
  padding-left: 28px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 6px; top: 6px; bottom: 6px;
  width: 2px;
  background: linear-gradient(to bottom, var(--azul), var(--azul-claro));
  border-radius: 2px;
}
.timeline-item {
  position: relative;
  margin-bottom: 24px;
}
.timeline-dot {
  position: absolute;
  left: -26px; top: 4px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--azul);
  border: 2px solid white;
  box-shadow: 0 0 0 2px var(--azul);
}
.timeline-item.highlight .timeline-dot {
  background: var(--dorado); box-shadow: 0 0 0 2px var(--dorado);
}
.timeline-date {
  font-size: 11px; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--dorado); margin-bottom: 3px;
}
.timeline-title {
  font-size: 15px; font-weight: 600; color: var(--azul);
  margin-bottom: 4px;
}
.timeline-desc {
  font-size: 13px; color: var(--gris-texto); line-height: 1.6;
}

/* Página interior: imagen lateral */
.inner-with-image {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
}
.inner-img {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(27,42,114,.12);
  position: sticky;
  top: 100px;
}
.inner-img img { width: 100%; display: block; }

/* Responsive páginas interiores */
@media (max-width: 900px) {
  .page-hero { padding: 32px 20px 28px; }
  .page-hero h2 { font-size: 26px; }
  .inner-wrap { padding: 36px 20px 48px; }
  .tutores-grid { grid-template-columns: 1fr; }
  .contacto-grid { grid-template-columns: 1fr; }
  .curriculum-grid { grid-template-columns: 1fr; }
  .inner-with-image { grid-template-columns: 1fr; }
  .inner-img { position: static; }
}
@media (max-width: 560px) {
  .page-hero { padding: 24px 16px 22px; }
  .page-hero h2 { font-size: 22px; }
  .inner-wrap { padding: 28px 16px 40px; }
  .info-card { padding: 20px; }
  .highlight-box { padding: 22px 20px; }
}

/* ── Logo-brand como enlace al home ── */
a.header-brand {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
a.header-brand:hover .brand-text h1 {
  color: var(--azul-mid);
}
a.header-brand:hover .logo-box {
  box-shadow: 0 0 0 2px rgba(27,42,114,0.18);
  border-radius: 8px;
}

/* ── PUBLICACIONES DE TUTORES ── */
.tutor-pubs {
  margin-top: 14px;
  border-top: 1px solid var(--borde);
  padding-top: 10px;
}
.tutor-pubs-btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: 1px solid var(--borde);
  border-radius: 7px;
  padding: 8px 12px;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--azul);
  transition: background .18s;
}
.tutor-pubs-btn:hover { background: var(--gris-claro); }
.pubs-chevron {
  font-size: 10px;
  opacity: .5;
  transition: transform .22s;
  flex-shrink: 0;
}
.tutor-pubs-body {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pub-section-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--dorado);
  margin: 10px 0 4px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--borde);
}
.pub-item {
  font-size: 12px;
  color: var(--gris-texto);
  line-height: 1.6;
  padding: 5px 8px;
  border-radius: 5px;
  background: var(--gris-claro);
}
.pub-link {
  color: var(--azul);
  text-decoration: none;
  display: block;
}
.pub-link:hover { color: var(--dorado); text-decoration: underline; }
.pub-ext {
  font-size: 10px;
  opacity: .55;
  margin-left: 3px;
}
.tutor-pubs-empty {
  margin-top: 10px;
  font-size: 12px;
  color: #9098B5;
  font-style: italic;
  padding-top: 10px;
  border-top: 1px solid var(--borde);
}

/* Publicaciones colapsadas por defecto */
.tutor-pubs-body.pubs-collapsed { display: none; }
.tutor-pubs-body.pubs-open      { display: flex;  flex-direction: column; gap: 6px; }

/* ── TOGGLE SEMBLANZA (Leer más / Leer menos) ── */
.bio-extra.bio-collapsed { display: none; }
.bio-extra.bio-open      { display: inline; }
.bio-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  background: none;
  border: none;
  color: var(--dorado);
  font-size: 13px;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  padding: 0;
  transition: color .2s;
}
.bio-toggle-btn:hover { color: var(--azul); }

