/* ========================================
   STATO GESTIÓN DEPORTIVA — CSS Principal
   Paleta: Índigo / Profesional / Institucional
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  --indigo-950: #0f0a2e;
  --indigo-900: #1a0f4d;
  --indigo-800: #271561;
  --indigo-700: #3b1fa3;
  --indigo-600: #4f27cc;
  --indigo-500: #6638f0;
  --indigo-400: #8b67f5;
  --indigo-300: #b39cfa;
  --indigo-100: #e8e2ff;
  --indigo-50:  #f4f1ff;
  --accent:     #c9a227;
  --accent-lt:  #f0d472;
  --white:      #ffffff;
  --gray-100:   #f5f5f7;
  --gray-200:   #e8e8ed;
  --gray-400:   #9b9ba8;
  --gray-700:   #3d3d52;
  --text-main:  #1c1c2e;
  --text-muted: #6b6b80;
  --radius:     12px;
  --radius-lg:  20px;
  --shadow-sm:  0 2px 12px rgba(79,39,204,.08);
  --shadow-md:  0 8px 32px rgba(79,39,204,.14);
  --shadow-lg:  0 20px 60px rgba(79,39,204,.18);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text-main);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
}

/* ---- TIPOGRAFÍA ---- */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  line-height: 1.2;
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.5rem); }

p { margin-bottom: 1rem; }
a { text-decoration: none; color: inherit; }

/* ---- UTILIDADES ---- */
.section-label {
  font-family: 'DM Sans', sans-serif;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .75rem;
  display: block;
}
.lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  font-weight: 300;
}
.text-indigo { color: var(--indigo-600); }
.bg-indigo-dark { background: var(--indigo-900); color: var(--white); }
.bg-indigo-light { background: var(--indigo-50); }
.bg-white { background: var(--white); }

/* ---- NAVBAR ---- */
#mainNav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(15,10,46,.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.07);
  transition: all .3s ease;
}
#mainNav .navbar-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: .02em;
}
#mainNav .navbar-brand span { color: var(--accent); }
#mainNav .nav-link {
  color: rgba(255,255,255,.78) !important;
  font-size: .88rem;
  font-weight: 500;
  letter-spacing: .03em;
  padding: .5rem .9rem !important;
  border-radius: 6px;
  transition: all .2s;
}
#mainNav .nav-link:hover,
#mainNav .nav-link.active {
  color: var(--white) !important;
  background: rgba(255,255,255,.09);
}
#mainNav .navbar-toggler { border-color: rgba(255,255,255,.3); }
#mainNav .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ---- HERO ---- */
#inicio {
  min-height: 100vh;
  background: var(--indigo-950);
  position: relative;
  display: flex; align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 70% 50%, rgba(102,56,240,.22) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 10% 80%, rgba(201,162,39,.08) 0%, transparent 60%);
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-content { position: relative; z-index: 2; }
.hero-eyebrow {
  display: inline-block;
  font-size: .78rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  border: 1px solid rgba(201,162,39,.35);
  padding: .35rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
}
.hero-title { color: var(--white); margin-bottom: 1.5rem; }
.hero-title em {
  font-style: normal;
  color: var(--indigo-300);
}
.hero-quote {
  font-size: 1.05rem;
  color: rgba(255,255,255,.65);
  font-style: italic;
  border-left: 3px solid var(--accent);
  padding-left: 1.2rem;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}
.hero-areas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.hero-area-pill {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.85);
  padding: .5rem 1.2rem;
  border-radius: 50px;
  font-size: .85rem;
  font-weight: 500;
  transition: all .2s;
}
.hero-area-pill:hover {
  background: var(--indigo-600);
  border-color: var(--indigo-600);
  color: white;
}
.btn-stato-primary {
  background: var(--indigo-600);
  color: var(--white);
  border: none;
  padding: .85rem 2.2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .02em;
  transition: all .25s;
  display: inline-block;
}
.btn-stato-primary:hover {
  background: var(--indigo-500);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(102,56,240,.35);
}
.btn-stato-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,.35);
  padding: .85rem 2.2rem;
  border-radius: 8px;
  font-weight: 500;
  font-size: .95rem;
  transition: all .25s;
  display: inline-block;
}
.btn-stato-outline:hover {
  background: rgba(255,255,255,.08);
  color: var(--white);
  border-color: rgba(255,255,255,.6);
}

/* ---- SECCIÓN GENÉRICA ---- */
.section-pad { padding: 100px 0; }
.section-pad-sm { padding: 70px 0; }
.section-title { margin-bottom: .75rem; }
.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 3rem;
  max-width: 580px;
}

/* ---- QUIENES SOMOS ---- */
#quienes-somos { background: var(--indigo-50); }
.qs-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  height: 100%;
}
.hashtag-list {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: 2rem;
}
.hashtag {
  background: var(--indigo-100);
  color: var(--indigo-700);
  padding: .4rem 1rem;
  border-radius: 50px;
  font-size: .88rem;
  font-weight: 600;
}
.qs-stat {
  text-align: center;
  padding: 1.5rem;
}
.qs-stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--indigo-600);
  line-height: 1;
  display: block;
}
.qs-stat-label {
  font-size: .85rem;
  color: var(--text-muted);
  margin-top: .25rem;
}
.qs-divider {
  width: 48px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin: 1.2rem 0;
}

/* ---- OBSERVATORIO ---- */
#observatorio { background: var(--white); }
.obs-card {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 2rem;
  height: 100%;
  transition: all .25s;
  position: relative;
  overflow: hidden;
}
.obs-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--indigo-600), var(--indigo-400));
  transform: scaleX(0);
  transition: transform .3s ease;
}
.obs-card:hover { border-color: var(--indigo-200); box-shadow: var(--shadow-md); transform: translateY(-4px); }
.obs-card:hover::before { transform: scaleX(1); }
.obs-icon {
  width: 48px; height: 48px;
  background: var(--indigo-100);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.2rem;
  color: var(--indigo-600);
  font-size: 1.3rem;
}
.obs-paper-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--gray-200);
}
.obs-paper-item:last-child { border-bottom: none; }
.obs-paper-icon {
  width: 40px; height: 40px;
  background: var(--indigo-100);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--indigo-600);
}
.social-row {
  display: flex; gap: 1rem; margin-top: 2rem; flex-wrap: wrap;
}
.social-btn {
  display: flex; align-items: center; gap: .5rem;
  background: var(--indigo-900);
  color: var(--white);
  padding: .6rem 1.2rem;
  border-radius: 8px;
  font-size: .88rem;
  font-weight: 500;
  transition: all .2s;
}
.social-btn:hover { background: var(--indigo-700); color: var(--white); transform: translateY(-1px); }

/* ---- CONSULTORÍA ---- */
#consultoria { background: var(--indigo-950); color: var(--white); }
#consultoria .section-label { color: var(--accent); }
#consultoria .section-title { color: var(--white); }
#consultoria .section-subtitle { color: rgba(255,255,255,.6); }

.cons-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg);
  padding: 2rem;
  height: 100%;
  transition: all .3s;
  position: relative;
  overflow: hidden;
}
.cons-card:hover {
  background: rgba(102,56,240,.18);
  border-color: var(--indigo-500);
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(102,56,240,.25);
}
.cons-num {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 700;
  color: rgba(102,56,240,.35);
  line-height: 1;
  margin-bottom: .5rem;
  transition: color .3s;
}
.cons-card:hover .cons-num { color: var(--indigo-400); }
.cons-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: .75rem;
}
.cons-desc {
  color: rgba(255,255,255,.65);
  font-size: .92rem;
  line-height: 1.6;
}
.cons-expand {
  margin-top: 1rem;
  color: var(--indigo-300);
  font-size: .85rem;
  font-weight: 500;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  transition: color .2s;
}
.cons-expand:hover { color: var(--accent-lt); }
.cons-detail {
  display: none;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,.1);
}
.cons-detail.open { display: block; }
.cons-detail ul {
  list-style: none;
  padding: 0;
}
.cons-detail ul li {
  color: rgba(255,255,255,.7);
  font-size: .88rem;
  padding: .2rem 0;
  padding-left: 1rem;
  position: relative;
}
.cons-detail ul li::before {
  content: '—';
  position: absolute; left: 0;
  color: var(--accent);
}
.cons-cta-box {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg);
  padding: 3rem;
  text-align: center;
}
.btn-accent {
  background: var(--accent);
  color: var(--indigo-950);
  border: none;
  padding: .9rem 2.4rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: .95rem;
  transition: all .25s;
  display: inline-block;
}
.btn-accent:hover {
  background: var(--accent-lt);
  color: var(--indigo-950);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201,162,39,.35);
}

/* ---- FORMACIÓN ---- */
#formacion { background: var(--gray-100); }
.form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 100%;
  box-shadow: var(--shadow-sm);
  transition: all .25s;
}
.form-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.form-card-header {
  background: linear-gradient(135deg, var(--indigo-700), var(--indigo-500));
  padding: 1.8rem;
  color: var(--white);
}
.form-card-body { padding: 1.8rem; }
.badge-stato {
  background: rgba(255,255,255,.2);
  color: var(--white);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .3rem .8rem;
  border-radius: 50px;
  font-weight: 600;
}
.form-tag {
  display: inline-block;
  background: var(--indigo-100);
  color: var(--indigo-700);
  font-size: .78rem;
  padding: .25rem .7rem;
  border-radius: 50px;
  font-weight: 500;
  margin: .2rem;
}

/* ---- LIBRO ---- */
#libro { background: var(--white); }
.libro-cover {
  background: linear-gradient(145deg, var(--indigo-900), var(--indigo-700));
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.libro-cover::before {
  content: '';
  position: absolute;
  top: -50%; right: -50%;
  width: 100%; height: 100%;
  background: radial-gradient(circle, rgba(201,162,39,.12) 0%, transparent 70%);
}
.libro-cover-img {
  width: 160px;
  height: 220px;
  background: linear-gradient(145deg, var(--indigo-800), var(--indigo-600));
  border-radius: 8px;
  margin: 0 auto 1.5rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: -8px 8px 24px rgba(0,0,0,.4);
  position: relative;
  z-index: 1;
  border-left: 12px solid var(--indigo-950);
}
.libro-cover-img i { font-size: 3rem; color: rgba(255,255,255,.3); }
.libro-title-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--white);
  font-weight: 700;
}
.libro-author {
  color: var(--accent);
  font-size: .9rem;
  margin-top: .5rem;
}
.entrevistado-list { margin-top: 1.5rem; }
.entrevistado-group h6 {
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--indigo-400);
  margin-bottom: .6rem;
  padding-bottom: .3rem;
  border-bottom: 1px solid var(--gray-200);
}
.entrevistado-item {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .35rem 0;
  font-size: .88rem;
  color: var(--text-muted);
}
.entrevistado-item::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--indigo-400);
  flex-shrink: 0;
}
.libro-quote-box {
  background: var(--indigo-50);
  border-left: 4px solid var(--indigo-600);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 2rem;
  margin-top: 2rem;
}
.libro-quote-box blockquote {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  color: var(--indigo-800);
  font-style: italic;
  margin: 0;
}
.btn-libro {
  background: var(--indigo-600);
  color: var(--white);
  border: none;
  padding: .9rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  display: inline-flex; align-items: center; gap: .5rem;
  transition: all .25s;
  margin-top: 1.5rem;
}
.btn-libro:hover {
  background: var(--indigo-500);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ---- CONTACTO ---- */
#contacto { background: var(--indigo-900); color: var(--white); }
#contacto .section-label { color: var(--accent); }
#contacto .section-title { color: var(--white); }
.contact-form-wrap {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}
.form-control-stato {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  color: var(--white);
  border-radius: 8px;
  padding: .8rem 1.1rem;
  font-size: .95rem;
  width: 100%;
  transition: all .2s;
  margin-bottom: 1.2rem;
  font-family: 'DM Sans', sans-serif;
}
.form-control-stato::placeholder { color: rgba(255,255,255,.4); }
.form-control-stato:focus {
  outline: none;
  border-color: var(--indigo-400);
  background: rgba(255,255,255,.12);
}
.contact-info-item {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.8);
}
.contact-info-item:last-child { border-bottom: none; }
.contact-info-icon {
  width: 40px; height: 40px;
  background: rgba(255,255,255,.08);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
}

/* ---- FOOTER ---- */
footer {
  background: var(--indigo-950);
  padding: 3rem 0 1.5rem;
  color: rgba(255,255,255,.55);
  font-size: .88rem;
}
.footer-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: .5rem;
}
.footer-brand span { color: var(--accent); }
.footer-tagline {
  font-style: italic;
  font-size: .8rem;
  color: rgba(255,255,255,.4);
}
.footer-nav-title {
  font-size: .72rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  margin-bottom: 1rem;
}
.footer-link {
  display: block;
  color: rgba(255,255,255,.6);
  font-size: .88rem;
  padding: .2rem 0;
  transition: color .2s;
}
.footer-link:hover { color: var(--white); }
.footer-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,.07);
  color: rgba(255,255,255,.7);
  margin-right: .4rem;
  transition: all .2s;
}
.footer-social a:hover {
  background: var(--indigo-600);
  color: var(--white);
}
.footer-divider {
  border-color: rgba(255,255,255,.08);
  margin: 2rem 0 1.2rem;
}
.footer-pasteur {
  font-style: italic;
  font-size: .8rem;
  color: rgba(255,255,255,.3);
  text-align: center;
}

/* ---- PAGE HEADER (páginas internas) ---- */
.page-header {
  background: var(--indigo-900);
  padding: 150px 0 80px;
  position: relative;
  overflow: hidden;
}
.page-header-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 80% 50%, rgba(102,56,240,.18) 0%, transparent 70%),
    radial-gradient(ellipse 30% 60% at 5% 80%, rgba(201,162,39,.06) 0%, transparent 60%);
}
.page-header-content { position: relative; z-index: 2; }

/* ---- SCROLL TOP ---- */
#scrollTop {
  position: fixed; bottom: 2rem; right: 2rem;
  width: 44px; height: 44px;
  background: var(--indigo-600);
  color: var(--white);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  opacity: 0; pointer-events: none;
  transition: all .3s;
  z-index: 999;
  border: none;
  box-shadow: var(--shadow-md);
}
#scrollTop.visible { opacity: 1; pointer-events: auto; }
#scrollTop:hover { background: var(--indigo-500); transform: translateY(-2px); }

/* ---- ANIMACIONES ---- */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .section-pad { padding: 70px 0; }
  .hero-areas { flex-direction: column; }
  .cons-card { margin-bottom: 1rem; }
  .libro-cover { padding: 2rem 1.5rem; }
  .contact-form-wrap { padding: 1.5rem; }
}

/* ---- ACCESIBILIDAD ---- */
:focus-visible { outline: 3px solid var(--indigo-400); outline-offset: 2px; }