/* ============================================================
   A Compás · Escuela de Flamenco · hoja de estilos propia
   Construida sobre daisyUI 5 + Tailwind (CDN browser) + jQuery.
   La paleta vive en estilos.ini -> variables --ac-*, --grad-*.
   ============================================================ */

html {
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
  -webkit-text-size-adjust: 100%;
}

@media (max-width: 1023px) {
  html { scroll-padding-top: 88px; }
}

body {
  margin: 0;
  font-family: var(--ac-font-body, "Poppins", ui-sans-serif, system-ui);
  background-color: var(--ac-noche, #150b0e);
  color: var(--color-base-content, #f7ecdf);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--ac-font-display, "Playfair Display", Georgia, serif);
  font-weight: 700;
  letter-spacing: -0.01em;
}

::selection { background: var(--ac-grana, #c8102e); color: #fff; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--ac-carbon, #0a0507); }
::-webkit-scrollbar-thumb { background: #4a2329; border-radius: 8px; border: 2px solid var(--ac-carbon, #0a0507); }
::-webkit-scrollbar-thumb:hover { background: var(--ac-grana, #c8102e); }

.font-display { font-family: var(--ac-font-display); }
.font-body { font-family: var(--ac-font-body); }

/* ---------------- Reveal on scroll (jQuery) ---------------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s cubic-bezier(.22, 1, .36, 1), transform .8s cubic-bezier(.22, 1, .36, 1);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}
.js [data-reveal].revealed {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ---------------- Motivos decorativos ---------------- */
.ac-dots {
  background-image: radial-gradient(circle, var(--ac-dorado, #d9a441) 1.2px, transparent 1.5px);
  background-size: 20px 20px;
  opacity: .55;
}
.ac-dots-light {
  background-image: radial-gradient(circle, rgba(42, 23, 27, .22) 1.2px, transparent 1.5px);
  background-size: 18px 18px;
}
.ac-grain::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .5;
  background-image: repeating-linear-gradient(115deg, transparent 0 30px, rgba(255, 255, 255, .022) 30px 31px);
}

/* ---------------- Topbar ---------------- */
.ac-topbar {
  position: relative;
  z-index: 45;
  background: linear-gradient(90deg, #0a0507 0%, #17080c 55%, #0a0507 100%);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

/* ---------------- Navbar ---------------- */
.ac-nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(10, 5, 7, .78);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  transition: background-color .3s ease, box-shadow .3s ease;
}
.ac-nav.is-scrolled {
  background: rgba(10, 5, 7, .94);
  box-shadow: 0 16px 34px -22px rgba(0, 0, 0, .8);
}

.ac-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 6px 14px rgba(200, 16, 46, .35));
}
.ac-brand-name {
  font-family: var(--ac-font-display, Georgia, serif);
  font-weight: 800;
  font-size: clamp(1.02rem, 2vw, 1.22rem);
  letter-spacing: .04em;
  color: #fff;
  white-space: nowrap;
}
.ac-brand-sub {
  display: block;
  margin-top: .2rem;
  font-size: .5rem;
  font-weight: 600;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--ac-dorado, #d9a441);
  white-space: nowrap;
}

.ac-nav-link {
  position: relative;
  padding: .5rem .55rem;
  font-size: .83rem;
  font-weight: 500;
  letter-spacing: .01em;
  color: rgba(255, 255, 255, .78);
  text-decoration: none;
  transition: color .25s ease;
}
.ac-nav-link::after {
  content: "";
  position: absolute;
  left: .55rem;
  right: .55rem;
  bottom: .18rem;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--ac-grana-bri, #e21c37), var(--ac-dorado, #d9a441));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s cubic-bezier(.22, 1, .36, 1);
}
.ac-nav-link:hover { color: #fff; }
.ac-nav-link:hover::after,
.ac-nav-link.is-active::after { transform: scaleX(1); }
.ac-nav-link.is-active { color: #fff; }

/* ---------------- Menú móvil (drawer) ---------------- */
.ac-drawer {
  background: linear-gradient(180deg, #0d0609, var(--ac-carbon, #0a0507));
  color: var(--color-base-content);
}

/* ---------------- Botones de marca ---------------- */
.btn { border-radius: 999px; }
.ac-btn-accent {
  background: linear-gradient(115deg, var(--ac-grana-bri, #e21c37), var(--ac-grana-deep, #8a0d20));
  border: 0;
  box-shadow: 0 14px 26px -14px rgba(200, 16, 46, .75);
  transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
}
.ac-btn-accent:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 18px 32px -14px rgba(200, 16, 46, .85);
}
.ac-btn-gold {
  background: linear-gradient(115deg, var(--ac-dorado-soft, #eece8b), var(--ac-dorado, #d9a441));
  color: #261200;
  border: 0;
  box-shadow: 0 14px 26px -16px rgba(217, 164, 65, .8);
  transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
}
.ac-btn-gold:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 18px 32px -16px rgba(217, 164, 65, .9);
}
.ac-btn-ghost-light {
  border: 1px solid rgba(255, 255, 255, .35);
  color: #fff;
}
.ac-btn-ghost-light:hover {
  border-color: var(--ac-dorado, #d9a441);
  background: rgba(217, 164, 65, .12);
  color: var(--ac-dorado-soft, #eece8b);
}

/* ---------------- Encabezados de sección ---------------- */
.ac-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
}
.ac-eyebrow::before {
  content: "";
  width: 30px;
  height: 2px;
  background: linear-gradient(90deg, var(--ac-grana, #c8102e), var(--ac-dorado, #d9a441));
  border-radius: 2px;
}
.ac-eyebrow.is-center::before,
.ac-eyebrow.is-center::after {
  content: "";
  width: 30px;
  height: 2px;
  background: linear-gradient(90deg, var(--ac-grana, #c8102e), var(--ac-dorado, #d9a441));
  border-radius: 2px;
}

/* ---------------- Hero ---------------- */
.ac-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: min(96vh, 900px);
  background-color: var(--ac-carbon, #0a0507);
  background-image:
    linear-gradient(98deg, rgba(10, 5, 7, .96) 12%, rgba(10, 5, 7, .78) 44%, rgba(20, 8, 12, .55) 100%),
    url("../images/hero.jpg");
  background-size: cover;
  background-position: center 62%;
  color: #fff;
  overflow: hidden;
}
.ac-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(58% 62% at 82% 8%, rgba(200, 16, 46, .4), transparent 72%),
    radial-gradient(42% 46% at 6% 92%, rgba(217, 164, 65, .14), transparent 70%);
}
.ac-hero-vignette {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(10, 5, 7, .55) 100%);
  pointer-events: none;
}

@keyframes ac-hero-in {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}
.ac-hero .ac-anim-1 { animation: ac-hero-in .9s .1s cubic-bezier(.22, 1, .36, 1) both; }
.ac-hero .ac-anim-2 { animation: ac-hero-in .9s .24s cubic-bezier(.22, 1, .36, 1) both; }
.ac-hero .ac-anim-3 { animation: ac-hero-in .9s .38s cubic-bezier(.22, 1, .36, 1) both; }
.ac-hero .ac-anim-4 { animation: ac-hero-in .9s .52s cubic-bezier(.22, 1, .36, 1) both; }
.ac-hero .ac-anim-5 { animation: ac-hero-in .9s .66s cubic-bezier(.22, 1, .36, 1) both; }

.ac-hero-chip {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .45rem .85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .07);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: .72rem;
  font-weight: 500;
}

.ac-hero-num {
  font-family: var(--ac-font-display, Georgia, serif);
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(180deg, #fff 30%, rgba(255, 255, 255, .18) 140%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------------- Ticker / marquee de palos ---------------- */
.ac-ticker {
  position: relative;
  overflow: hidden;
  border-block: 1px solid rgba(255, 255, 255, .28);
  background: linear-gradient(90deg, var(--ac-grana-deep, #8a0d20), var(--ac-grana, #c8102e) 45%, var(--ac-grana-deep, #8a0d20));
  color: #fff;
}
.ac-ticker-track {
  display: flex;
  width: max-content;
  animation: ac-ticker 38s linear infinite;
}
.ac-ticker:hover .ac-ticker-track { animation-play-state: paused; }
.ac-ticker-group {
  display: flex;
  align-items: center;
  white-space: nowrap;
}
.ac-ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 1.1rem;
  padding: .62rem 1.5rem;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.ac-ticker-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  transform: rotate(45deg);
  background: var(--ac-dorado, #d9a441);
}
@keyframes ac-ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ac-ticker-track { animation: none; }
}

/* ---------------- Marcos de imagen ---------------- */
.ac-photo {
  border-radius: 1.6rem;
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 34px 70px -30px rgba(0, 0, 0, .7);
}
.ac-photo-frame {
  position: relative;
}
.ac-photo-frame::before {
  content: "";
  position: absolute;
  inset: -14px auto auto -14px;
  width: 64%;
  height: 62%;
  border-radius: 1.8rem;
  border: 1px solid var(--ac-dorado, #d9a441);
  opacity: .55;
  z-index: 0;
  pointer-events: none;
}
.ac-photo-frame > * { position: relative; z-index: 1; }

/* ---------------- Tarjetas (sobre oscuro) ---------------- */
.ac-card-dark {
  border: 1px solid var(--ac-linea-dark, #3a2026);
  background: linear-gradient(180deg, rgba(47, 22, 28, .55), rgba(31, 15, 19, .35));
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: transform .3s cubic-bezier(.22, 1, .36, 1), border-color .3s ease, box-shadow .3s ease;
}
.ac-card-dark:hover {
  transform: translateY(-6px);
  border-color: rgba(200, 16, 46, .55);
  box-shadow: 0 30px 54px -28px rgba(0, 0, 0, .75);
}
.ac-icon-bubble {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
}

/* ---------------- Programa: nivel ---------------- */
.ac-level {
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

/* ---------------- Timeline / proceso ---------------- */
.ac-step {
  position: relative;
}
.ac-step-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 999px;
  font-family: var(--ac-font-display, Georgia, serif);
  font-weight: 800;
  font-size: 1.05rem;
  border: 1px solid rgba(217, 164, 65, .5);
  background: linear-gradient(145deg, rgba(217, 164, 65, .2), rgba(200, 16, 46, .12));
  color: var(--ac-dorado-soft, #eece8b);
  box-shadow: 0 14px 28px -16px rgba(0, 0, 0, .8);
}

/* ---------------- Galería ---------------- */
.ac-g-item {
  position: relative;
  overflow: hidden;
  border-radius: 1.1rem;
  cursor: pointer;
}
.ac-g-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s cubic-bezier(.22, 1, .36, 1);
}
.ac-g-item:hover img { transform: scale(1.07); }
.ac-g-cap {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2.4rem 1rem .8rem;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(10, 5, 7, .86));
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .35s ease, transform .35s ease;
}
.ac-g-item:hover .ac-g-cap { opacity: 1; transform: none; }
.ac-g-tag {
  position: absolute;
  top: .7rem;
  left: .7rem;
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #1e1200;
  background: var(--ac-dorado, #d9a441);
  padding: .28rem .6rem;
  border-radius: 999px;
}
.ac-g-zoom {
  position: absolute;
  top: .7rem;
  right: .7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  background: rgba(10, 5, 7, .55);
  color: #fff;
  opacity: 0;
  transform: scale(.8);
  transition: opacity .3s ease, transform .3s ease;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.ac-g-item:hover .ac-g-zoom { opacity: 1; transform: none; }

/* Lightbox */
.ac-lightbox {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(8, 4, 6, .93);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.ac-lightbox.open { opacity: 1; pointer-events: auto; }
.ac-lightbox img {
  max-width: 90vw;
  max-height: 82vh;
  border-radius: 1rem;
  box-shadow: 0 40px 80px -20px #000;
  border: 1px solid rgba(255, 255, 255, .14);
}

/* ---------------- Testimonios (carousel snap) ---------------- */
.ac-tcarousel {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: .4rem .25rem 1.4rem;
}
.ac-tcarousel::-webkit-scrollbar { display: none; }
.ac-tcard {
  flex: 0 0 auto;
  width: min(360px, 86vw);
  scroll-snap-align: center;
}
.ac-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .25);
  border: 0;
  cursor: pointer;
  padding: 0;
  transition: width .25s ease, background-color .25s ease;
}
.ac-dot.is-active { width: 24px; background: var(--ac-dorado, #d9a441); }

/* ---------------- FAQ ---------------- */
.ac-faq .collapse {
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, .04);
  transition: border-color .3s ease, background-color .3s ease;
}
.ac-faq .collapse:hover { border-color: rgba(217, 164, 65, .4); }
.ac-faq .collapse-title {
  font-family: var(--ac-font-display, Georgia, serif);
  font-weight: 600;
  font-size: 1.05rem;
  padding: 1.1rem 1.4rem 1.1rem 1.6rem;
}
.ac-faq .collapse-content { padding: 0 1.6rem 1.2rem; }

/* ---------------- CTA band ---------------- */
.ac-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(54% 90% at 86% 8%, rgba(200, 16, 46, .55), transparent 70%),
    radial-gradient(42% 84% at 6% 94%, rgba(217, 164, 65, .2), transparent 72%),
    linear-gradient(135deg, var(--ac-carbon, #0a0507), #1c0b10 55%, #150a0e);
}
.ac-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .35;
  background-image:
    radial-gradient(circle, rgba(217, 164, 65, .6) 1.2px, transparent 1.5px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(70% 90% at 50% 50%, #000 30%, transparent 100%);
  mask-image: radial-gradient(70% 90% at 50% 50%, #000 30%, transparent 100%);
}

/* ---------------- Footer ---------------- */
.ac-footer {
  background: linear-gradient(180deg, #0d0609, #070304);
  color: rgba(247, 236, 223, .72);
  border-top: 1px solid rgba(255, 255, 255, .07);
}
.ac-footer a { transition: color .25s ease; }
.ac-footer a:hover { color: var(--ac-dorado-soft, #eece8b); }
.ac-footer-title {
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: #fff;
}
.ac-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .05);
  transition: transform .25s ease, border-color .25s ease, background-color .25s ease, color .25s ease;
}
.ac-social:hover {
  transform: translateY(-3px);
  border-color: var(--ac-dorado, #d9a441);
  background: rgba(217, 164, 65, .12);
  color: var(--ac-dorado-soft, #eece8b);
}

/* ---------------- FABs ---------------- */
.ac-fab {
  position: fixed;
  z-index: 85;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  box-shadow: 0 18px 34px -12px rgba(0, 0, 0, .55);
  transition: transform .25s ease, opacity .3s ease;
}
.ac-fab-wa {
  right: 1.2rem;
  bottom: 1.2rem;
  width: 3.6rem;
  height: 3.6rem;
  background: #25d366;
}
.ac-fab-wa:hover { transform: translateY(-4px) scale(1.05); }
.ac-fab-wa::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 999px;
  background: rgba(37, 211, 102, .35);
  animation: ac-pulse 2.4s ease-out infinite;
  z-index: -1;
}
.ac-fab-top {
  right: 1.85rem;
  bottom: 5.6rem;
  width: 2.9rem;
  height: 2.9rem;
  background: rgba(42, 20, 24, .9);
  border: 1px solid rgba(255, 255, 255, .18);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
}
.ac-fab-top.show { opacity: 1; pointer-events: auto; transform: none; }
.ac-fab-top:hover { background: var(--ac-grana, #c8102e); }
@keyframes ac-pulse {
  0% { transform: scale(.85); opacity: .7; }
  70% { transform: scale(1.4); opacity: 0; }
  100% { transform: scale(1.4); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .ac-fab-wa::before { animation: none; }
}

/* ---------------- Filtros de programas ---------------- */
@keyframes ac-pop {
  from { opacity: 0; transform: scale(.97) translateY(8px); }
  to   { opacity: 1; transform: none; }
}

.ac-filtro {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-family: var(--ac-font-body, Poppins, sans-serif);
  font-size: .78rem;
  font-weight: 600;
  line-height: 1;
  padding: .6rem 1.2rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .16);
  cursor: pointer;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .2s ease, box-shadow .25s ease;
}
.ac-filtro[data-active="true"] {
  background: linear-gradient(115deg, var(--ac-grana-bri, #e21c37), var(--ac-grana-deep, #8a0d20));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 12px 24px -12px rgba(200, 16, 46, .7);
}
.ac-filtro[data-active="false"] {
  background: rgba(255, 255, 255, .05);
  color: rgba(255, 255, 255, .72);
}
.ac-filtro[data-active="false"]:hover {
  border-color: var(--ac-dorado, #d9a441);
  color: var(--ac-dorado-soft, #eece8b);
  transform: translateY(-1px);
}

/* ---------------- Ajustes de densidad (escritorio medio) ---------------- */
@media (min-width: 1280px) and (max-width: 1410px) {
  .ac-nav .ac-nav-link { font-size: .79rem; padding: .5rem .38rem; }
  .ac-nav .navbar { gap: 0; }
}

/* ---------------- Utilidades ---------------- */
.ac-rule {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ac-gris-claro, #e8d9c0), transparent);
}
.ac-img-cover { width: 100%; height: 100%; object-fit: cover; }
.ac-card { border-radius: 1.2rem; }
