/* ============================================================
   Bahía Rugby Club — hoja de estilos
   Paleta tomada del escudo: azul eléctrico, negro, blanco y gris.
   ============================================================ */

:root {
  --azul: #1a3ee0;
  --azul-osc: #0f2496;
  --azul-claro: #4f6bf0;
  --negro: #0a0e1a;
  --negro-2: #121828;
  --gris: #e7e9ef;
  --gris-medio: #9aa2b8;
  --blanco: #ffffff;
  --texto: #1a1f2e;
  --texto-suave: #52596b;
  --radio: 14px;
  --sombra: 0 12px 40px rgba(10, 14, 26, .12);
  --max: 1120px;
  --ff-title: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --ff-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

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

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

body {
  font-family: var(--ff-body);
  color: var(--texto);
  background: var(--blanco);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--azul); text-decoration: none; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 22px; }

/* ---------- Tipografía de títulos ---------- */
h1, h2, h3 { font-family: var(--ff-title); line-height: 1.05; letter-spacing: .5px; text-transform: uppercase; }
h2 { font-size: clamp(2rem, 5vw, 3.1rem); font-weight: 800; color: var(--negro); margin-bottom: 18px; }
h3 { font-size: 1.5rem; font-weight: 700; }

.eyebrow {
  display: inline-block;
  font-family: var(--ff-title);
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-size: .82rem;
  color: var(--azul);
  border-left: 4px solid var(--azul);
  padding-left: 10px;
  margin-bottom: 12px;
}

.section-lead { font-size: 1.12rem; color: var(--texto-suave); max-width: 720px; margin-bottom: 34px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-block;
  font-family: var(--ff-title);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 1.02rem;
  padding: 13px 28px;
  border-radius: 999px;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-primary { background: var(--azul); color: #fff; box-shadow: 0 8px 24px rgba(26, 62, 224, .35); }
.btn-primary:hover { transform: translateY(-2px); background: var(--azul-osc); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-ghost:hover { background: rgba(255,255,255,.14); }
.btn-nav { padding: 8px 20px; background: var(--azul); color: #fff !important; }
.btn-nav:hover { background: var(--azul-osc); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 14, 26, .92);
  backdrop-filter: blur(8px);
  transition: box-shadow .2s ease, background .2s ease;
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(0,0,0,.35); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { width: 44px; height: 44px; border-radius: 50%; background: #fff; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-family: var(--ff-title); font-size: 1.35rem; color: #fff; text-transform: uppercase; letter-spacing: .5px; }
.brand-text em { font-style: normal; font-size: .72rem; letter-spacing: 2px; color: var(--azul-claro); text-transform: uppercase; }

.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav a { color: #d7dbe8; font-weight: 600; font-size: .95rem; transition: color .15s ease; }
.main-nav a:hover { color: #fff; }

.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: #fff; border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; min-height: 88vh; display: flex; align-items: center; overflow: hidden; }
.hero-media {
  position: absolute; inset: 0;
  background: url('img/foto1.jpg') center 40% / cover no-repeat;
  transform: scale(1.03);
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,14,26,.55) 0%, rgba(10,14,26,.35) 40%, rgba(10,14,26,.85) 100%),
    linear-gradient(90deg, rgba(15,36,150,.45), rgba(10,14,26,.15));
}
.hero-content { position: relative; text-align: center; color: #fff; padding: 90px 22px; }
.hero-logo { width: 120px; height: 120px; margin: 0 auto 22px; border-radius: 50%; background: #fff; box-shadow: 0 10px 40px rgba(0,0,0,.4); }
.hero h1 { font-size: clamp(3rem, 9vw, 6rem); font-weight: 800; text-shadow: 0 4px 24px rgba(0,0,0,.5); }
.hero-tagline { font-size: clamp(1.1rem, 2.4vw, 1.5rem); font-weight: 600; margin: 10px 0 18px; color: #eef1fb; }
.hero-motto { max-width: 640px; margin: 0 auto 34px; font-style: italic; color: #cfd6ec; font-size: 1.02rem; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   SECCIONES GENÉRICAS
   ============================================================ */
.section { padding: 86px 0; }
.section-soft { background: var(--gris); }
.section-dark { background: var(--negro); color: #e7e9ef; }
.section-dark h2 { color: #fff; }
.section-dark .section-lead { color: #aab2ca; }

.prose { max-width: none; }
.prose p { margin-bottom: 18px; font-size: 1.08rem; color: var(--texto-suave); }
.prose strong { color: var(--texto); }
.prose-light p { color: #b9c0d6; }
.prose-light strong { color: #fff; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 48px; }
.stat { text-align: center; padding: 26px 12px; background: var(--gris); border-radius: var(--radio); border-bottom: 4px solid var(--azul); }
.stat-num { display: block; font-family: var(--ff-title); font-size: 2.6rem; font-weight: 800; color: var(--azul); line-height: 1; }
.stat-label { display: block; font-size: .82rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--texto-suave); margin-top: 6px; }

/* ============================================================
   BANDA DE CITA
   ============================================================ */
.quote-band { background: linear-gradient(120deg, var(--azul-osc), var(--azul)); color: #fff; padding: 60px 0; text-align: center; }
.quote-title { font-family: var(--ff-title); text-transform: uppercase; letter-spacing: 3px; font-weight: 700; font-size: 1rem; opacity: .85; margin-bottom: 10px; }
.quote-body { font-family: var(--ff-title); font-size: clamp(1.5rem, 4vw, 2.4rem); font-weight: 700; max-width: 900px; margin: 0 auto; line-height: 1.2; }

/* ============================================================
   VALORES
   ============================================================ */
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; margin-top: 44px; }
.value-card {
  background: var(--negro-2);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--radio);
  padding: 28px 26px;
  border-top: 4px solid var(--azul);
  transition: transform .18s ease, border-color .18s ease;
}
.value-card:hover { transform: translateY(-4px); border-top-color: var(--azul-claro); }
.value-card h3 { color: #fff; margin-bottom: 12px; }
.value-card p { color: #a9b1c9; font-size: .98rem; }

/* ============================================================
   CATEGORÍAS
   ============================================================ */
.cats { list-style: none; display: flex; flex-wrap: wrap; gap: 14px; }
.cats li {
  font-family: var(--ff-title);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 1.15rem;
  padding: 16px 26px;
  border-radius: 999px;
  background: var(--gris);
  color: var(--negro);
  border: 2px solid transparent;
  transition: transform .15s ease;
}
.cats li:hover { transform: translateY(-3px); }
.cat-highlight { background: var(--azul); color: #fff; }

/* ============================================================
   HORARIOS
   ============================================================ */
.schedule { display: flex; flex-direction: column; gap: 14px; max-width: 820px; }
.schedule-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr .9fr;
  align-items: center;
  gap: 12px;
  background: #fff;
  border-radius: var(--radio);
  padding: 20px 26px;
  box-shadow: var(--sombra);
  border-left: 5px solid var(--azul);
}
.schedule-team { font-family: var(--ff-title); font-weight: 700; text-transform: uppercase; font-size: 1.25rem; color: var(--negro); }
.schedule-days { color: var(--texto-suave); }
.schedule-time { font-weight: 700; color: var(--azul); text-align: right; font-size: 1.05rem; }

/* ============================================================
   GALERÍA
   ============================================================ */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 14px;
}
.g-item { overflow: hidden; border-radius: var(--radio); background: var(--gris); }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.g-item:hover img { transform: scale(1.06); }
.g-wide { grid-column: span 2; }
.g-tall { grid-row: span 2; }

/* ============================================================
   CONTACTO
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 34px; align-items: stretch; }
.contact-block { margin-bottom: 26px; }
.contact-block h3 { color: var(--azul-claro); font-size: 1.1rem; letter-spacing: 1.5px; margin-bottom: 6px; }
.contact-block p, .contact-block a { color: #d7dbe8; }
.contact-block a:hover { color: #fff; text-decoration: underline; }
.social { display: flex; gap: 12px; flex-wrap: wrap; }
.social a {
  padding: 8px 18px; border: 1px solid rgba(255,255,255,.25); border-radius: 999px;
  color: #fff; font-weight: 600; font-size: .92rem; transition: background .15s ease, border-color .15s ease;
}
.social a:hover { background: var(--azul); border-color: var(--azul); }
.contact-map { border-radius: var(--radio); overflow: hidden; min-height: 340px; box-shadow: var(--sombra); }
.contact-map iframe { width: 100%; height: 100%; min-height: 340px; border: 0; }
.map-card { height: 100%; min-height: 340px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 12px; padding: 34px; background: linear-gradient(140deg, var(--negro-2), #0a1024); }
.map-card h3 { color: #fff; }
.map-card p { color: #aab2ca; margin-bottom: 8px; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: #06090f; color: #aab2ca; padding: 44px 0 26px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { width: 54px; height: 54px; border-radius: 50%; background: #fff; }
.footer-brand strong { display: block; font-family: var(--ff-title); font-size: 1.3rem; color: #fff; text-transform: uppercase; }
.footer-brand span { font-size: .85rem; color: #8790a8; }
.footer-collab { display: flex; align-items: center; gap: 14px; }
.footer-collab span { font-size: .82rem; text-transform: uppercase; letter-spacing: 1.5px; color: #8790a8; }
.footer-collab img { height: 56px; width: auto; background: #fff; padding: 6px; border-radius: 8px; }
.footer-legal { margin-top: 28px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.08); }
.footer-legal p { font-size: .85rem; color: #6f7791; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(10, 14, 26, .98);
    max-height: 0; overflow: hidden;
    transition: max-height .3s ease;
  }
  .main-nav.open { max-height: 420px; padding: 8px 0 16px; }
  .main-nav a { padding: 14px 22px; border-bottom: 1px solid rgba(255,255,255,.06); }
  .main-nav .btn-nav { margin: 12px 22px 0; text-align: center; }

  .stats { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .g-tall { grid-row: span 1; }
  .schedule-row { grid-template-columns: 1fr; text-align: left; gap: 4px; }
  .schedule-time { text-align: left; }
}

@media (max-width: 480px) {
  .section { padding: 60px 0; }
  .hero { min-height: 92vh; }
  .stats { grid-template-columns: 1fr 1fr; }
  .cats li { font-size: 1rem; padding: 12px 20px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

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