/* ================================================================
   PRISMA — web pública (capta niñas, familias y patrocinadores)
   Reutiliza fuentes y colores de styles.css (@font-face + :root).
   ================================================================ */
:root {
  --navy: #162235;
  --navy2: #0f1826;
  --hielo: #eef2f6;
  --gris: #9aa4b2;
  --carbon: #2e3440;
  /* Variantes "ink" con contraste AA (>=4.5:1) para texto sobre fondo claro */
  --sapphire-ink: #3547c4;
  --mirum-ink: #167a63;
  --fusion-ink: #8a5228;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* El contenido anclado no queda oculto bajo la barra fija */
section[id], [id] { scroll-margin-top: 84px; }

/* Salto al contenido (teclado / lectores de pantalla) */
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--navy); color: #fff;
  padding: 10px 16px; border-radius: 10px; font-weight: 600; transition: top .15s; }
.skip-link:focus { top: 12px; outline: 3px solid #fff; }

/* Foco visible y consistente en toda la web */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--sapphire-ink); outline-offset: 2px; border-radius: 6px;
}
.hero a:focus-visible, .dark a:focus-visible, .sponsor a:focus-visible, .footer a:focus-visible { outline-color: #fff; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
  margin: 0; color: var(--navy); background: #fff;
  font-family: 'Inter', system-ui, sans-serif; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 22px; }
h1, h2, h3 { font-family: 'Montserrat', sans-serif; font-weight: 600; line-height: 1.15; margin: 0 0 .5em; }
.h-kicker { font-family: 'Montserrat', sans-serif; font-weight: 600; letter-spacing: 3px; text-transform: uppercase;
  font-size: 12px; color: var(--sapphire-ink); margin-bottom: 12px; }
section { padding: 84px 0; }
.section-light { background: var(--hielo); }
.lead { font-size: 18px; color: #46566b; max-width: 620px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* Botones */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 24px; border-radius: 999px;
  font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 14.5px; cursor: pointer; border: 2px solid transparent;
  transition: transform .08s, background .15s, color .15s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: #3a57e0; color: #fff; }
.btn-primary:hover { background: #2f49d6; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--hielo); }
.btn-ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.btn-outline { border-color: var(--sapphire-ink); color: var(--sapphire-ink); }
.btn-outline:hover { background: var(--sapphire-ink); color: #fff; }

/* Header */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid #e7edf3; }
.nav .container { display: flex; align-items: center; gap: 16px; height: 66px; }
.nav-logo { display: flex; align-items: center; gap: 10px; margin-right: auto; font-family: 'Montserrat'; font-weight: 500; letter-spacing: 3px; font-size: 18px; }
/* Selector de idioma ES/EN */
.lang-switch { display: inline-flex; border: 1px solid #d5deea; border-radius: 999px; overflow: hidden; flex: 0 0 auto; }
.lang-switch button { border: 0; background: transparent; font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 12.5px; letter-spacing: .5px; padding: 6px 11px; cursor: pointer; color: #5a6a7e; line-height: 1; }
.lang-switch button.active { background: var(--sapphire-ink); color: #fff; }
.lang-switch button:focus-visible { outline: 2px solid var(--sapphire-ink); outline-offset: 1px; }
.nav-logo img { height: 30px; width: auto; }
.nav-logo .nav-word { height: 17px; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a:not(.btn) { font-size: 14.5px; font-weight: 500; color: #3a4a5e; }
.nav-links a:not(.btn):hover { color: var(--sapphire-ink); }
.nav-links .btn { padding: 9px 18px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; }

/* Hero */
.hero { position: relative; background: radial-gradient(1200px 700px at 75% -10%, #1d2f4d, var(--navy) 55%);
  color: #fff; padding: 96px 0 90px; overflow: hidden; }
/* Foto del equipo, muy difuminada, con capa navy encima para mantener el texto legible (AA) */
.hero::before { content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    linear-gradient(100deg, rgba(15,24,38,.92) 0%, rgba(15,24,38,.82) 38%, rgba(15,24,38,.58) 70%, rgba(15,24,38,.50) 100%),
    url('/fotos/hero-equipo.jpg') center 24% / cover no-repeat;
  filter: blur(5px); transform: scale(1.06); }
.hero::after { content: ''; position: absolute; inset: 0; z-index: 0;
  background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px); background-size: 26px 26px; opacity: .5; }
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero h1 { font-size: 52px; letter-spacing: .5px; }
.hero h1 .grad { background: linear-gradient(100deg, var(--sapphire), var(--mirum) 55%, var(--fusion));
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { font-size: 19px; color: #c7d2e2; max-width: 520px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.hero-badges { display: flex; gap: 26px; margin-top: 40px; flex-wrap: wrap; }
.hero-badge b { font-family: 'Montserrat'; font-size: 26px; display: block; }
.hero-badge span { color: var(--gris); font-size: 13px; }
.hero-art { display: grid; place-items: center; }
.hero-art img { width: 78%; filter: drop-shadow(0 20px 40px rgba(0,0,0,.4)); }

/* Equipos */
.teams { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 44px; }
.team-card { border: 1px solid #e7edf3; border-radius: 18px; overflow: hidden; background: #fff;
  box-shadow: 0 10px 30px rgba(22,34,53,.06); transition: transform .15s, box-shadow .15s; }
.team-card:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(22,34,53,.12); }
.team-top { padding: 26px 24px; color: #fff; position: relative; overflow: hidden; }
/* Ligero brillo metálico sobre el color del equipo (destello fuerte solo en la franja
   superior de padding, satén ≤.07 en el resto para no bajar el contraste del texto blanco) */
.team-top::before { content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255,255,255,.20) 0%, rgba(255,255,255,0) 14%),
    linear-gradient(125deg, rgba(255,255,255,.07) 0%, rgba(255,255,255,0) 34%, rgba(0,0,0,.06) 66%, rgba(255,255,255,.06) 100%); }
.team-top > * { position: relative; z-index: 1; }
.team-top h3 { font-size: 26px; letter-spacing: 4px; margin: 0; }
.team-top .cat { font-size: 12.5px; text-transform: uppercase; letter-spacing: 2px; opacity: .9; }
.team-body { padding: 22px 24px 26px; }
.team-body p { margin: 0 0 14px; color: #46566b; font-size: 15px; }
.team-tag { display: inline-block; font-size: 12px; font-weight: 600; padding: 4px 11px; border-radius: 999px; background: var(--hielo); color: var(--carbon); }

/* Progresión */
.path { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 40px; position: relative; }
.path-step { text-align: center; padding: 0 18px; position: relative; }
.path-dot { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 16px; color: #fff; font-family: 'Montserrat'; font-weight: 700; font-size: 20px; }
.path-step:not(:last-child)::after { content: ''; position: absolute; top: 27px; left: 60%; right: -40%; height: 3px;
  background: linear-gradient(90deg, currentColor, transparent); opacity: .35; }
.path-step h3 { font-family: 'Montserrat'; font-size: 18px; margin: 0 0 4px; }
.path-step p { color: #5a6a7e; font-size: 14px; margin: 0; }

/* Valores / por qué */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 40px; }
.feature { background: #fff; border: 1px solid #e7edf3; border-radius: 16px; padding: 26px; }
.section-light .feature { background: #fff; }
.feature .ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 14px;
  background: rgba(77,107,255,.1); color: var(--sapphire); }
.feature .ic svg { width: 24px; height: 24px; }
.feature h3 { font-size: 18px; margin: 0 0 6px; }
.feature p { margin: 0; color: #56667a; font-size: 14.5px; }
.diag-card .diagram { background: #f2f6fb; border-radius: 10px; padding: 16px 10px; margin-bottom: 14px; display: grid; place-items: center; }
.diag-card .diagram svg { width: 100%; max-width: 160px; height: auto; }
.diag-card h3 { font-size: 17px; }
.diag-card p { font-size: 14px; }

/* Palmarés */
.dark { background: var(--navy); color: #fff; }
.dark .lead { color: #c1cdde; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; }
.stat { text-align: center; }
.stat b { font-family: 'Montserrat'; font-size: 40px; display: block;
  background: linear-gradient(120deg, var(--sapphire), var(--mirum)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: var(--gris); font-size: 13.5px; }

/* Pasos familia */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; }
.step { background: #fff; border: 1px solid #e7edf3; border-radius: 16px; padding: 24px; }
.step .n { font-family: 'Montserrat'; font-weight: 700; color: var(--sapphire-ink); font-size: 15px; }
.step h3 { margin: 8px 0 6px; font-family: 'Montserrat'; font-size: 17px; }
.step p { margin: 0; color: #56667a; font-size: 14px; }

/* Patrocinadores CTA */
.sponsor { background: linear-gradient(120deg, var(--navy), #24344f); color: #fff; border-radius: 22px; padding: 48px; }
.sponsor-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 36px; align-items: center; }
.sponsor ul { margin: 18px 0 0; padding: 0; list-style: none; }
.sponsor li { padding: 7px 0 7px 28px; position: relative; color: #d3ddec; }
.sponsor li::before { content: '✓'; position: absolute; left: 0; color: var(--mirum); font-weight: 700; }

/* Contacto */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; margin-top: 40px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: #3a4a5e; margin: 0 0 5px; }
.field input, .field select, .field textarea { width: 100%; padding: 11px 13px; border: 1px solid #d5deea; border-radius: 10px;
  font-family: inherit; font-size: 15px; background: #fff; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--sapphire); box-shadow: 0 0 0 3px rgba(77,107,255,.15); }
.field { margin-bottom: 14px; }
.contact-info .box { background: var(--hielo); border-radius: 14px; padding: 20px; margin-bottom: 14px; }
#formMsg { margin-top: 6px; }

/* Footer */
.footer { background: var(--navy2); color: #9fb0c6; padding: 54px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
.footer h3 { color: #fff; font-family: 'Montserrat'; font-size: 14px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; margin: 0 0 12px; }
.footer a { display: block; padding: 4px 0; font-size: 14px; }
.footer a:hover { color: #fff; }
.footer-logo img { height: 34px; margin-bottom: 12px; }
.footer-bottom { border-top: 1px solid #263349; margin-top: 34px; padding-top: 20px; font-size: 12.5px; color: #6f83a5;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

.alert-ok { background: #e2f5ec; color: #1f7a4d; padding: 12px 14px; border-radius: 10px; font-size: 14px; }
.alert-err { background: #fbe4e8; color: #a12a41; padding: 12px 14px; border-radius: 10px; font-size: 14px; }

/* ============================================================
   Subpáginas de contenido ampliado (el-deporte.html, equipos.html)
   ============================================================ */
.subpage-head { padding: 54px 0 10px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; font-family: 'Montserrat'; font-weight: 600;
  font-size: 13.5px; color: var(--sapphire-ink); margin-bottom: 14px; }
.back-link:hover { text-decoration: underline; }
.toc { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.toc a { font-family: 'Montserrat'; font-weight: 600; font-size: 13.5px; padding: 9px 15px; border-radius: 999px;
  background: var(--hielo); color: var(--navy); border: 1px solid #e0e7ef; }
.toc a:hover { background: #e4ebf3; color: var(--sapphire-ink); }
.prose { max-width: 760px; }
.prose p { color: #46566b; }
.prose h3 { margin-top: 30px; }
.def { margin-top: 20px; }
.def dt { font-family: 'Montserrat'; font-weight: 600; color: var(--navy); margin-top: 16px; }
.def dd { margin: 4px 0 0; color: #56667a; font-size: 15px; }
.ctable-wrap { overflow-x: auto; margin-top: 28px; -webkit-overflow-scrolling: touch; }
.ctable { width: 100%; border-collapse: collapse; min-width: 680px; font-size: 14px; }
.ctable th, .ctable td { text-align: left; padding: 12px 14px; border-bottom: 1px solid #e7edf3; vertical-align: top; }
.ctable thead th { font-family: 'Montserrat'; font-size: 12.5px; text-transform: uppercase; letter-spacing: .5px;
  color: var(--sapphire-ink); background: var(--hielo); position: sticky; top: 0; }
.ctable tbody tr:hover { background: #f7fafc; }
.ctable td:first-child, .ctable th:first-child { font-weight: 600; color: var(--navy); }
.lvl { display: inline-block; font-family: 'Montserrat'; font-weight: 700; font-size: 11.5px; padding: 2px 8px;
  border-radius: 6px; background: rgba(77,107,255,.12); color: var(--sapphire-ink); margin-right: 4px; }
.note-box { background: var(--hielo); border-radius: 14px; padding: 18px 20px; font-size: 14px; color: #46566b; margin-top: 26px; }
.note-box b { color: var(--navy); }
.saber-mas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; justify-content: center; }
.dark .toc a { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.15); }
.dark .prose p { color: #c1cdde; }

/* Bloque de equipo (equipos.html): badge + ficha + galería */
.team-block { display: flex; gap: 40px; align-items: center; flex-wrap: wrap; }
.team-badge { width: 190px; height: auto; flex: 0 0 auto; filter: drop-shadow(0 14px 30px rgba(22,34,53,.20)); }
.team-info-col { flex: 1 1 340px; min-width: 280px; }
.team-info-col h2 { font-size: 34px; letter-spacing: 3px; margin: 4px 0 10px; }
.team-facts { list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 22px; }
.team-facts li { font-size: 14px; color: #56667a; border-left: 3px solid var(--tc, var(--sapphire)); padding-left: 12px; }
.team-facts b { display: block; font-family: 'Montserrat'; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--navy); margin-bottom: 2px; }
/* Marco de galería (preparado para fotos reales) */
.photo-ph { position: relative; overflow: hidden; margin: 34px 0 0; border: 2px dashed #cdd7e2; border-radius: 16px;
  padding: 40px 24px; text-align: center; background: #f7fafc; }
.photo-ph::before { content: ''; position: absolute; inset: 0; background: url('recurso_patron_patinadoras.png'); background-size: 240px; opacity: .06; }
.photo-ph .ph-inner { position: relative; z-index: 1; color: #8494a6; }
.photo-ph svg { width: 34px; height: 34px; margin-bottom: 8px; color: var(--tc, var(--sapphire)); }
.photo-ph b { display: block; font-family: 'Montserrat'; color: var(--navy); font-size: 15px; margin-bottom: 3px; }
.photo-ph span { font-size: 13.5px; }
@media (max-width: 700px) { .team-facts { grid-template-columns: 1fr; } .team-badge { width: 150px; } }
/* Galería de fotos (marcos preparados para imágenes reales de competición) */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
.gallery .photo-ph { margin: 0; aspect-ratio: 4 / 3; display: grid; place-items: center; padding: 18px; }
.gallery figure.photo-ph { margin: 0; }
.photo-real { margin: 24px 0 0; border-radius: 16px; overflow: hidden; }
.photo-real img { width: 100%; height: auto; display: block; }
.photo-real figcaption { font-size: 13px; color: #56667a; padding: 8px 4px 0; }
@media (max-width: 700px) { .gallery { grid-template-columns: 1fr 1fr; } }
/* Enlace a Instagram oficial del equipo */
.ig-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; font-family: 'Montserrat';
  font-weight: 600; font-size: 14px; color: var(--tc, var(--sapphire-ink)); }
.ig-link svg { width: 20px; height: 20px; }
.ig-link:hover { text-decoration: underline; }
.gallery + .ig-link { margin-top: 16px; }

@media (max-width: 900px) {
  .hero-grid, .sponsor-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .teams, .grid-3, .path, .stats, .steps { grid-template-columns: 1fr; }
  .grid-2, .footer-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .path-step::after { display: none; }
  .nav-links { display: none; }
  .nav-links.open { display: flex; position: absolute; top: 66px; left: 0; right: 0; flex-direction: column; align-items: flex-start;
    background: #fff; padding: 16px 22px; gap: 14px; border-bottom: 1px solid #e7edf3; }
  .nav-toggle { display: block; }
  .hero h1 { font-size: 38px; }
  section { padding: 60px 0; }
  .sponsor { padding: 32px 24px; }
  .form-row { grid-template-columns: 1fr; }
}
