/* ============================================================
   LAPO F.C. — Tema Élite (capa final: se carga después de todo)
   Paleta: azul marino institucional + dorado de selección
   Tipografía: Outfit (display) + Plus Jakarta Sans (texto)
   ============================================================ */

:root {
  --brand: #203f85;
  --brand2: #2a52a8;
  --navy-deep: #0b1226;
  --ink: #101828;
  --muted: #5b6579;
  --gold: #c9a227;
  --gold-soft: rgba(201, 162, 39, 0.14);
  --paper: #f7f8fb;
  --card: #ffffff;
  --shadow: 0 24px 60px rgba(11, 18, 38, 0.12);
  --shadow2: 0 12px 30px rgba(11, 18, 38, 0.10);
  --radius: 18px;
  --ease-out: cubic-bezier(0.32, 0.72, 0, 1);
}

body {
  font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
  font-family: "Outfit", ui-sans-serif, system-ui, sans-serif;
}

h1, h2 {
  letter-spacing: -0.025em;
  text-wrap: balance;
}

/* ---------- Etiquetas "eyebrow" sobre los títulos ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: #8a6d14;
  border: 1px solid rgba(201, 162, 39, 0.35);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.eyebrow-light {
  background: rgba(255, 255, 255, 0.10);
  color: #e8d48a;
  border-color: rgba(232, 212, 138, 0.35);
}

/* ---------- Ritmo de secciones ---------- */
.section-wrap,
.sponsors-section,
.team-section,
.awards-section,
.contact-section {
  padding: 96px 0 104px;
}

.section-alt {
  background: var(--paper);
}

.section-title h2,
.section-head h2,
.awards-head h2,
.contact-head h2 {
  font-weight: 800;
  font-size: clamp(1.9rem, 3.2vw, 2.7rem);
}

/* ---------- Navbar ---------- */
.navbar {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.navbar-brand span.brand-name {
  color: var(--navy-deep);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.nav-link.active::after {
  background: linear-gradient(90deg, var(--gold), #e8d48a);
}

.btn-nav-cta {
  background: var(--brand);
  color: #fff !important;
  border-radius: 999px;
  padding: 8px 18px;
  font-weight: 700;
  font-size: 0.9rem;
  border: 1px solid var(--brand);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), background 0.35s var(--ease-out);
}

.btn-nav-cta:hover {
  background: var(--navy-deep);
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(11, 18, 38, 0.22);
}

/* ---------- HERO fotográfico ---------- */
.hero {
  min-height: 92dvh;
  display: grid;
  align-items: end;
  padding: 150px 0 0;
  position: relative;
  overflow: hidden;
  color: #fff;
  background: var(--navy-deep);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../../images/fondo/fondo (5).jpg");
  background-size: cover;
  background-position: center 30%;
  animation: none;
  filter: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 18, 38, 0.55) 0%, rgba(11, 18, 38, 0.25) 40%, rgba(11, 18, 38, 0.88) 88%),
    linear-gradient(100deg, rgba(11, 18, 38, 0.72) 0%, rgba(11, 18, 38, 0.15) 60%);
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-weight: 900;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  text-shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
}

.hero h1 .gold {
  color: #e8d48a;
}

.hero p.lead-hero {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.65;
  margin-bottom: 1.8rem;
}

.hero-actions {
  margin-bottom: 64px;
}

.btn-hero {
  border-radius: 999px;
  padding: 0.95rem 1.6rem;
  min-width: 0;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out), background 0.45s var(--ease-out);
}

.btn-hero:active {
  transform: scale(0.98);
}

.btn-hero .btn-orb {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 12px;
  background: rgba(11, 18, 38, 0.12);
  transition: transform 0.45s var(--ease-out);
}

.btn-hero:hover .btn-orb {
  transform: translateX(3px);
}

.btn-hero-primary {
  background: linear-gradient(120deg, #d8b53a, var(--gold));
  color: #1c1503;
  border: none;
  box-shadow: 0 18px 40px rgba(201, 162, 39, 0.35);
}

.btn-hero-primary:hover {
  color: #1c1503;
  box-shadow: 0 24px 52px rgba(201, 162, 39, 0.45);
}

.btn-hero-outline {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(6px);
}

.btn-hero-outline .btn-orb {
  background: rgba(255, 255, 255, 0.14);
}

/* Franja de credenciales bajo el hero */
.hero-strip {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(11, 18, 38, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hero-strip .strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.hero-strip .strip-item {
  padding: 22px 26px;
  border-left: 1px solid rgba(255, 255, 255, 0.10);
}

.hero-strip .strip-item:first-child {
  border-left: none;
}

.hero-strip strong {
  display: block;
  font-family: "Outfit", sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  color: #fff;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.hero-strip span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---------- Academia (split asimétrico) ---------- */
.academy-media {
  position: relative;
}

.academy-media .main-photo {
  width: 100%;
  border-radius: 22px;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.academy-media .floating-card {
  position: absolute;
  right: -18px;
  bottom: -26px;
  background: var(--navy-deep);
  color: #fff;
  border-radius: 16px;
  padding: 18px 22px;
  box-shadow: 0 24px 50px rgba(11, 18, 38, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  max-width: 250px;
}

.academy-media .floating-card strong {
  font-family: "Outfit", sans-serif;
  color: #e8d48a;
  display: block;
  margin-bottom: 2px;
}

.academy-media .floating-card span {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.45;
}

.academy-check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.academy-check .cicon-mini {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: var(--gold-soft);
  color: #8a6d14;
  display: grid;
  place-items: center;
  font-size: 13px;
  flex: 0 0 auto;
  margin-top: 2px;
}

.academy-check h6 {
  margin: 0;
  font-weight: 700;
}

.academy-check p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.5;
}

/* ---------- Galería Entrenamientos (grid asimétrico) ---------- */
.training-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 180px;
  gap: 14px;
}

.training-grid a {
  display: block;
  overflow: hidden;
  border-radius: 16px;
  position: relative;
}

.training-grid a.span-tall {
  grid-row: span 2;
}

.training-grid a.span-wide {
  grid-column: span 2;
}

.training-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}

.training-grid a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(11, 18, 38, 0.45));
  opacity: 0;
  transition: opacity 0.5s var(--ease-out);
}

.training-grid a:hover img {
  transform: scale(1.05);
}

.training-grid a:hover::after {
  opacity: 1;
}

/* ---------- Sponsors: badge y botones ---------- */
.plan-card.popular .badge-pop {
  background: linear-gradient(120deg, #d8b53a, var(--gold));
  color: #1c1503;
}

.plan-btn {
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), filter 0.35s var(--ease-out);
}

.plan-btn:hover {
  transform: translateY(-2px);
}

.plan-btn:active {
  transform: scale(0.98);
}

/* ---------- Formularios ---------- */
.form-control:focus,
.form-select:focus {
  border-color: rgba(201, 162, 39, 0.6);
  box-shadow: 0 0 0 0.25rem rgba(201, 162, 39, 0.16);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
}

.footer-brand span {
  font-family: "Outfit", sans-serif;
  font-weight: 800;
}

.footer-brand i {
  color: var(--gold);
}

/* ---------- Accesibilidad y detalles ---------- */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

::selection {
  background: rgba(201, 162, 39, 0.3);
  color: var(--navy-deep);
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .hero {
    min-height: 82dvh;
    padding-top: 120px;
  }

  .hero-strip .strip-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-strip .strip-item:nth-child(3) {
    border-left: none;
  }

  .hero-strip .strip-item {
    border-top: 1px solid rgba(255, 255, 255, 0.10);
  }

  .hero-strip .strip-item:nth-child(-n+2) {
    border-top: none;
  }

  .training-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 150px;
  }
}

@media (max-width: 767.98px) {
  .section-wrap,
  .sponsors-section,
  .team-section,
  .awards-section,
  .contact-section {
    padding: 64px 0 72px;
  }

  .hero-actions {
    margin-bottom: 44px;
  }

  .academy-media .floating-card {
    position: static;
    margin-top: 14px;
    max-width: none;
  }

  .training-grid a.span-tall {
    grid-row: span 1;
  }
}
