/* ============================================================
   custom-extra.css — Estilos de los componentes ligeros que
   sustituyen a Revolution Slider / meanmenu / slick (sin jQuery).
   Mantiene el aspecto del theme (amarillo #fec722 + grises).
   ============================================================ */

:root { --ad-yellow: #fec722; --ad-dark: #323232; --ad-text: #666; }

/* ============================================================
   HERO ROTATIVO (sustituye Revolution Slider) — sin jQuery
   ============================================================ */
.ad-hero {
  position: relative;
  color: #fff;
  text-align: center;
  overflow: hidden;
  min-height: 100vh;
}
.ad-slides { position: relative; min-height: 100vh; }

/* Cada slide ocupa todo y se cruza por opacidad */
.ad-slide {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 110px 0 150px;
  opacity: 0; visibility: hidden;
  transition: opacity .9s ease, visibility .9s ease;
  z-index: 1;
}
.ad-slide.is-active { opacity: 1; visibility: visible; z-index: 2; }

/* Fondo con ken-burns: solo se mueve en el slide activo */
.ad-slide-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transform: scale(1.04);
}
.ad-slide.is-active .ad-slide-bg {
  animation: adKenBurns 8s ease-out forwards;
}
/* Gradiente legibilidad (más denso abajo) */
.ad-slide::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(18,20,24,.55) 0%, rgba(18,20,24,.32) 38%, rgba(18,20,24,.74) 100%),
    radial-gradient(120% 80% at 50% 40%, rgba(0,0,0,0) 38%, rgba(0,0,0,.5) 100%);
}
.ad-slide-inner { position: relative; z-index: 2; width: 80%; max-width: 980px; margin: 0 auto; }

/* Título y subtítulo: ANCHO 80% de la página */
.ad-slide-title {
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 5.2vw, 4rem);
  line-height: 1.1;
  letter-spacing: 1px;
  margin: 0 auto 20px;
  text-transform: uppercase;
  text-shadow: 0 4px 26px rgba(0,0,0,.5);
}
.ad-slide-title span { color: var(--ad-yellow); }
.ad-slide-sub {
  font-size: clamp(1.05rem, 1.8vw, 1.45rem);
  line-height: 1.6;
  color: #fff;
  max-width: 70ch;
  margin: 0 auto 32px;
  text-shadow: 0 2px 14px rgba(0,0,0,.65);
}
.ad-slide-sub strong { color: var(--ad-yellow); }

/* Botones */
.ad-hero .btn_common {
  display: inline-block;
  background: var(--ad-yellow);
  color: var(--ad-dark);
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  padding: 15px 36px;
  margin: 6px;
  border: 2px solid var(--ad-yellow);
  border-radius: 40px;
  text-transform: uppercase;
  letter-spacing: .5px;
  box-shadow: 0 10px 26px rgba(254,199,34,.4);
  transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s, background .2s, color .2s;
}
.ad-hero .btn_common:hover {
  background: #fff; border-color: #fff; color: var(--ad-dark);
  text-decoration: none; transform: translateY(-4px) scale(1.04);
  box-shadow: 0 16px 34px rgba(0,0,0,.3);
}
.ad-hero .btn_common.btn_ghost {
  background: transparent; color: #fff; box-shadow: none;
  border-color: rgba(255,255,255,.85);
}
.ad-hero .btn_common.btn_ghost:hover { background: #fff; color: var(--ad-dark); border-color: #fff; }

/* ---- Animaciones modernas de entrada (solo slide activo) ---- */
/* Título: revelado con máscara clip-path + desenfoque -> nítido */
.ad-slide.is-active .ad-slide-title {
  animation: adClipReveal 1s cubic-bezier(.2,.8,.2,1) both, adDeblur 1s ease both;
}
/* Subtítulo: blur-in + subida, con retardo */
.ad-slide.is-active .ad-slide-sub {
  animation: adBlurUp 1s .35s cubic-bezier(.2,.8,.2,1) both;
}
/* CTAs: pop escalonado */
.ad-slide.is-active .ad-slide-cta .btn_common { animation: adBounceIn .7s both; }
.ad-slide.is-active .ad-slide-cta .btn_common:nth-of-type(1) { animation-delay: .6s; }
.ad-slide.is-active .ad-slide-cta .btn_common:nth-of-type(2) { animation-delay: .75s; }

/* Dots */
.ad-hero-dots { position: absolute; z-index: 5; bottom: 96px; left: 0; right: 0; display: flex; gap: 10px; justify-content: center; }
.ad-dot { width: 12px; height: 12px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  background: rgba(255,255,255,.45); transition: transform .25s, background .25s, width .25s; }
.ad-dot.is-active { background: var(--ad-yellow); width: 30px; border-radius: 7px; }

/* Flechas */
.ad-hero-arrow { position: absolute; z-index: 5; top: 50%; transform: translateY(-50%);
  width: 50px; height: 50px; border: 0; border-radius: 50%; cursor: pointer; color: #fff; font-size: 26px;
  background: rgba(0,0,0,.3); backdrop-filter: blur(4px); transition: background .2s, transform .2s; }
.ad-hero-arrow:hover { background: var(--ad-yellow); color: var(--ad-dark); }
.ad-prev { left: 22px; } .ad-next { right: 22px; }
.ad-prev:hover { transform: translateY(-50%) scale(1.08); }
.ad-next:hover { transform: translateY(-50%) scale(1.08); }

@media (max-width: 767px) {
  .ad-hero, .ad-slides { min-height: 88vh; }
  .ad-slide { padding: 80px 0 110px; }
  .ad-slide-inner { width: 90%; }
  .ad-hero-arrow { display: none; }
  .ad-hero-dots { bottom: 70px; }
}

/* ---------- Hero SIMPLE (páginas internas: cursos, contacto, etc.) ----------
   Comparten clase .ad-hero pero con .container>h1/p directos (sin carrusel).
   Excluimos el carrusel (#adHero) de estas reglas.                          */
.ad-hero:not(#adHero) {
  background-size: cover; background-position: center;
  min-height: 360px;
  display: flex; align-items: center; text-align: center;
  padding: 160px 0 70px;
}
.ad-hero:not(#adHero)::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(18,20,24,.55) 0%, rgba(18,20,24,.4) 50%, rgba(18,20,24,.72) 100%);
}
.ad-hero:not(#adHero) > .container { position: relative; z-index: 2; width: 80%; max-width: 980px; margin: 0 auto; }
.ad-hero:not(#adHero) h1 {
  color: #fff; font-family: "Montserrat", sans-serif; font-weight: 700;
  font-size: clamp(1.8rem, 4.2vw, 3rem); line-height: 1.12; letter-spacing: 1px;
  margin: 0 auto 16px; text-transform: uppercase; text-shadow: 0 3px 20px rgba(0,0,0,.5);
  animation: adClipReveal .9s cubic-bezier(.2,.8,.2,1) both, adDeblur .9s ease both;
}
.ad-hero:not(#adHero) p {
  font-size: clamp(1rem, 1.6vw, 1.25rem); line-height: 1.6; color: #fff;
  max-width: 70ch; margin: 0 auto 26px; text-shadow: 0 2px 14px rgba(0,0,0,.6);
  animation: adBlurUp .9s .25s cubic-bezier(.2,.8,.2,1) both;
}
.ad-hero:not(#adHero) p strong { color: var(--ad-yellow); }
.ad-hero:not(#adHero) .btn_common {
  display: inline-block; background: var(--ad-yellow); color: var(--ad-dark);
  font-family: "Montserrat", sans-serif; font-weight: 700; padding: 14px 34px; margin: 6px;
  border: 2px solid var(--ad-yellow); border-radius: 40px; text-transform: uppercase; letter-spacing: .5px;
  box-shadow: 0 10px 24px rgba(254,199,34,.35);
  transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s, background .2s;
  animation: adBounceIn .7s .5s both;
}
.ad-hero:not(#adHero) .btn_common:hover {
  background: #fff; border-color: #fff; text-decoration: none;
  transform: translateY(-4px) scale(1.04); box-shadow: 0 16px 32px rgba(0,0,0,.3);
}
@media (max-width: 767px) {
  .ad-hero:not(#adHero) { padding: 120px 0 50px; }
  .ad-hero:not(#adHero) > .container { width: 90%; }
}

/* ---------- Menú móvil (sustituye a meanmenu) ---------- */
@media (min-width: 992px) {
  .navbar-toggle { display: none; }
  .edu-nav.main-menu { display: block !important; }
  .has-dropdown { position: relative; }
  .has-dropdown > .dropdown {
    position: absolute; top: 100%; left: 0; min-width: 280px;
    background: #fff; box-shadow: 0 6px 18px rgba(0,0,0,.12);
    padding: 8px 0; display: none; z-index: 50;
  }
  .has-dropdown:hover > .dropdown { display: block; }
  .has-dropdown > .dropdown a { display: block; padding: 8px 18px; color: #333; }
  .has-dropdown > .dropdown a:hover { background: #fafafa; color: var(--ad-yellow); }
}
@media (max-width: 991px) {
  .edu-nav.main-menu { display: none; width: 100%; }
  .edu-nav.main-menu.open { display: block; }
  .navbar-nav { float: none !important; margin: 0; }
  .navbar-nav > li { float: none; }
  .has-dropdown > .dropdown { display: none; padding-left: 18px; }
  .has-dropdown.open > .dropdown { display: block; }
  .navbar-toggle { display: block; float: right; background: transparent; border: 1px solid #ccc; padding: 9px 10px; margin: 12px 0; }
  .navbar-toggle .icon-bar { display: block; width: 22px; height: 2px; background: #333; margin: 4px 0; }
}

/* ---------- Acordeón FAQ ---------- */
.faq-area { padding: 60px 0; }
.faq-list { max-width: 860px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid #e5e5e5; }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 18px 40px 18px 0; position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 {
  display: inline; font-family: "Montserrat", sans-serif; font-size: 1.05rem;
  color: var(--ad-dark); margin: 0; font-weight: 600;
}
.faq-item .faq-icon { position: absolute; right: 6px; top: 22px; width: 14px; height: 14px; }
.faq-item .faq-icon::before, .faq-item .faq-icon::after {
  content: ""; position: absolute; background: var(--ad-yellow); transition: transform .2s;
}
.faq-item .faq-icon::before { top: 6px; left: 0; width: 14px; height: 2px; }
.faq-item .faq-icon::after { left: 6px; top: 0; width: 2px; height: 14px; }
.faq-item[open] .faq-icon::after { transform: scaleY(0); }
.faq-answer { padding: 0 0 18px; color: var(--ad-text); line-height: 1.7; }

/* ---------- Carrusel testimonios (CSS scroll-snap, sin slick) ---------- */
.ad-testimonials { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 14px; -webkit-overflow-scrolling: touch; }
.ad-testimonials .single-box { flex: 0 0 100%; scroll-snap-align: center; }
@media (min-width: 768px) { .ad-testimonials .single-box { flex: 0 0 calc(50% - 10px); } }

/* ---------- Próximas clases ---------- */
.proximas-clases ul { list-style: none; padding: 0; }
.proximas-clases li { padding: 6px 0; border-bottom: 1px dashed #e0e0e0; }

/* Tarjetas de curso: igualar alturas sin jQuery */
.single-courses { height: 100%; display: flex; flex-direction: column; }

/* ============================================================
   Animaciones (keyframes) — "bungee" elástico pero profesional
   ============================================================ */
@keyframes adFadeDown {
  from { opacity: 0; transform: translateY(-26px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes adFadeUp {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes adBounceIn {
  0%   { opacity: 0; transform: scale(.6) translateY(20px); }
  60%  { opacity: 1; transform: scale(1.08) translateY(-6px); }
  80%  { transform: scale(.97) translateY(0); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes adBounceUpCard {
  0%   { opacity: 0; transform: translateY(60px) scale(.92); }
  55%  { opacity: 1; transform: translateY(-12px) scale(1.02); }
  75%  { transform: translateY(4px) scale(.99); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes adKenBurns {
  from { transform: scale(1.04); }
  to   { transform: scale(1.14); }
}
/* Revelado del título con máscara clip-path (de izq. a der.) */
@keyframes adClipReveal {
  from { clip-path: inset(0 100% 0 0); transform: translateY(14px); }
  to   { clip-path: inset(0 0 0 0); transform: translateY(0); }
}
@keyframes adDeblur {
  from { filter: blur(14px); opacity: 0; }
  to   { filter: blur(0); opacity: 1; }
}
/* Subtítulo: desenfoque + subida */
@keyframes adBlurUp {
  from { filter: blur(8px); opacity: 0; transform: translateY(22px); }
  to   { filter: blur(0); opacity: 1; transform: translateY(0); }
}
@keyframes adIconPop {
  0% { transform: translateY(0); }
  30% { transform: translateY(-10px) scale(1.08); }
  60% { transform: translateY(0) scale(1); }
  80% { transform: translateY(-4px); }
  100% { transform: translateY(0); }
}

/* ============================================================
   Cards de ventajas (.slider-content-bottom) — legibles + efecto
   ============================================================ */
/* Título legible (blanco, tamaño controlado, sin desbordar) */
.slider-content-bottom .slider-btm-box h2,
.slider-content-bottom .slider-btm-box h3 {
  color: #ffffff;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 22px;
  line-height: 1.25;
  margin: 6px 0 10px;
  text-transform: none;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}
.slider-content-bottom .slider-btm-box p {
  color: #f4f7ec;
  font-size: 15px;
  line-height: 1.6;
}
.slider-content-bottom .slider-btm-box .btm-item-icon {
  transition: transform .35s cubic-bezier(.34,1.56,.64,1);
}

/* Entrada escalonada tipo "bungee" al cargar (above the fold) */
.slider-content-bottom .content_body { animation: adBounceUpCard .9s both; }
.slider-content-bottom .content_body:nth-child(1) { animation-delay: .15s; }
.slider-content-bottom .content_body:nth-child(2) { animation-delay: .30s; }
.slider-content-bottom .content_body:nth-child(3) { animation-delay: .45s; }

/* Hover: elevación + sombra + rebote del icono */
.slider-content-bottom .btm-item_01,
.slider-content-bottom .btm-item_02,
.slider-content-bottom .btm-item_03 {
  border-radius: 6px;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), box-shadow .3s ease;
}
.slider-content-bottom .btm-item_02:hover,
.slider-content-bottom .btm-item_01:hover,
.slider-content-bottom .btm-item_03:hover {
  transform: translateY(-10px);
  box-shadow: 0 18px 38px rgba(0,0,0,.28);
}
.slider-content-bottom .content_body:hover .btm-item-icon {
  animation: adIconPop .6s ease;
  transform: scale(1.06);
}

/* ============================================================
   Cabecera TRANSPARENTE superpuesta al hero (el hero se ve por
   detrás del logo y el menú). Al hacer scroll -> blanca fija.
   ============================================================ */
/* Todo el header se superpone al contenido (hero detrás) */
#header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 1000;
  transition: background .3s ease, box-shadow .3s ease;
}
/* Barra de contacto: oscura semitransparente */
header .header-top { background: rgba(25,25,25,.85); }
/* Nav transparente, texto blanco, sobre el hero */
header .header-body { position: static; width: 100%; background: transparent; }
header .header-body .edu-navbar { background: transparent; padding: 16px 0; }
header .header-body .edu-navbar .navbar-header a span { color: #fff; }
header .header-body .edu-navbar .edu-nav .nav li a { color: #fff; }
header .header-body .edu-navbar .edu-nav .nav li a:hover,
header .header-body .edu-navbar .edu-nav .nav li a:focus { color: var(--ad-yellow); }
header .header-body .navbar-brand img { transition: transform .3s cubic-bezier(.34,1.56,.64,1); }
header .header-body .navbar-brand:hover img { transform: rotate(-8deg) scale(1.1); }

/* --- Estado al hacer scroll: cabecera blanca fija y compacta --- */
header.ad-scrolled {
  position: fixed;
  background: #fff;
  box-shadow: 0 6px 22px rgba(0,0,0,.12);
  animation: adFadeDown .4s ease both;
}
header.ad-scrolled .header-top { display: none; }           /* oculta barra contacto */
header.ad-scrolled .header-body .edu-navbar { padding: 10px 0; }
header.ad-scrolled .header-body .edu-navbar .navbar-header a span { color: var(--ad-dark); }
header.ad-scrolled .header-body .edu-navbar .edu-nav .nav li a { color: var(--ad-dark); }
header.ad-scrolled .header-body .edu-navbar .edu-nav .nav li a:hover { color: var(--ad-yellow); }

/* Menú móvil desplegado: fondo oscuro para legibilidad sobre hero */
@media (max-width: 991px) {
  header .edu-nav.main-menu.open { background: rgba(20,20,20,.95); padding: 10px 16px; border-radius: 6px; }
  header.ad-scrolled .edu-nav.main-menu.open { background: #fff; }
}
.has-dropdown > .dropdown a { color: var(--ad-dark) !important; }
/* Botón hamburguesa: blanco sobre el hero, oscuro al hacer scroll */
header .navbar-toggle .icon-bar { background: #fff; }
header.ad-scrolled .navbar-toggle .icon-bar { background: #333; }

/* ============================================================
   Cards de ventajas: debajo del hero, MISMA ALTURA, alineadas
   ============================================================ */
/* Separadas del hero (sin solapar) y con aire */
.slider-content-bottom { position: relative; z-index: 5; margin-top: 0; padding: 64px 0 30px; }
/* Fila flex -> las 3 cards igualan altura */
.slider-content-bottom .sider-btm-row-inner { display: flex; flex-wrap: wrap; align-items: stretch; }
.slider-content-bottom .content_body { display: flex; float: none; padding: 14px; }
.slider-content-bottom .slider-btm-box { width: 100%; display: flex; flex-direction: column; align-items: center; text-align: center; }
/* Icono centrado (no a la izquierda/derecha) */
.slider-content-bottom .slider-btm-box .btm-item-icon { margin-left: auto; margin-right: auto; display: block; }
/* El párrafo empuja para que el borde inferior quede alineado */
.slider-content-bottom .slider-btm-box p { flex: 1 0 auto; width: 100%; }
.slider-content-bottom .slider-btm-box h2 { width: 100%; }
@media (max-width: 767px) {
  .slider-content-bottom { padding: 40px 0 10px; }
  .slider-content-bottom .content_body { width: 100%; margin-bottom: 8px; }
}

/* ---- Cards verdes: radios + sombra/brillo espectacular + hover brutal ---- */
.slider-content-bottom .btm-item_01,
.slider-content-bottom .btm-item_02,
.slider-content-bottom .btm-item_03 {
  border-radius: 24px;
  padding: 40px 30px;
  box-shadow:
    0 22px 50px rgba(109,139,39,.40),
    0 6px 16px rgba(0,0,0,.12),
    inset 0 1px 0 rgba(255,255,255,.18);
  transition: transform .45s cubic-bezier(.22,1,.36,1), box-shadow .45s ease, filter .45s ease;
  will-change: transform;
}
.slider-content-bottom .btm-item_01::before,
.slider-content-bottom .btm-item_02::before,
.slider-content-bottom .btm-item_03::before { border-radius: 24px; }
/* Halo de brillo detrás (aparece en hover) */
.slider-content-bottom .content_body { position: relative; }
.slider-content-bottom .content_body::after {
  content: ""; position: absolute; inset: 24px 28px;
  border-radius: 24px; z-index: -1; opacity: 0; transition: opacity .45s ease;
  background: radial-gradient(60% 60% at 50% 50%, rgba(156,199,56,.65), transparent 70%);
  filter: blur(26px);
}
.slider-content-bottom .content_body:hover::after { opacity: 1; }
/* Hover brutal: se eleva, escala, gira un pelín y brilla */
.slider-content-bottom .btm-item_01:hover,
.slider-content-bottom .btm-item_02:hover,
.slider-content-bottom .btm-item_03:hover {
  transform: translateY(-18px) scale(1.04);
  filter: saturate(1.15) brightness(1.06);
  box-shadow:
    0 40px 80px rgba(109,139,39,.55),
    0 12px 30px rgba(0,0,0,.18),
    inset 0 1px 0 rgba(255,255,255,.25);
}
/* El icono rebota un poco más en hover */
.slider-content-bottom .content_body:hover .btm-item-icon { transform: scale(1.12) translateY(-4px); }
.slider-content-bottom .btm-item-icon { transition: transform .45s cubic-bezier(.34,1.56,.64,1); }

/* ============================================================
   Respeto a usuarios con movimiento reducido
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .ad-slide .ad-slide-bg,
  .ad-slide.is-active .ad-slide-title,
  .ad-slide.is-active .ad-slide-sub,
  .ad-slide.is-active .ad-slide-cta .btn_common,
  .slider-content-bottom .content_body {
    animation: none !important;
  }
  .ad-slide.is-active .ad-slide-title { clip-path: none; filter: none; opacity: 1; }
  .ad-slide.is-active .ad-slide-sub { filter: none; opacity: 1; transform: none; }
  .ad-hero .btn_common, .slider-content-bottom .btm-item_02,
  .slider-content-bottom .content_body:hover .btm-item-icon {
    transition: none !important;
  }
}
