/* ===================================================================
   Power By Steps — landing one-page
   Paleta de marca (tomada del logo):
   navy  #002244   |  gold  #FFBB00  |  gold claro #FFEEAA
   =================================================================== */

:root {
  --navy:        #002244;
  --navy-700:    #06192f;
  --navy-800:    #04142a;
  --navy-card:   #052a52;
  --gold:        #FDCC05;
  --gold-light:  #FFEEAA;
  --gold-deep:   #FFBB00;
  --white:       #f7f9fc;
  --muted:       #aebccf;
  --radius:      16px;
  --maxw:        1140px;
  --grad-gold:   linear-gradient(135deg, #FFEEAA 0%, #FDCC05 55%, #FFBB00 100%);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: 'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--navy);
  color: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }

/* ===================== BOTONES ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: .98rem;
  padding: 14px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn--lg { padding: 17px 34px; font-size: 1.05rem; }
.btn--gold {
  background: var(--grad-gold);
  color: var(--navy-800);
  box-shadow: 0 10px 30px -8px rgba(253, 204, 5, .55);
}
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 16px 38px -10px rgba(253, 204, 5, .7); }
.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 233, 157, .45);
}
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }

/* ===================== HEADER / NAV ===================== */
.site-header {
  position: fixed; inset: 0 0 auto 0;
  z-index: 100;
  transition: background .3s ease, box-shadow .3s ease, padding .3s ease;
  padding: 14px 0;
}
.site-header.is-scrolled {
  background: rgba(4, 20, 42, .92);
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 24px -12px rgba(0, 0, 0, .8);
}
.nav { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 900; letter-spacing: .5px; }
.brand__logo { width: 42px; height: 42px; border-radius: 10px; }
.brand__name { font-size: 1.15rem; text-transform: uppercase; }
.brand__by { color: var(--gold); font-weight: 700; }

.nav__links { list-style: none; display: flex; align-items: center; gap: 30px; }
.nav__links a { font-weight: 600; font-size: .95rem; color: var(--muted); transition: color .2s; }
.nav__links a:hover { color: var(--gold); }
.nav__cta {
  background: var(--grad-gold); color: var(--navy-800) !important;
  padding: 9px 20px; border-radius: 999px; font-weight: 800 !important;
}
.nav__cta:hover { transform: translateY(-1px); }

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { width: 26px; height: 3px; background: var(--gold); border-radius: 3px; transition: .25s; }

/* ===================== HERO ===================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 120px 0 80px;
  background:
    radial-gradient(1200px 600px at 50% -10%, #0a3163 0%, transparent 60%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-700) 100%);
  text-align: center;
  overflow: hidden;
}
.hero__glow {
  position: absolute; top: -20%; left: 50%; transform: translateX(-50%);
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(253, 204, 5, .14) 0%, transparent 60%);
  filter: blur(20px); pointer-events: none;
}
.hero__inner { position: relative; max-width: 820px; }
.hero__logo {
  width: 120px; height: 120px; margin: 0 auto 26px;
  border-radius: 24px;
  filter: drop-shadow(0 14px 30px rgba(253, 204, 5, .25));
  animation: float 5s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.hero__eyebrow {
  text-transform: uppercase; letter-spacing: 3px; font-size: .82rem; font-weight: 700;
  color: var(--gold); margin-bottom: 18px;
}
.hero__title {
  font-size: clamp(2.2rem, 6vw, 4rem); font-weight: 900; line-height: 1.08; letter-spacing: -1px;
}
.hero__title span {
  background: var(--grad-gold);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__lead {
  margin: 22px auto 34px; max-width: 620px; color: var(--muted); font-size: 1.1rem;
}
.hero__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ===================== FRANJA FULL-SCREEN ===================== */
.showcase {
  position: relative;
  height: min(88vh, 760px);
  min-height: 420px;
  overflow: hidden;
}
.showcase__slides { position: absolute; inset: 0; }
.showcase__slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity 1.4s ease;
  transform: scale(1.05);
}
.showcase__slide.is-active { opacity: 1; transform: scale(1); transition: opacity 1.4s ease, transform 6s ease; }
.showcase__slide img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.showcase__overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 24px;
  background: linear-gradient(180deg, rgba(0,34,69,.55) 0%, rgba(0,34,69,.25) 40%, rgba(4,20,42,.8) 100%);
}
.showcase__eyebrow {
  text-transform: uppercase; letter-spacing: 3px; font-size: .8rem; font-weight: 700;
  color: var(--gold); margin-bottom: 14px;
}
.showcase__text {
  font-size: clamp(1.6rem, 4.5vw, 3rem); font-weight: 900; line-height: 1.15; letter-spacing: -.5px;
  color: #fff; text-shadow: 0 4px 24px rgba(0,0,0,.5);
}
.showcase__text span {
  background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ===================== SECCIONES ===================== */
.section { padding: 96px 0; }
.section--alt { background: var(--navy-700); }
.section__eyebrow {
  text-transform: uppercase; letter-spacing: 2.5px; font-size: .78rem; font-weight: 700;
  color: var(--gold); margin-bottom: 12px; text-align: center;
}
.section__title {
  font-size: clamp(1.8rem, 4.5vw, 2.8rem); font-weight: 900; text-align: center; letter-spacing: -.5px;
}
.section__title span {
  background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section__intro {
  max-width: 640px; margin: 18px auto 56px; text-align: center; color: var(--muted); font-size: 1.05rem;
}

/* ===================== PILARES (MÉTODO) ===================== */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.pillar {
  background: var(--navy-card);
  border: 1px solid rgba(255, 233, 157, .12);
  border-radius: var(--radius);
  padding: 38px 30px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.pillar:hover { transform: translateY(-6px); border-color: rgba(253, 204, 5, .45); box-shadow: 0 20px 40px -20px rgba(0,0,0,.7); }
.pillar__icon {
  width: 60px; height: 60px; border-radius: 14px;
  display: grid; place-items: center; margin-bottom: 22px;
  background: rgba(253, 204, 5, .12); color: var(--gold);
}
.pillar h3 { font-size: 1.18rem; margin-bottom: 12px; }
.pillar p { color: var(--muted); font-size: .97rem; }

/* ===================== DISCIPLINAS ===================== */
.disciplines { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.disc {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, var(--navy-card), var(--navy-800));
  border: 1px solid rgba(255, 233, 157, .1);
  border-radius: var(--radius);
  padding: 34px 26px 30px;
  transition: transform .2s ease, border-color .2s ease;
}
.disc:hover { transform: translateY(-6px); border-color: var(--gold); }
.disc__num {
  font-size: 2.4rem; font-weight: 900; line-height: 1;
  background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent;
  opacity: .9;
}
.disc h3 { margin: 14px 0 8px; font-size: 1.25rem; }
.disc p { color: var(--muted); font-size: .93rem; }

/* ===================== GALERÍA / COMUNIDAD ===================== */
.gallery {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.gallery__item {
  position: relative;
  aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden;
  background: var(--navy-card);
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery__item:hover img { transform: scale(1.06); }
.gallery__item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 30px 16px 14px; font-weight: 700; font-size: .92rem; color: #fff;
  background: linear-gradient(to top, rgba(4,20,42,.9), rgba(4,20,42,.4) 60%, transparent);
}
/* Encuadre del rostro: aplica una de estas clases al <img> de la galería */
.gallery__item img.focus-top    { object-position: center 22%; }
.gallery__item img.focus-upper  { object-position: center 40%; }
.gallery__item img.focus-center { object-position: center 50%; }
.gallery__item img.focus-lower  { object-position: center 62%; }
.gallery__item img.focus-bottom { object-position: center 75%; }
.gallery__hint { text-align: center; margin-top: 28px; color: var(--muted); }
.gallery__hint a { color: var(--gold); font-weight: 700; }

/* ===================== CTA FINAL ===================== */
.cta {
  padding: 100px 0;
  background:
    radial-gradient(900px 400px at 50% 120%, rgba(253,204,5,.16) 0%, transparent 60%),
    var(--navy-800);
  text-align: center;
}
.cta__inner { max-width: 700px; }
.cta__title { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 900; }
.cta__title span { background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cta__lead { color: var(--muted); margin: 18px auto 36px; max-width: 540px; font-size: 1.1rem; }
.cta__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ===================== FORMULARIO DE CONTACTO (FASE 2) ===================== */
/* Estilos listos para cuando se active el <form> comentado en index.html */
.contact-form {
  max-width: 520px; margin: 40px auto 0; text-align: left;
  display: flex; flex-direction: column; gap: 16px;
}
.contact-form__row { display: flex; flex-direction: column; gap: 6px; }
.contact-form label { font-weight: 600; font-size: .9rem; color: var(--white); }
.contact-form input,
.contact-form textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px;
  background: var(--navy-card); color: var(--white);
  border: 1px solid rgba(255, 233, 157, .2); font: inherit;
}
.contact-form input:focus,
.contact-form textarea:focus { outline: 2px solid var(--gold); border-color: transparent; }
.contact-form textarea { resize: vertical; }
.contact-form button { margin-top: 6px; align-self: center; }
/* Honeypot anti-spam: oculto para personas, visible para bots */
.contact-form__hp {
  position: absolute !important; left: -9999px !important;
  width: 1px; height: 1px; opacity: 0; pointer-events: none;
}
/* Mensaje de estado del envío (errores en línea) */
.contact-form__status { min-height: 1.2em; margin: 6px 0 0; text-align: center; font-weight: 600; font-size: .95rem; }
.contact-form__status.is-ok    { color: #6ee7a0; }
.contact-form__status.is-error { color: #ff9b9b; }

/* Tarjeta de éxito que reemplaza al formulario al enviar (sin recargar) */
.form-success {
  max-width: 520px; margin: 40px auto 0; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  background: var(--navy-card); border: 1px solid rgba(255, 233, 157, .16);
  border-radius: 22px; padding: 42px 28px;
  box-shadow: 0 28px 64px -28px rgba(0, 0, 0, .7);
  animation: thanks-in .5s ease-out both;
}
.form-success__logo { width: 58px; height: 58px; border-radius: 13px; }
.form-success__badge {
  width: 88px; height: 88px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(110, 231, 160, .15);
  animation: thanks-pop .55s .1s ease-out both;
}
.form-success__badge svg { width: 44px; height: 44px; color: #6ee7a0; }
.form-success__title { font-size: clamp(1.5rem, 4vw, 2.1rem); font-weight: 900; color: #fff; }
.form-success__text  { color: var(--muted); font-size: 1.05rem; max-width: 42ch; }
.form-success__actions { margin-top: 6px; }

/* ===================== PÁGINA DE GRACIAS (respuesta de contact.php) ===================== */
.thanks-body {
  min-height: 100vh; margin: 0; display: grid; place-items: center; padding: 24px;
  background:
    radial-gradient(1000px 520px at 50% -10%, #0a3163 0%, transparent 60%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-700) 100%);
}
.thanks {
  max-width: 540px; width: 100%; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 18px;
  background: var(--navy-card); border: 1px solid rgba(255, 233, 157, .14);
  border-radius: 26px; padding: 48px 32px;
  box-shadow: 0 36px 80px -32px rgba(0, 0, 0, .75);
  animation: thanks-in .5s ease-out both;
}
.thanks__logo { width: 60px; height: 60px; border-radius: 14px; }
.thanks__badge {
  width: 92px; height: 92px; border-radius: 50%;
  display: grid; place-items: center;
  animation: thanks-pop .55s .1s ease-out both;
}
.thanks__badge svg { width: 46px; height: 46px; }
.thanks--ok .thanks__badge { background: rgba(110, 231, 160, .15); }
.thanks--ok .thanks__badge svg { color: #6ee7a0; }
.thanks--error .thanks__badge { background: rgba(255, 155, 155, .15); }
.thanks--error .thanks__badge svg { color: #ff9b9b; }
.thanks__title { font-size: clamp(1.7rem, 5vw, 2.4rem); font-weight: 900; color: #fff; line-height: 1.15; }
.thanks__text { color: var(--muted); font-size: 1.06rem; max-width: 42ch; }
.thanks__actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }

@keyframes thanks-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes thanks-pop { 0% { transform: scale(0); } 70% { transform: scale(1.12); } 100% { transform: scale(1); } }

/* ===================== FOOTER ===================== */
.footer { background: var(--navy-800); border-top: 1px solid rgba(255,233,157,.1); padding-top: 50px; }
.footer__inner { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; padding-bottom: 36px; }
.footer__brand { display: flex; align-items: center; gap: 14px; }
.footer__logo { width: 52px; height: 52px; border-radius: 12px; }
.footer__brand strong { display: block; font-size: 1.05rem; }
.footer__brand span { color: var(--muted); font-size: .85rem; }
.footer__contact { display: flex; flex-direction: column; gap: 8px; }
.footer__contact a { color: var(--muted); font-size: .92rem; transition: color .2s; }
.footer__contact a:hover { color: var(--gold); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.06); padding: 20px 0; }
.footer__bottom p { text-align: center; color: var(--muted); font-size: .82rem; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 900px) {
  .pillars { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .disciplines { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: absolute; top: 100%; right: 16px; left: 16px;
    flex-direction: column; align-items: stretch; gap: 6px;
    background: rgba(4, 20, 42, .98); backdrop-filter: blur(12px);
    border: 1px solid rgba(255,233,157,.12); border-radius: 16px;
    padding: 14px; margin-top: 10px;
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: .22s ease;
  }
  .nav__links.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav__links a { padding: 10px 12px; border-radius: 10px; }
  .nav__links a:hover { background: rgba(255,233,157,.08); }
  .nav__cta { text-align: center; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 460px) {
  .disciplines, .gallery { grid-template-columns: 1fr; }
  .footer__inner { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
}
