/* ============================================================
   YBOA COSTA RICA 2026 - Estilos Globales
   ============================================================ */

:root {
  --rojo:       #e8141e;
  --rojo-dark:  #c0101a;
  --azul:       #0a0f1e;
  --azul-mid:   #141c35;
  --azul-light: #1e2d5a;
  --blanco:     #ffffff;
  --gris-claro: #f4f6fa;
  --gris:       #8a95a8;
  --texto:      #1a1f2e;
  --sombra:     0 4px 24px rgba(10,15,30,0.13);
  --radio:      10px;
  --trans:      0.25s ease;
}

/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: var(--gris-claro);
  color: var(--texto);
  line-height: 1.6;
  min-height: 100vh;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ── Utilidades ─────────────────────────────────────────── */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}
.section-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--azul);
  text-align: center;
  margin-bottom: 8px;
}
.section-subtitle {
  text-align: center;
  color: var(--gris);
  font-size: 1rem;
  margin-bottom: 40px;
}
.section-title span { color: var(--rojo); }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--trans);
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--rojo);
  color: var(--blanco);
  border-color: var(--rojo);
}
.btn-primary:hover {
  background: var(--rojo-dark);
  border-color: var(--rojo-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(232,20,30,0.35);
}
.btn-outline {
  background: transparent;
  color: var(--blanco);
  border-color: rgba(255,255,255,0.6);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--blanco);
  transform: translateY(-2px);
}
.badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.badge-red   { background: var(--rojo);  color: #fff; }
.badge-blue  { background: var(--azul);  color: #fff; }
.badge-gold  { background: #f5a623;      color: #fff; }

/* ── HEADER / NAV ───────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--azul);
  box-shadow: 0 2px 20px rgba(0,0,0,0.4);
}
.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 70px;
  max-width: 1140px;
  margin: 0 auto;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--blanco);
  font-weight: 800;
}
.nav-logo-box {
  width: 44px;
  height: 44px;
  background: var(--rojo);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: -1px;
  flex-shrink: 0;
}
.nav-brand-text { line-height: 1.2; }
.nav-brand-text .line1 { font-size: 1.05rem; font-weight: 900; letter-spacing: 0.02em; }
.nav-brand-text .line2 { font-size: 0.7rem; font-weight: 500; color: rgba(255,255,255,0.65); letter-spacing: 0.08em; text-transform: uppercase; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all var(--trans);
  letter-spacing: 0.02em;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--blanco);
  background: rgba(255,255,255,0.1);
}
.nav-links a.active {
  background: var(--rojo);
  color: var(--blanco);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  transition: background var(--trans);
}
.nav-toggle:hover { background: rgba(255,255,255,0.1); }
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--blanco);
  border-radius: 2px;
  transition: all var(--trans);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── FOOTER ─────────────────────────────────────────────── */
.site-footer {
  background: var(--azul);
  color: rgba(255,255,255,0.75);
  padding: 50px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .nav-brand { margin-bottom: 14px; }
.footer-brand p { font-size: 0.88rem; line-height: 1.7; color: rgba(255,255,255,0.6); }
.footer-col h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.4);
  margin-bottom: 14px;
}
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  transition: color var(--trans);
}
.footer-col ul li a:hover { color: var(--rojo); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}
.footer-bottom span { color: var(--rojo); }

/* ── CARDS ──────────────────────────────────────────────── */
.card {
  background: var(--blanco);
  border-radius: var(--radio);
  box-shadow: var(--sombra);
  overflow: hidden;
}

/* ── Responsive Nav ─────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--azul-mid);
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    gap: 4px;
    display: none;
    border-top: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 12px 30px rgba(0,0,0,0.3);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 16px; border-radius: 8px; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
