/* ============================================================
   public.css — estilos del sitio público
   ============================================================ */

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: var(--transition);
  background: linear-gradient(180deg, rgba(10,10,11,.92), rgba(10,10,11,.55));
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled { border-bottom-color: rgba(244,244,242,.08); box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.header-inner { display: flex; align-items: center; gap: 1.4rem; padding: .7rem 0; }
.brand { display: flex; align-items: center; gap: .7rem; }
.brand-logo { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; }
.brand-name { font-family: var(--font-head); font-weight: 700; letter-spacing: .1em; font-size: 1.05rem; }
.brand-name span { color: var(--red); }
.main-nav { display: flex; gap: 1.4rem; margin-left: auto; align-items: center; }
.main-nav > a { font-size: .9rem; font-weight: 500; color: var(--silver); transition: var(--transition); position: relative; }
.main-nav > a:hover { color: var(--white); }
.main-nav > a::after { content: ''; position: absolute; left: 0; bottom: -4px; width: 0; height: 2px; background: var(--red); transition: var(--transition); }
.main-nav > a:hover::after { width: 100%; }
.nav-drop { position: relative; }
.nav-drop-btn {
  background: none; border: 0; color: var(--silver); font: inherit; font-size: .9rem;
  font-weight: 500; cursor: pointer; padding: 0; transition: var(--transition);
}
.nav-drop-btn:hover { color: var(--white); }
.nav-drop-menu {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(8px);
  background: var(--panel); border: 1px solid rgba(244,244,242,.1); border-radius: 12px;
  min-width: 180px; padding: .5rem; opacity: 0; pointer-events: none; transition: var(--transition);
  box-shadow: var(--shadow);
}
.nav-drop-menu.open, .nav-drop:hover .nav-drop-menu { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.nav-drop-menu a { display: block; padding: .6rem .9rem; border-radius: 8px; font-size: .9rem; color: var(--silver); }
.nav-drop-menu a:hover { background: var(--graphite); color: var(--white); }
.header-actions { display: flex; gap: .6rem; align-items: center; }
.nav-toggle { display: none; background: none; border: 0; color: var(--white); cursor: pointer; padding: .3rem; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; }
.hero-bg {
  position: absolute; inset: -10%; background-size: cover; background-position: center;
  will-change: transform;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(10,10,11,.92) 20%, rgba(10,10,11,.55) 60%, rgba(10,10,11,.3)),
              linear-gradient(0deg, var(--black) 0%, transparent 30%);
}
.hero-particles { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero-watermark { width: min(560px, 70vw); right: -6%; bottom: -10%; }
.hero-content { position: relative; z-index: 2; padding-top: 6rem; }
.hero-title { font-size: clamp(2.6rem, 7vw, 5.4rem); font-weight: 700; }
.hero-sub { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .22em; color: var(--silver); font-size: clamp(.85rem, 1.8vw, 1.15rem); }
.hero-ctas { display: flex; gap: .9rem; margin-top: 2rem; flex-wrap: wrap; }
.hero-scroll {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); z-index: 2;
  width: 26px; height: 42px; border: 2px solid rgba(244,244,242,.4); border-radius: 14px;
}
.hero-scroll span {
  position: absolute; top: 7px; left: 50%; width: 4px; height: 8px; margin-left: -2px;
  background: var(--red); border-radius: 2px; animation: scrollHint 1.8s ease-in-out infinite;
}
@keyframes scrollHint { 0%{transform:translateY(0);opacity:1} 70%{transform:translateY(14px);opacity:0} 100%{opacity:0} }

/* ---------- Stats ---------- */
.stats-bar { background: var(--charcoal); padding: 2.4rem 0; border-block: 1px solid rgba(244,244,242,.06); }
.stat { text-align: center; }
.stat-num { display: block; font-family: var(--font-head); font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; color: var(--red); }
.stat-label { font-size: .82rem; color: var(--silver); text-transform: uppercase; letter-spacing: .12em; }

/* ---------- Discipline cards ---------- */
.disc-card { background: var(--panel); border: 1px solid rgba(244,244,242,.07); border-radius: var(--radius); overflow: hidden; transition: var(--transition); display: block; }
.disc-img { height: 180px; background-size: cover; background-position: center; transition: transform .5s ease; }
.disc-card:hover .disc-img { transform: scale(1.06); }
.disc-body { padding: 1.3rem; }
.disc-icon { color: var(--red); margin-bottom: .6rem; }
.disc-body h3 { margin-bottom: .4rem; }
.disc-body p { font-size: .88rem; color: var(--silver); }
.disc-link { display: inline-flex; align-items: center; gap: .4rem; color: var(--gold); font-size: .85rem; font-weight: 600; margin-top: .5rem; }
.icon-sm { width: 16px; height: 16px; }

/* ---------- Planes ---------- */
.plan-card { position: relative; display: flex; flex-direction: column; }
.plan-card h3 { font-size: 1.5rem; margin-bottom: .2rem; }
.plan-card h3 small { font-size: .9rem; color: var(--silver); }
.plan-family { font-family: var(--font-head); color: var(--gold); font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; }
.plan-sessions { color: var(--silver); font-size: .88rem; }
.plan-price { font-family: var(--font-head); font-size: 1.4rem; color: var(--white); margin: .3rem 0 .8rem; }
.plan-price small { font-size: .8rem; color: var(--silver); }
.plan-benefits { list-style: none; padding: 0; margin: 0 0 1.2rem; flex: 1; }
.plan-benefits li { display: flex; gap: .5rem; align-items: flex-start; font-size: .88rem; color: var(--silver); padding: .3rem 0; }
.plan-benefits .icon { color: var(--red); margin-top: .2rem; }
.plan-featured { border-color: rgba(212, 160, 23, .4); }
.plan-flag {
  position: absolute; top: -11px; right: 1.2rem; background: var(--gold); color: #111;
  font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  padding: .25rem .7rem; border-radius: 999px;
}
.family-head { display: flex; gap: 1rem; align-items: center; }
.family-icon { width: 40px; height: 40px; color: var(--red); }

/* ---------- Galería ---------- */
.gal-item { position: relative; border-radius: var(--radius); overflow: hidden; margin: 0; aspect-ratio: 4/3; }
.gal-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gal-item:hover img { transform: scale(1.05); }
.gal-item figcaption {
  position: absolute; inset: auto 0 0; padding: 2.2rem 1.1rem .9rem;
  background: linear-gradient(transparent, rgba(10,10,11,.9)); font-size: .92rem; font-weight: 600;
}
.gal-item figcaption small { display: block; color: var(--gold); font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; }
.gallery-filters { display: flex; gap: .5rem; flex-wrap: wrap; }
.filter-btn {
  padding: .5rem 1.1rem; border-radius: 999px; border: 1px solid rgba(244,244,242,.15);
  font-size: .85rem; color: var(--silver); transition: var(--transition);
}
.filter-btn:hover, .filter-btn.active { border-color: var(--red); color: var(--white); background: rgba(217,32,39,.12); }

/* ---------- CTA final ---------- */
.cta-final { position: relative; padding: 7rem 0; background-size: cover; background-position: center; background-attachment: fixed; }
.cta-overlay { position: absolute; inset: 0; background: rgba(10,10,11,.82); }
.cta-final .container { position: relative; z-index: 1; }

/* ---------- Page hero (internas) ---------- */
.page-hero {
  position: relative; padding: 10rem 0 5rem; background-size: cover; background-position: center;
}
.page-hero-overlay { position: absolute; inset: 0; background: linear-gradient(120deg, rgba(10,10,11,.94), rgba(10,10,11,.6)), linear-gradient(0deg, var(--black), transparent 45%); }
.page-hero .container { position: relative; z-index: 1; }

/* ---------- About / legal ---------- */
.about-grid { align-items: center; gap: 3rem; }
.about-img { border-radius: var(--radius); box-shadow: var(--shadow); }
.method-icon { width: 34px; height: 34px; color: var(--red); margin-bottom: .8rem; }
.disc-ico .icon { width: 34px; height: 34px; color: var(--red); }
.levels { display: grid; gap: 1.2rem; }
.level { display: flex; gap: 1.4rem; align-items: flex-start; }
.level-num { font-family: var(--font-head); font-size: 2.2rem; font-weight: 700; color: var(--red); opacity: .55; line-height: 1; }
.legal-body { max-width: 820px; }
.legal-body h2 { font-size: 1.15rem; margin-top: 1.6rem; color: var(--gold); }
.legal-body ul { padding-left: 1.3rem; color: var(--silver); }
.legal-body li { margin-bottom: .4rem; }
.legal-body a { color: var(--red); }
.disclaimer {
  background: rgba(212,160,23,.09); border: 1px solid rgba(212,160,23,.3); border-radius: 12px;
  padding: 1rem 1.2rem; font-size: .88rem; color: var(--silver); margin-top: 1.2rem;
}
.contact-grid { gap: 3rem; align-items: start; }
.contact-info { display: grid; gap: 1.1rem; }
.contact-item { display: flex; gap: 1rem; align-items: center; }
.contact-item .icon { color: var(--red); width: 26px; height: 26px; }
.contact-item a { color: var(--silver); }
.contact-item a:hover { color: var(--red); }

/* ---------- Footer ---------- */
.site-footer { background: var(--charcoal); border-top: 1px solid rgba(244,244,242,.06); margin-top: 4rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.4rem; padding: 3.4rem 0; }
.footer-logo { width: 64px; border-radius: 14px; margin-bottom: 1rem; }
.footer-brand p { color: var(--silver); font-size: .9rem; max-width: 280px; }
.footer-social { display: flex; gap: .8rem; margin-top: 1rem; }
.footer-social a { display: flex; padding: .55rem; border-radius: 10px; background: var(--graphite); color: var(--silver); transition: var(--transition); }
.footer-social a:hover { color: var(--red); transform: translateY(-2px); }
.footer-col h4 { font-size: .95rem; margin-bottom: 1rem; }
.footer-col a { display: block; color: var(--silver); font-size: .9rem; padding: .28rem 0; transition: var(--transition); }
.footer-col a:hover { color: var(--red); }
.footer-bottom { border-top: 1px solid rgba(244,244,242,.06); padding: 1.2rem 0; font-size: .82rem; color: var(--silver); }
.footer-bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .main-nav {
    position: fixed; inset: 60px 0 auto; flex-direction: column; align-items: stretch;
    background: var(--charcoal); padding: 1.2rem 5%; border-bottom: 1px solid rgba(244,244,242,.08);
    transform: translateY(-130%); transition: var(--transition); gap: .3rem;
  }
  .main-nav.open { transform: translateY(0); }
  .nav-toggle { display: block; }
  .nav-drop-menu { position: static; transform: none; opacity: 1; pointer-events: auto; box-shadow: none; display: none; }
  .nav-drop-menu.open { display: block; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-final { background-attachment: scroll; }
}
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-ctas .btn { width: 100%; }
  .header-actions .btn-ghost { display: none; }
}

/* ---------- Auth (login / register / reset) ---------- */
.auth-wrap { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
.auth-side { position: relative; background-size: cover; background-position: center; }
.auth-side-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 3rem; background: linear-gradient(0deg, rgba(10,10,11,.92), rgba(10,10,11,.25));
}
.auth-side-overlay h2 { font-size: 2rem; margin-bottom: .3rem; }
.auth-side-overlay p { color: var(--silver); }
.auth-logo { width: 84px; border-radius: 18px; margin-bottom: 1.2rem; }
.auth-panel { display: flex; align-items: center; justify-content: center; padding: 6rem 2rem 3rem; }
.auth-box { width: 100%; max-width: 440px; }
.auth-links { margin-top: 1.4rem; text-align: center; font-size: .9rem; color: var(--silver); }
.auth-links a { color: var(--red); font-weight: 600; }
.auth-links span { margin: 0 .5rem; }
@media (max-width: 900px) {
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-side { display: none; }
}
