/* ==================== BASE: variables, reset, botones y piezas comunes ==================== */
html { scroll-behavior: smooth; }
body { margin: 0; background: #070e28; }

:root {
  --bg-dark: #0a1535;
  --bg-dark-2: #0d1b4b;
  --bg-navy: #010e3d;          /* mismo fondo de la imagen de "¿Aulas de entrenamiento?" */
  --card-blue: #1a2f6b;
  --card-navy: #233466;
  --accent-green: #6dbe45;
  --accent-green-light: #d4edba;
  --accent-lime: #addf5e;
  --bg-light: #f3f6fd;
  --text-light: #e8eaf6;
  --text-white: #ffffff;
  --text-dark: #1a2340;
  --border-subtle: rgba(255, 255, 255, 0.1);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.18);
  --radius: 10px;
  --transition: 0.28s ease;
  --font-titulos: 'EB Garamond', Garamond, Georgia, serif;
  --font-texto: 'Source Serif 4', Georgia, serif;
}

.ae-page *,
.ae-page *::before,
.ae-page *::after { box-sizing: border-box; }

.ae-page {
  font-family: var(--font-texto);
  font-size: 20px;
  background: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.7;
}

.ae-page img { max-width: 100%; height: auto; display: block; }
.ae-page a { color: inherit; text-decoration: none; }
.ae-page button { cursor: pointer; border: none; outline: none; }
.ae-page h1, .ae-page h2, .ae-page h3,
.ae-page h4, .ae-page h5 {
  font-family: var(--font-titulos);
  font-weight: 700;
  line-height: 1.2;
  margin-top: 0;
}

.ae-page .ae-container {
  width: 92%;
  max-width: 1200px;
  margin: 0 auto;
}
.ae-page .section-pad { padding: 80px 0; }
.ae-page .section-light { background: var(--bg-light); color: var(--text-dark); }

/* ==================== SLIDES (navegación horizontal) ==================== */
.ae-page.is-slider .slides {
  position: relative;
  overflow: hidden;
  overflow: clip;
  background: #070e28;   /* mismo tono del footer: la franja que aparece mientras cambia la altura se funde con él */
  transition: height 0.65s cubic-bezier(0.77, 0, 0.18, 1);
}
.ae-page.is-slider .slides-track {
  display: flex;
  align-items: flex-start;
  will-change: transform;
  transition: transform 0.65s cubic-bezier(0.77, 0, 0.18, 1);
}
.ae-page.is-slider .slide {
  flex: 0 0 100%;
  min-width: 0;
  opacity: 0.25;
  transition: opacity 0.65s ease;
}
.ae-page.is-slider .slide.is-active { opacity: 1; }
.ae-page.is-slider .slide:focus { outline: none; }

@media (prefers-reduced-motion: reduce) {
  .ae-page.is-slider .slides,
  .ae-page.is-slider .slides-track,
  .ae-page.is-slider .slide,
  .ae-page .nav-indicator.is-ready { transition: none !important; }
}

/* ==================== BOTONES ==================== */
.ae-page .btn {
  display: block;
  width: 100%;
  padding: 16px 28px;
  border-radius: 8px;
  font-family: var(--font-titulos);
  font-weight: 600;
  font-size: 1.1rem;
  line-height: 1.3;
  text-align: center;
  transition: transform var(--transition), background var(--transition);
}
.ae-page .btn:hover { transform: translateY(-2px); }
.ae-page .btn-green   { background: var(--accent-green); color: var(--text-dark); }
.ae-page .btn-green:hover { background: #7acc4f; }
.ae-page .btn-blue    { background: var(--card-blue); color: var(--text-white); border: 1px solid rgba(255, 255, 255, 0.15); }
.ae-page .btn-blue:hover { background: #243580; }
.ae-page .btn-outline {
  background: transparent;
  color: var(--text-white);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
}
.ae-page .btn-outline:hover { background: rgba(255, 255, 255, 0.08); }
.ae-page .btn-acceso {
  max-width: 350px;
  margin: 0 auto 56px;
}

/* Enlace "← Volver" de las subpáginas */
.ae-page .btn-volver {
  display: inline-block;
  margin-bottom: 28px;
  padding: 6px 16px;
  border-radius: 20px;
  background: rgba(26, 47, 107, 0.08);
  color: var(--card-blue);
  font-family: var(--font-titulos);
  font-weight: 600;
  font-size: 1rem;
  transition: background var(--transition);
}
.ae-page .btn-volver:hover { background: rgba(26, 47, 107, 0.16); }

/* ==================== TÍTULOS DE SECCIÓN ==================== */
.ae-page .section-title {
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  text-align: center;
  margin-bottom: 14px;
}
.ae-page .section-title.dark { color: var(--text-dark); }
.ae-page .section-subtitle {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
  font-size: 1.05rem;
}
.ae-page .section-light .section-subtitle { color: #455075; }

/* ==================== ACORDEONES (<details>) CLAROS ==================== */
.ae-page details {
  border: 1px solid #dde2f0;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 12px;
}
.ae-page details summary {
  padding: 18px 22px;
  background: #fff;
  color: var(--card-blue);
  font-family: var(--font-titulos);
  font-weight: 700;
  font-size: 1.15rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}
.ae-page details summary::-webkit-details-marker { display: none; }
.ae-page details summary::after {
  content: '▾';
  font-size: 0.85em;
  transition: transform 0.25s;
}
.ae-page details[open] summary::after { transform: rotate(180deg); }
.ae-page details summary:hover { background: #f0f4ff; }
.ae-page details[open] summary { background: #eef2ff; }
.ae-page .details-body { padding: 20px; background: #fafbff; }
