/* =========================================================
   Tema Náutico Claro — Regata del Maule
   - Paleta clara y moderna
   - Más aire/espaciado
   - Footer fijo al fondo
   - Botones del header en amarillo (var(--accent))
   ========================================================= */

/* ---------- Variables de color ---------- */
:root {
  --brand: #0077b6;         /* azul náutico */
  --brand-2: #90e0ef;       /* celeste agua */
  --brand-dark: #023e8a;    /* azul profundo */
  --accent: #ffd166;        /* arena/dorado */
  --text: #0a2a43;          /* texto principal (azul marino) */
  --muted: #355070;         /* texto secundario */
  --bg: #f6fbff;            /* fondo muy claro */
  --card: #ffffff;          /* tarjetas/bloques */
  --border: #d6e7f3;        /* bordes sutiles */
}

/* ---------- Reset y tipografía ---------- */
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100%;
  display: flex;
  flex-direction: column; /* para que el footer quede abajo */
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; border: 0; }

/* ---------- Contenedores y layout ---------- */
main { flex: 1; } /* empuja el footer hacia abajo */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem; /* más aire lateral y vertical */
}
section { padding: 3rem 0; }

/* ---------- Encabezado ---------- */
.site-header {
  background: var(--brand);
  color: #fff;
  position: sticky; top: 0; z-index: 20;
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: .8rem 0;
}
.brand {
  display: flex; align-items: center; gap: .6rem;
  color: #fff; text-decoration: none; font-weight: 700; font-size: 1.1rem;
}
.site-nav { display: flex; gap: 1.2rem; align-items: center; }
.site-nav a {
  color: #fff; text-decoration: none; font-weight: 600;
  padding: .35rem .6rem; border-radius: 8px; transition: background .15s ease;
}
.site-nav a:hover { background: rgba(255,255,255,.15); }
.nav-toggle {
  display: none; background: none; border: 0; color: #fff;
  font-size: 1.5rem; padding: .25rem .5rem; border-radius: 8px;
}

/* ------ Botones del header en AMARILLO ------ */
/* Aumentamos especificidad y usamos !important para vencer la regla de enlaces blancos del header */
.site-header .site-nav a.btn {
  border: 2px solid var(--accent) !important;
  color: var(--accent) !important;
  background: transparent !important;
  padding: 0.55rem 1rem;
  border-radius: 10px;
  font-weight: 700;
}
.site-header .site-nav a.btn:hover {
  background: var(--accent) !important;
  color: var(--text) !important;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--brand-2) 0%, var(--brand) 100%);
  color: #fff; text-align: center; padding: 5rem 1.5rem;
}
.hero-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 3rem; max-width: 1100px; margin: 0 auto;
}
.hero h1 { font-size: 2.8rem; margin: 0 0 1rem; }
.hero p { font-size: 1.08rem; max-width: 680px; margin: 0 auto 1.4rem; }

/* ---------- Botones ---------- */
.btn {
  display: inline-block; padding: .75rem 1.6rem; border-radius: 10px;
  font-weight: 700; text-decoration: none; cursor: pointer; border: 0;
  transition: transform .12s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--accent); color: var(--text); }
.btn.primary:hover { background: #ffe083; }
.btn.outline { background: transparent; border: 2px solid var(--brand); color: var(--brand); }
.btn.outline:hover { background: var(--brand); color: #fff; }
.btn.small { padding: .55rem 1.1rem; font-size: .95rem; }
.link { color: var(--brand); font-weight: 700; text-decoration: none; }
.link:hover { text-decoration: underline; }

/* ---------- Bloques destacados ---------- */
.highlights h2 { color: var(--brand-dark); font-size: 1.8rem; margin: 2rem 0 .5rem; }
.highlights p { color: var(--text); margin: 0 0 1rem; }

/* ---------- Tarjetas y tablas ---------- */
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.table-wrapper { overflow: auto; border: 1px solid var(--border); border-radius: 12px; }
.table-wrapper table { width: 100%; border-collapse: collapse; }
.table-wrapper th, .table-wrapper td { padding: .8rem .9rem; border-bottom: 1px solid var(--border); }
.table-wrapper thead { background: #eef6ff; }

/* ---------- Sección Ubicación / Lugares ---------- */
.grid-places {
  display: grid; gap: 2rem; margin-top: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.place-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  padding: 1rem; text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,.05);
  transition: transform .2s ease, box-shadow .2s ease;
}
.place-card:hover { transform: translateY(-5px); box-shadow: 0 6px 14px rgba(0,0,0,.1); }
.place-card img {
  width: 100%; height: 200px; object-fit: cover; border-radius: 10px; margin-bottom: .6rem;
}

/* ---------- Footer (pegado abajo) ---------- */
.site-footer {
  margin-top: auto;
  background: var(--brand-dark);
  color: #fff; text-align: center; padding: 2rem 1rem;
}
.footer-inner { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; justify-content: center; }
.footer-nav { display: flex; gap: 1rem; }
.footer-nav a { color: #cfe9ff; text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }

/* ---------- Enlaces generales ---------- */
a { color: var(--brand-dark); }
p a { text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero h1 { font-size: 2.3rem; }
}

@media (max-width: 860px) {
  /* Menú móvil */
  .nav-toggle { display: inline-block; }
  .site-nav {
    display: none; position: absolute; right: 1.5rem; top: 60px;
    background: #0b5fa8; border: 1px solid rgba(255,255,255,.25);
    padding: .6rem; border-radius: 12px; flex-direction: column; min-width: 210px;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: .5rem .6rem; border-radius: 8px; }
  .hero-inner { gap: 2rem; }
  .hero img { max-width: 520px; margin: 0 auto; }
}

/* ---------- Utilidades ---------- */
.muted { color: var(--muted); }
.center { text-align: center; }
.hide { display: none !important; }
