/* Club de Surf La Nucía · piel adaptada al kit de marca v1.0 (octubre 2026) */
/* Poppins OFL autoalojada en /nueva/fonts/ (sin llamadas a terceros) */
@font-face {
  font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('fonts/poppins-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('fonts/poppins-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('fonts/poppins-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('fonts/poppins-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('fonts/poppins-700-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('fonts/poppins-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Tokens del kit de marca */
  --csl-marino: #0C243C;
  --csl-turquesa-prof: #075E74;
  --csl-turquesa: #097C93;
  --csl-turquesa-claro: #26A6B9;
  --csl-sol: #ECB420;
  --csl-sol-hover: #D9A412;
  --csl-sol-suave: #F1D27D;
  --csl-arena: #FAF8F5;
  --csl-espuma: #E6F2F4;
  --csl-bruma: #5B6B7A;
  --csl-blanco: #FFFFFF;
  --radius-md: 20px;
  --radius-pill: 999px;
  --shadow-card: 0 10px 30px rgba(12, 36, 60, .12);
  /* Mapa de variables existentes a tokens del kit */
  --navy: var(--csl-marino);
  --navy-dark: #0C243C;
  --turquoise: var(--csl-turquesa);
  --yellow: var(--csl-sol);
  --ink: var(--csl-marino);
  --muted: var(--csl-bruma);
  --sand: var(--csl-arena);
  --card: var(--csl-blanco);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Poppins', 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
  color: var(--ink);
  line-height: 1.67;
  font-weight: 400;
  font-size: 18px;
  background: var(--sand);
}

/* Foco visible (kit: contorno 3px marino; sobre fondos oscuros, Amarillo Suave) */
:focus-visible { outline: 3px solid var(--csl-marino); outline-offset: 3px; }
.topbar a:focus-visible { outline-color: var(--csl-sol-suave); }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
  padding: 10px 20px;
  background: var(--navy);
  color: #fff;
}
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.brand-logo { width: 44px; height: 44px; border-radius: 50%; }
.brand-name { font-weight: 700; font-size: 15px; letter-spacing: 0.02em; }
.nav { display: flex; gap: 18px; flex-wrap: wrap; }
.nav a { color: var(--csl-espuma); text-decoration: none; font-size: 14px; padding: 6px 2px; }
.nav a:hover, .nav a:focus { color: var(--yellow); }

/* Hero */
.hero { position: relative; min-height: 70vh; display: flex; align-items: flex-end; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: relative; width: 100%;
  padding: 96px 24px 48px;
  background: linear-gradient(180deg, rgba(12,36,60,0) 0%, rgba(12,36,60,0.75) 100%);
  color: #fff;
}
.hero h1 { font-size: clamp(36px, 7vw, 56px); line-height: 1.1; font-weight: 700; }
.hero-sub { margin-top: 10px; font-size: clamp(16px, 2.5vw, 20px); color: #ffffff; font-weight: 500; text-shadow: 0 1px 8px rgba(12,36,60,0.65); }
.cta {
  display: inline-block; margin-top: 22px;
  background: var(--yellow); color: var(--navy-dark);
  font-weight: 500; text-decoration: none;
  padding: 14px 28px; border-radius: var(--radius-pill);
  min-height: 44px; line-height: 20px;
}
.cta:hover { background: var(--csl-sol-hover); }

/* Sections */
.section { max-width: 760px; margin: 0 auto; padding: 56px 24px; }
.section-alt { background: var(--csl-espuma); max-width: none; }
.section-alt > * { max-width: 712px; margin-left: auto; margin-right: auto; }
.section h2 {
  color: var(--navy);
  font-size: clamp(26px, 4vw, 32px);
  margin-bottom: 16px;
  border-bottom: 3px solid var(--turquoise);
  display: inline-block;
  padding-bottom: 6px;
}
.section p { margin-bottom: 14px; }
.section a { color: var(--turquoise); text-decoration: underline; }
.section a:hover { color: var(--csl-turquesa-prof); }

.provisional {
  margin-top: 18px;
  font-size: 13px;
  color: var(--muted);
  border-left: 3px solid var(--yellow);
  padding-left: 12px;
  font-style: italic;
}
.hero-overlay .provisional { color: var(--csl-sol-suave); border-left-color: var(--yellow); }

/* Footer: el rojo institucional #DF0913 y la banda se fijan en el <style> inline del HTML (decision expresa, intacta) */
.footer {
  background: var(--navy-dark); color: #bcd2e0;
  text-align: center; padding: 32px 20px;
}
.footer-logo { width: 56px; height: 56px; border-radius: 50%; margin-bottom: 8px; }
.footer p { font-size: 14px; }

@media (max-width: 600px) {
  body { font-size: 16px; line-height: 1.63; }
  .topbar { justify-content: center; }
  .nav { justify-content: center; gap: 12px; }
  .nav a { display: inline-flex; align-items: center; min-height: 44px; }
}

/* Hero description */
.hero-desc { margin-top: 10px; font-size: clamp(15px, 2.2vw, 18px); color: #eaf4f9; max-width: 38em; text-shadow: 0 1px 8px rgba(12,36,60,0.65); }

/* Subheadings and source lists */
.section h3 { color: var(--navy); font-size: clamp(20px, 3vw, 24px); margin: 26px 0 10px; }
.fuentes { margin: 4px 0 0 20px; }
.fuentes li { margin-bottom: 8px; font-size: 14px; color: var(--muted); }

/* FAQ accordion (tarjetas kit: blanco, radio 20, sombra suave azulada) */
.faq { margin-top: 12px; }
.faq details { background: var(--card); border: 0; border-radius: var(--radius-md); box-shadow: var(--shadow-card); padding: 12px 16px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--navy); }
.faq details p { margin-top: 8px; }

/* Contraste: CTA dentro de .section mantiene texto marino sobre amarillo (anula .section a) */
.section a.cta { color: var(--navy-dark); text-decoration: none; }

/* Ajuste AA: turquesa un paso más oscuro sobre fondos espuma (4.26 -> 5.02) */
.section-alt a:not(.cta) { color: #087084; }
.section-alt a:not(.cta):hover { color: #065B6B; }

/* Pie: enlaces siempre blancos sobre el rojo institucional */
.footer a { color: #fff; }
.footer a:hover { color: #FAF8F5; }

@media (max-width: 640px) { .hero-img { object-position: 20% 50%; } }
