/* ==========================================================
   BANBAS TRAVEL - Hoja de estilos principal
   1. Variables  2. Base  3. Cabecera  4. Portada  5. Secciones
   6. Tarjetas   7. Pie    8. Responsive
   ========================================================== */

/* 1. VARIABLES: cambia aquí los colores y se actualiza toda la web */
:root {
  --marino: #0b2545;
  --marino-claro: #13315c;
  --turquesa: #1fb5b0;
  --turquesa-osc: #0e8a86;
  --blanco: #ffffff;
  --niebla: #f3f8fa;
  --texto: #1d2b3a;
  --texto-suave: #52606d;
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --ancho: 1180px;
}

/* 2. BASE */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); color: var(--texto); background: var(--blanco); line-height: 1.65; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--turquesa-osc); }
h1, h2, h3 { font-family: var(--serif); color: var(--marino); line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.contenedor { width: min(100% - 2.5rem, var(--ancho)); margin-inline: auto; }
.saltar { position: absolute; left: -999px; background: var(--marino); color: #fff; padding: .6rem 1rem; z-index: 200; }
.saltar:focus { left: 1rem; top: 1rem; }
:focus-visible { outline: 3px solid var(--turquesa); outline-offset: 3px; }

.boton { display: inline-block; background: var(--turquesa); color: var(--marino); font-weight: 700;
  padding: .85rem 1.6rem; border-radius: 999px; text-decoration: none; transition: background .2s; }
.boton:hover { background: #fff; }

/* 3. CABECERA Y MENÚ */
.cabecera { position: sticky; top: 0; z-index: 100; background: var(--blanco); border-bottom: 1px solid #e2ebef; transition: box-shadow .2s; }
.cabecera.sombra { box-shadow: 0 4px 18px rgba(11,37,69,.1); }
.cabecera .contenedor { display: flex; align-items: center; justify-content: space-between; min-height: 72px; }
.logo { font-family: var(--serif); font-size: 1.5rem; font-weight: 700; color: var(--marino); text-decoration: none; letter-spacing: .02em; }
.logo span { color: var(--turquesa-osc); }
.menu { display: flex; align-items: center; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.menu a { color: var(--marino); text-decoration: none; font-weight: 600; font-size: .98rem; padding: .4rem 0; border-bottom: 2px solid transparent; }
.menu a:hover, .menu a[aria-current="page"] { border-bottom-color: var(--turquesa); }
.menu .buscar { background: var(--marino); color: #fff; padding: .5rem 1.1rem; border-radius: 999px; border: 0; }
.menu .buscar:hover { background: var(--turquesa-osc); }
.hamburguesa { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; }
.hamburguesa span { display: block; width: 26px; height: 3px; background: var(--marino); margin: 5px 0; border-radius: 2px; transition: transform .25s, opacity .25s; }
.hamburguesa[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburguesa[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburguesa[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* 4. PORTADA (HERO)
   La foto va en img/portada.jpg. Si aún no existe, se ve el degradado. */
.portada { position: relative; min-height: min(88vh, 760px); display: flex; align-items: flex-end; color: #fff;
  background:
    linear-gradient(180deg, rgba(11,37,69,.15) 0%, rgba(11,37,69,.82) 100%),
    url("../img/portada.jpg") center / cover no-repeat,
    linear-gradient(135deg, var(--marino) 0%, var(--turquesa-osc) 100%); }
.portada .contenedor { padding-block: 4rem 4.5rem; }
.portada h1 { color: #fff; max-width: 14ch; text-shadow: 0 2px 20px rgba(0,0,0,.25); }
.portada p { font-size: 1.2rem; max-width: 46ch; margin-bottom: 1.8rem; }
.credito { position: absolute; right: 1rem; bottom: .6rem; font-size: .75rem; opacity: .75; }

/* 5. SECCIONES */
.seccion { padding-block: clamp(3rem, 7vw, 5.5rem); }
.cabecera-seccion { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; }
.cabecera-seccion h2 { margin: 0; }
.cabecera-seccion p { color: var(--texto-suave); margin: .3rem 0 0; max-width: 52ch; }

/* 6. TARJETAS ESTILO REVISTA: una grande + cuatro pequeñas */
.revista { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.nota { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.nota .foto { aspect-ratio: 4 / 3; border-radius: 6px; overflow: hidden; margin-bottom: .9rem;
  background: linear-gradient(135deg, var(--marino-claro), var(--turquesa)); }
.nota .foto img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.nota:hover .foto img { transform: scale(1.04); }
.nota h3 { margin-bottom: .3rem; }
.nota p { color: var(--texto-suave); font-size: .95rem; margin: 0; }
.nota.grande { grid-column: span 2; grid-row: span 2; }
.nota.grande .foto { aspect-ratio: 16 / 11; }
.nota.grande h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.nota.grande p { font-size: 1.05rem; }

/* Banda de frase */
.banda { background: var(--marino); color: #fff; text-align: center; }
.banda p { font-family: var(--serif); font-size: clamp(1.4rem, 3vw, 2rem); max-width: 28ch; margin: 0 auto 1.5rem; }

/* 7. PIE DE PÁGINA */
.pie { background: var(--marino); color: #cfe0ea; padding-block: 3.5rem 1.5rem; }
.pie .columnas { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; }
.pie h3 { color: #fff; font-family: var(--sans); font-size: 1rem; margin-bottom: .8rem; }
.pie ul { list-style: none; margin: 0; padding: 0; }
.pie li { margin-bottom: .45rem; }
.pie a { color: #cfe0ea; text-decoration: none; }
.pie a:hover { color: var(--turquesa); text-decoration: underline; }
.pie .logo { color: #fff; display: inline-block; margin-bottom: .6rem; }
.pie .legal { border-top: 1px solid rgba(255,255,255,.15); margin-top: 2.5rem; padding-top: 1.2rem; font-size: .85rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }

/* 8. RESPONSIVE */
@media (max-width: 960px) {
  .revista { grid-template-columns: repeat(2, 1fr); }
  .pie .columnas { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .hamburguesa { display: block; }
  .menu { position: absolute; top: 100%; left: 0; right: 0; background: var(--blanco); flex-direction: column; align-items: stretch;
    gap: 0; padding: .5rem 1.25rem 1.25rem; border-bottom: 1px solid #e2ebef; display: none; }
  .menu.abierto { display: flex; }
  .menu li a { display: block; padding: .85rem 0; border-bottom: 1px solid #eef3f6; }
  .menu .buscar { text-align: center; margin-top: .8rem; }
}
@media (max-width: 560px) {
  .revista { grid-template-columns: 1fr; }
  .nota.grande { grid-column: auto; grid-row: auto; }
  .pie .columnas { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
