/* =========================================================
   SPGS — Sociedad Palmera y Ganadera de Santander SAS
   Identidad tomada del logo y del membrete:
   verde palma, negro, franjas ámbar/naranja y oliva.
   ========================================================= */

:root {
    --verde: #1b4f00;
    --verde-2: #245f08;
    --verde-hoja: #3b521e;
    --negro: #231f20;
    --ambar: #f2b01e;
    --naranja: #ec8001;
    --naranja-oscuro: #a85a00;
    --oliva: #6a7837;
    --hueso: #ecebea;
    --tinta: #1f2219;
    --gris: #565c4e;
    --linea: #d9dbd3;
    --blanco: #ffffff;

    --titulos: "Zilla Slab", Rockwell, "Roboto Slab", Georgia, serif;
    --texto: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --ancho: 1200px;
    --radio: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--texto);
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--tinta);
    background: var(--blanco);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: var(--verde); }

:focus-visible { outline: 3px solid var(--naranja); outline-offset: 3px; border-radius: 2px; }

.contenedor { width: 100%; max-width: var(--ancho); margin: 0 auto; padding: 0 24px; }

.saltar { position: absolute; left: -9999px; top: 0; background: var(--verde); color: var(--blanco); padding: 10px 16px; z-index: 2000; }
.saltar:focus { left: 12px; top: 12px; }

/* ---------- Tipografía ---------- */
h1, h2, h3 {
    font-family: var(--titulos);
    font-weight: 700;
    line-height: 1.1;
    color: var(--verde);
}
h1 { font-size: clamp(2.4rem, 5.4vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.4rem; line-height: 1.2; }

p + p { margin-top: 1em; }
.texto { max-width: 66ch; }
.intro { font-size: 1.25rem; color: var(--gris); max-width: 58ch; }

/* ---------- Franjas del membrete ---------- */
.franjas {
    height: 14px;
    background:
        linear-gradient(100deg,
            var(--verde) 0 38%,
            var(--negro) 38% 52%,
            var(--ambar) 52% 70%,
            var(--naranja) 70% 86%,
            var(--ambar) 86% 100%);
}

/* ---------- Botones ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 26px;
    border-radius: var(--radio);
    font-family: var(--texto);
    font-size: 1.05rem;
    font-weight: 700;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: background-color .2s, border-color .2s, color .2s;
}
.btn-ambar { background: var(--ambar); color: var(--negro); }
.btn-ambar:hover { background: #ffc43d; }
.btn-verde { background: var(--verde); color: var(--blanco); }
.btn-verde:hover { background: var(--verde-2); }
.btn-borde { border-color: rgba(255,255,255,.6); color: var(--blanco); }
.btn-borde:hover { border-color: var(--blanco); background: rgba(255,255,255,.08); }

.enlace {
    font-weight: 700;
    color: var(--verde);
    text-decoration: underline;
    text-decoration-color: var(--ambar);
    text-decoration-thickness: 3px;
    text-underline-offset: 5px;
}
.enlace:hover { color: var(--naranja-oscuro); }

/* ---------- Encabezado ---------- */
.encabezado {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--blanco);
    box-shadow: 0 1px 0 var(--linea);
}
.encabezado .contenedor {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 84px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--verde);
    flex-shrink: 0;
}
.logo img { width: 64px; height: 64px; }
.logo span {
    font-family: var(--titulos);
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.1;
    max-width: 24ch;
}

.navegacion ul { display: flex; align-items: center; gap: 2px; list-style: none; }
.navegacion a {
    display: block;
    padding: 8px 12px;
    font-weight: 600;
    font-size: 1.02rem;
    color: var(--tinta);
    text-decoration: none;
    border-radius: var(--radio);
}
.navegacion a:hover { color: var(--verde); background: var(--hueso); }
.navegacion a[aria-current="page"] { color: var(--verde); box-shadow: inset 0 -3px 0 var(--naranja); border-radius: 0; }
.navegacion a.nav-contacto { background: var(--verde); color: var(--blanco); margin-left: 8px; padding: 9px 18px; }
.navegacion a.nav-contacto:hover { background: var(--verde-2); }
.navegacion a.nav-contacto[aria-current="page"] { box-shadow: none; background: var(--negro); }

.menu-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; color: var(--verde); }
.menu-toggle svg { width: 30px; height: 30px; display: block; }

/* ---------- Hero de inicio ---------- */
.hero {
    position: relative;
    background: var(--verde);
    color: var(--blanco);
    overflow: hidden;
}
/* bandas diagonales tomadas del membrete */
.hero::before,
.hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    pointer-events: none;
}
.hero::before {
    top: 0;
    height: 120px;
    background: var(--ambar);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 12%);
    z-index: 2;
}
.hero::after {
    top: 0;
    height: 120px;
    background: var(--naranja);
    clip-path: polygon(0 0, 100% 0, 100% 62%, 0 4%);
    z-index: 3;
}
.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    min-height: min(90vh, 780px);
}
.hero-texto {
    position: relative;
    z-index: 4;
    padding: clamp(120px, 12vw, 160px) clamp(24px, 4vw, 64px) clamp(56px, 6vw, 80px) 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.hero h1 { color: var(--blanco); margin-bottom: 22px; }
.hero-desc { font-size: 1.25rem; color: rgba(255,255,255,.86); max-width: 50ch; margin-bottom: 34px; }
.hero-botones { display: flex; flex-wrap: wrap; gap: 14px; }
.ficha {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 28px;
    margin-top: 44px;
    padding-top: 22px;
    border-top: 1px solid rgba(255,255,255,.22);
    color: rgba(255,255,255,.86);
    font-weight: 600;
}
.ficha li { display: flex; align-items: center; gap: 10px; }
.ficha li::before { content: ""; width: 10px; height: 10px; background: var(--ambar); border-radius: 50%; flex-shrink: 0; }

.hero-foto { position: relative; margin-right: calc((100vw - min(100vw, var(--ancho))) / -2 - 24px); }
.hero-foto img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 60%;
}
.hero-foto img.hero-sello {
    position: absolute;
    inset: auto;
    object-fit: contain;
    left: -70px;
    bottom: 56px;
    width: 150px;
    height: 150px;
    z-index: 5;
    filter: drop-shadow(0 8px 18px rgba(0,0,0,.35));
}

/* ---------- Secciones ---------- */
.seccion { padding: clamp(64px, 9vw, 112px) 0; }
.seccion-hueso { background: var(--hueso); }
.encabezado-seccion { margin-bottom: 44px; max-width: 780px; }
.encabezado-seccion h2 { margin-bottom: 14px; }

/* ---------- Dos líneas (inicio) ---------- */
.lineas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.linea {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 520px;
    padding: 32px;
    border-radius: var(--radio);
    overflow: hidden;
    color: var(--blanco);
    text-decoration: none;
    isolation: isolate;
}
.linea img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .5s; }
.linea::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(20,40,5,0) 25%, rgba(20,40,5,.75) 55%, rgba(20,40,5,.95) 100%);
}
.linea:hover img { transform: scale(1.03); }
.linea-tipo { font-weight: 700; color: var(--ambar); margin-bottom: 6px; }
.linea h3 { color: var(--blanco); font-size: clamp(1.7rem, 2.6vw, 2.2rem); margin-bottom: 10px; }
.linea p { color: rgba(255,255,255,.9); max-width: 44ch; }
.linea .ver { margin-top: 18px; font-weight: 700; text-decoration: underline; text-decoration-color: var(--ambar); text-decoration-thickness: 3px; text-underline-offset: 5px; }

.compromiso {
    margin-top: 28px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 24px;
    align-items: center;
    background: var(--hueso);
    border-left: 6px solid var(--ambar);
    padding: 28px 32px;
    border-radius: var(--radio);
}
.compromiso h3 { font-size: 1.5rem; }
.compromiso p { color: var(--gris); }

/* ---------- Franja de foto con texto ---------- */
.banda-foto {
    position: relative;
    color: var(--blanco);
    background: var(--negro);
    overflow: hidden;
}
.banda-foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.banda-foto::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(20,22,15,.92) 0%, rgba(20,22,15,.6) 45%, rgba(20,22,15,0) 80%); }
.banda-foto .contenedor { position: relative; z-index: 2; padding-top: clamp(96px, 14vw, 180px); padding-bottom: clamp(56px, 7vw, 88px); }
.banda-foto h2 { color: var(--blanco); max-width: 20ch; margin-bottom: 14px; }
.banda-foto p { font-size: 1.2rem; max-width: 52ch; color: rgba(255,255,255,.92); }

/* ---------- Bloque texto + foto ---------- */
.dividido {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(32px, 6vw, 80px);
    align-items: center;
}
.dividido h2 { margin-bottom: 20px; }
.dividido figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radio); }
.dividido figcaption { font-size: .95rem; color: var(--gris); margin-top: 10px; }
.dividido .btn { margin-top: 28px; }

/* ---------- Listas de ítems (rejilla) ---------- */
.items {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 36px 40px;
}
.items li { border-top: 3px solid var(--verde); padding-top: 18px; }
.seccion-hueso .items li { border-top-color: var(--oliva); }
.items h3 { font-size: 1.3rem; margin-bottom: 8px; }
.items p { color: var(--gris); }

.lista-check { list-style: none; margin-top: 20px; }
.lista-check li {
    position: relative;
    padding: 11px 0 11px 36px;
    border-bottom: 1px solid var(--linea);
    font-weight: 500;
}
.lista-check li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 19px;
    width: 15px;
    height: 8px;
    border-left: 3px solid var(--naranja);
    border-bottom: 3px solid var(--naranja);
    transform: rotate(-45deg);
}

/* ---------- Fotos en fila ---------- */
.trio { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 14px; margin-top: 48px; }
.trio img { width: 100%; height: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radio); }
.trio figure:first-child img { aspect-ratio: auto; }
.trio figcaption { font-size: .95rem; color: var(--gris); margin-top: 8px; }

/* ---------- Banner interno ---------- */
.pagina-hero {
    position: relative;
    background: var(--verde);
    color: var(--blanco);
    overflow: hidden;
    padding: clamp(88px, 11vw, 140px) 0 clamp(48px, 6vw, 72px);
}
.pagina-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .4; }
.pagina-hero::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 14px;
    background: linear-gradient(100deg, var(--negro) 0 30%, var(--ambar) 30% 62%, var(--naranja) 62% 100%);
}
.pagina-hero .contenedor { position: relative; }
.pagina-hero h1 { color: var(--blanco); margin-bottom: 14px; max-width: 18ch; }
.pagina-hero p { font-size: 1.25rem; color: rgba(255,255,255,.9); max-width: 56ch; }

/* ---------- Misión / visión ---------- */
.mv { display: grid; grid-template-columns: 1fr 1fr 0.8fr; gap: 0; background: var(--verde); color: var(--blanco); border-radius: var(--radio); overflow: hidden; }
.mv > div { padding: clamp(28px, 4vw, 48px); }
.mv > div + div { border-left: 1px solid rgba(255,255,255,.16); }
.mv h3 { color: var(--ambar); font-size: 1.6rem; margin-bottom: 14px; }
.mv p { color: rgba(255,255,255,.9); }
.mv ul { list-style: none; }
.mv li { padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,.14); font-weight: 600; }

/* ---------- Tabla de datos ---------- */
.tabla-datos { width: 100%; max-width: 820px; border-collapse: collapse; }
.tabla-datos th, .tabla-datos td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--linea); vertical-align: top; }
.tabla-datos th { width: 38%; color: var(--gris); font-weight: 600; }
.tabla-datos td { font-weight: 600; }

/* ---------- Galería ---------- */
.galeria {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 230px;
    grid-auto-flow: dense;
    gap: 12px;
}
.galeria li:nth-child(1), .galeria li:nth-child(6) { grid-row: span 2; }
.galeria li:nth-child(3), .galeria li:nth-child(8) { grid-column: span 2; }
.galeria button { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: var(--linea); cursor: zoom-in; border-radius: var(--radio); overflow: hidden; }
.galeria img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.galeria button:hover img { transform: scale(1.04); }

.visor { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 92vh; margin: auto; }
.visor::backdrop { background: rgba(15, 28, 5, .92); }
.visor img { max-width: 94vw; max-height: 84vh; width: auto; border-radius: var(--radio); }
.visor p { color: var(--blanco); text-align: center; margin-top: 10px; }
.visor-cerrar { position: fixed; top: 16px; right: 16px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--blanco); color: var(--verde); font-size: 1.6rem; line-height: 1; cursor: pointer; }

/* ---------- Blog ---------- */
.filtros { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.filtro-btn {
    font: inherit;
    font-weight: 600;
    font-size: 1rem;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1.5px solid var(--linea);
    background: var(--blanco);
    color: var(--tinta);
    cursor: pointer;
}
.filtro-btn:hover { border-color: var(--verde); }
.filtro-btn[aria-pressed="true"] { background: var(--verde); border-color: var(--verde); color: var(--blanco); }

.destacado {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: clamp(28px, 4vw, 56px);
    align-items: center;
    margin-bottom: 64px;
}
.destacado img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 15%; border-radius: var(--radio); }
.destacado h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin: 6px 0 14px; }
.destacado h2 a { color: inherit; text-decoration: none; }
.destacado h2 a:hover { text-decoration: underline; text-decoration-color: var(--ambar); }
.destacado .btn { margin-top: 24px; }

.categoria { display: inline-block; font-weight: 700; color: var(--naranja-oscuro); }
.fecha { color: var(--gris); font-size: .98rem; }

.proximas-titulo { font-size: 1.6rem; margin-bottom: 8px; }
.proximas { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; margin-top: 20px; }
.proximas li { padding: 18px 0; border-top: 1px solid var(--linea); }
.proximas h3 { font-family: var(--texto); font-size: 1.15rem; font-weight: 700; color: var(--tinta); margin: 4px 0 4px; }
.proximas p { color: var(--gris); font-size: 1rem; }
.sin-resultados { color: var(--gris); padding: 20px 0; }

/* ---------- Artículo ---------- */
.articulo-hero { background: var(--hueso); padding: clamp(56px, 8vw, 96px) 0 40px; }
.articulo-hero .contenedor, .articulo .contenedor { max-width: 820px; }
.articulo-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); margin: 10px 0 18px; }
.articulo-portada { max-width: 1040px; margin: 0 auto; padding: 0 24px; transform: translateY(-1px); }
.articulo-portada img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radio); }
.articulo { padding: 48px 0 clamp(56px, 8vw, 96px); }
.contenido-articulo { font-size: 1.2rem; line-height: 1.7; }
.contenido-articulo .entradilla { font-size: 1.35rem; color: var(--verde-hoja); font-weight: 500; }
.contenido-articulo h2 { font-size: 1.8rem; margin: 44px 0 14px; }
.contenido-articulo ul { margin: 14px 0 0 1.2em; }
.contenido-articulo li { margin-bottom: 8px; }
.contenido-articulo li::marker { color: var(--naranja); }
.contenido-articulo blockquote {
    margin: 40px 0;
    padding: 6px 0 6px 28px;
    border-left: 6px solid var(--ambar);
    font-family: var(--titulos);
    font-size: 1.55rem;
    line-height: 1.35;
    color: var(--verde);
}
.compartir { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--linea); }
.compartir strong { margin-right: 6px; }
.compartir a { padding: 7px 14px; border: 1.5px solid var(--linea); border-radius: 999px; text-decoration: none; color: var(--tinta); font-weight: 600; font-size: 1rem; }
.compartir a:hover { border-color: var(--verde); color: var(--verde); }
.volver { margin-top: 36px; }

/* ---------- Contacto ---------- */
.contacto { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.contacto h2 { font-size: 1.9rem; margin-bottom: 14px; }
.datos { list-style: none; margin-top: 28px; }
.datos li { display: grid; grid-template-columns: 42px 1fr; gap: 14px; padding: 18px 0; border-top: 1px solid var(--linea); }
.datos li:last-child { border-bottom: 1px solid var(--linea); }
.datos svg { width: 26px; height: 26px; color: var(--verde); margin-top: 3px; }
.datos h3 { font-family: var(--texto); font-size: 1rem; font-weight: 700; color: var(--tinta); }
.datos p { color: var(--gris); }
.datos a { color: var(--tinta); font-weight: 600; }
.mapa { margin-top: 32px; border-radius: var(--radio); overflow: hidden; border: 1px solid var(--linea); }
.mapa iframe { display: block; width: 100%; height: 320px; border: 0; }

.formulario { background: var(--hueso); border-radius: var(--radio); padding: clamp(24px, 4vw, 44px); border-top: 6px solid var(--verde); }
.campo { margin-bottom: 20px; }
.campo label { display: block; font-weight: 600; margin-bottom: 6px; }
.campo input, .campo select, .campo textarea {
    width: 100%;
    font: inherit;
    font-size: 1.05rem;
    padding: 12px 14px;
    border: 1.5px solid #bfc3b5;
    border-radius: var(--radio);
    background: var(--blanco);
    color: var(--tinta);
}
.campo input:focus, .campo select:focus, .campo textarea:focus { outline: none; border-color: var(--verde); box-shadow: 0 0 0 3px rgba(242,176,30,.45); }
.campo textarea { resize: vertical; min-height: 140px; }
.campo-oculto { position: absolute; left: -9999px; }
.nota-form { font-size: .95rem; color: var(--gris); margin-top: 14px; }
.estado-form { margin-top: 16px; padding: 12px 16px; border-radius: var(--radio); font-weight: 600; }
.estado-form:empty { display: none; }
.estado-form.ok { background: #e1efd3; color: #1f4a07; }
.estado-form.error { background: #fde4cc; color: #7a3a00; }

/* ---------- Llamado a la acción ---------- */
.cta { background: var(--negro); color: var(--blanco); position: relative; overflow: hidden; }
.cta::before {
    content: "";
    position: absolute;
    right: -10%;
    top: 0;
    bottom: 0;
    width: 45%;
    background: linear-gradient(100deg, transparent 0 18%, var(--ambar) 18% 46%, var(--naranja) 46% 100%);
    clip-path: polygon(30% 0, 100% 0, 100% 100%, 0 100%);
    opacity: .95;
}
.cta .contenedor {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 28px;
    padding-top: clamp(56px, 7vw, 88px);
    padding-bottom: clamp(56px, 7vw, 88px);
}
.cta h2 { color: var(--blanco); max-width: 22ch; }
.cta p { color: rgba(255,255,255,.85); font-size: 1.2rem; margin-top: 10px; max-width: 46ch; }

/* ---------- Pie ---------- */
.pie { background: var(--verde); color: rgba(255,255,255,.84); }
.pie .contenedor.pie-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; padding-top: 64px; padding-bottom: 48px; }
.pie-marca { display: flex; gap: 18px; align-items: flex-start; }
.pie-marca img { width: 96px; height: 96px; flex-shrink: 0; }
.pie-marca strong { display: block; font-family: var(--titulos); font-size: 1.25rem; color: var(--blanco); line-height: 1.2; margin-bottom: 8px; }
.pie h2 { font-family: var(--texto); font-size: 1rem; font-weight: 700; color: var(--ambar); margin-bottom: 12px; }
.pie ul { list-style: none; }
.pie li + li { margin-top: 6px; }
.pie a { color: var(--blanco); text-decoration: none; }
.pie a:hover { text-decoration: underline; text-decoration-color: var(--ambar); }
.pie-inferior { background: var(--oliva); color: var(--blanco); font-size: .95rem; padding: 16px 0; }

/* ---------- WhatsApp flotante ---------- */
.whatsapp {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 900;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px 12px 14px;
    border-radius: 999px;
    background: #25d366;
    color: #0b3d1f;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(0,0,0,.25);
}
.whatsapp svg { width: 26px; height: 26px; }
.whatsapp:hover { background: #3be07a; }

/* ---------- 404 ---------- */
.pagina-404 { min-height: 60vh; display: flex; align-items: center; }
.pagina-404 h1 { margin-bottom: 16px; }
.pagina-404 .btn { margin-top: 28px; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1180px) {
    .menu-toggle { display: block; }
    .navegacion {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--blanco);
        box-shadow: 0 14px 24px rgba(0,0,0,.12);
        display: none;
    }
    .navegacion.abierto { display: block; }
    .navegacion ul { flex-direction: column; align-items: stretch; padding: 8px 16px 18px; gap: 0; }
    .navegacion a { padding: 14px 8px; border-bottom: 1px solid var(--linea); border-radius: 0; }
    .navegacion a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--naranja); padding-left: 16px; }
    .navegacion a.nav-contacto { margin: 14px 0 0; text-align: center; border-radius: var(--radio); border-bottom: 0; }
    .items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .galeria { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .mv { grid-template-columns: 1fr 1fr; }
    .mv > div:last-child { grid-column: span 2; border-left: 0; border-top: 1px solid rgba(255,255,255,.16); }
}

@media (max-width: 860px) {
    .hero-grid { grid-template-columns: 1fr; min-height: 0; }
    .hero-foto { order: -1; height: 52vh; min-height: 300px; margin: 0 -24px; }
    .hero-texto { padding: 48px 0 56px; }
    .hero-foto img.hero-sello { left: auto; right: 16px; bottom: 16px; width: 96px; height: 96px; }
    .hero::before, .hero::after { height: 60px; }

    .lineas, .dividido, .destacado, .contacto { grid-template-columns: 1fr; }
    .linea { min-height: 420px; }
    .compromiso { grid-template-columns: 1fr; gap: 8px; }
    .dividido figure img { aspect-ratio: 4 / 3; }
    .trio { grid-template-columns: 1fr 1fr; }
    .trio figure:first-child { grid-column: span 2; }
    .trio figure:first-child img { aspect-ratio: 16 / 10; }
    .proximas { grid-template-columns: 1fr; }
    .pie .contenedor.pie-grid { grid-template-columns: 1fr; gap: 32px; }
    .cta::before { width: 60%; opacity: .35; }
}

@media (max-width: 560px) {
    body { font-size: 1.0625rem; }
    .contenedor { padding: 0 16px; }
    .hero-foto { margin: 0 -16px; }
    .logo img { width: 54px; height: 54px; }
    .logo span { font-size: .95rem; }
    .items { grid-template-columns: 1fr; }
    .galeria { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 170px; }
    .mv { grid-template-columns: 1fr; }
    .mv > div + div { border-left: 0; border-top: 1px solid rgba(255,255,255,.16); }
    .mv > div:last-child { grid-column: auto; }
    .hero-botones .btn { width: 100%; }
    .tabla-datos th, .tabla-datos td { display: block; width: 100%; padding: 4px 0; border: 0; }
    .tabla-datos tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--linea); }
    .whatsapp { padding: 14px; right: 16px; bottom: 16px; }
    .whatsapp span { display: none; }
}

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