/* Portada de Cantabria Infinita — mobile-first */

/* Fraunces auto-alojada (solo se carga en la portada) */
@font-face {
    font-family: 'Fraunces';
    src: url('../fonts/fraunces-var.woff2') format('woff2-variations');
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Fraunces';
    src: url('../fonts/fraunces-italic-var.woff2') format('woff2-variations');
    font-weight: 400 700;
    font-style: italic;
    font-display: swap;
}

/* Solo portada (este CSS no se carga en otras páginas):
   libera el contenedor de GeneratePress para que las secciones
   ocupen todo el ancho, y oculta la imagen destacada que GP
   pinta como cabecera de página. */
#page.site {
    max-width: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
}
#page .site-content {
    max-width: 100%;
    width: 100%;
    padding: 0;
}
.featured-image.page-header-image {
    display: none;
}

.portada {
    /* #content de GP es flex: sin esto, la portada se encoge al ancho de su contenido */
    width: 100%;
    /* Paleta del territorio: prado, mar, arena */
    --c-prado: #1e5b3e;
    --c-mar: #123a4f;
    --c-arena: #f4efe6;
    --c-carbon: #22303a;
    --c-boton: #27ae60;
    --c-boton-hover: #1e8449;
    color: var(--c-carbon);
}
.portada h1,
.portada h2 {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 600;
    line-height: 1.15;
}
.portada em {
    font-style: italic;
}

/* Botones */
.boton-primario,
.boton-fantasma,
.boton-secundario {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 26px;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.boton-primario {
    background: var(--c-boton);
    color: #fff;
}
.boton-primario:hover,
.boton-primario:focus {
    background: var(--c-boton-hover);
    color: #fff;
}
.boton-fantasma {
    border: 2px solid rgba(255, 255, 255, 0.85);
    color: #fff;
}
.boton-fantasma:hover,
.boton-fantasma:focus {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}
.boton-secundario {
    border: 2px solid var(--c-boton);
    color: var(--c-boton-hover);
    background: transparent;
}
.boton-secundario:hover,
.boton-secundario:focus {
    background: var(--c-boton);
    color: #fff;
}

/* Eyebrow común */
.portada-eyebrow {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--c-prado);
    margin: 0 0 10px;
}

/* ---- Hero ---- */
.portada-hero {
    position: relative;
    min-height: 82vh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: var(--c-mar);
}
.portada-hero-imagen {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.portada-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(18, 58, 79, 0.85) 0%, rgba(18, 58, 79, 0.35) 45%, rgba(18, 58, 79, 0.05) 75%);
}
.portada-hero-contenido {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 48px 20px 90px;
    color: #fff;
}
.portada-hero .portada-eyebrow {
    color: #ffd98a;
}
.portada-hero h1 {
    font-size: clamp(2.3rem, 6.5vw, 4.2rem);
    color: #fff;
    margin: 0 0 16px;
    max-width: 14ch;
}
.portada-hero h1 em {
    color: #ffd98a;
}
.portada-hero-sub {
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.6;
    max-width: 52ch;
    margin: 0 0 28px;
}
.portada-hero-acciones {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
/* La ola: firma de la portada */
.portada-ola {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    width: 100%;
    height: 42px;
    z-index: 3;
    display: block;
}
.portada-ola path {
    fill: #fff;
}

/* Entrada suave del hero */
@media (prefers-reduced-motion: no-preference) {
    .portada-hero-contenido > * {
        opacity: 0;
        transform: translateY(14px);
        animation: portada-sube 0.7s ease forwards;
    }
    .portada-hero-contenido > *:nth-child(2) { animation-delay: 0.12s; }
    .portada-hero-contenido > *:nth-child(3) { animation-delay: 0.24s; }
    .portada-hero-contenido > *:nth-child(4) { animation-delay: 0.36s; }
}
@keyframes portada-sube {
    to {
        opacity: 1;
        transform: none;
    }
}

/* ---- Secciones ---- */
.portada-seccion {
    padding: 56px 0;
}
.portada-interior {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}
.portada-seccion h2 {
    font-size: clamp(1.7rem, 3.4vw, 2.3rem);
    margin: 0 0 12px;
}
.portada-seccion-sub {
    font-size: 17px;
    line-height: 1.6;
    color: #5c6b76;
    max-width: 60ch;
    margin: 0 0 28px;
}
.portada-seccion-cta {
    margin: 32px 0 0;
    text-align: center;
}

/* Categorías */
.categorias-rejilla {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 24px;
}
@media (min-width: 640px) {
    .categorias-rejilla {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}
.categoria-tarjeta {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 220px;
    border-radius: 14px;
    overflow: hidden;
    background-color: var(--c-prado);
    background-size: cover;
    background-position: center;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
@media (min-width: 640px) {
    .categoria-tarjeta {
        min-height: 300px;
    }
}
@media (hover: hover) {
    .categoria-tarjeta:hover {
        transform: translateY(-4px);
        box-shadow: 0 10px 24px rgba(18, 58, 79, 0.25);
    }
}
.categoria-velo {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(18, 58, 79, 0.85), rgba(18, 58, 79, 0) 65%);
}
.categoria-texto {
    position: relative;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.categoria-nombre {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 22px;
    font-weight: 600;
    color: #fff;
    line-height: 1.2;
}
.categoria-contador {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
}

/* Dónde dormir (banda arena) */
.portada-dormir {
    background: var(--c-arena);
}
.dormir-rejilla {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
@media (min-width: 640px) {
    .dormir-rejilla {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}
.dormir-tarjeta {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(18, 58, 79, 0.08);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
@media (hover: hover) {
    .dormir-tarjeta:hover {
        transform: translateY(-4px);
        box-shadow: 0 10px 24px rgba(18, 58, 79, 0.18);
    }
}
.dormir-imagen {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #e4ddcf;
}
.dormir-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.dormir-texto {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 16px 16px;
}
.dormir-nombre {
    font-weight: 700;
    font-size: 17px;
    color: var(--c-carbon);
    line-height: 1.3;
}
.dormir-direccion {
    font-size: 14px;
    color: #5c6b76;
    line-height: 1.4;
}

/* Blog */
.blog-rejilla {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 24px;
}
@media (min-width: 760px) {
    .blog-rejilla {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}
.blog-tarjeta {
    display: flex;
    flex-direction: column;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #e7e2d8;
    background: #fff;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
@media (hover: hover) {
    .blog-tarjeta:hover {
        transform: translateY(-4px);
        box-shadow: 0 10px 24px rgba(18, 58, 79, 0.12);
    }
}
.blog-imagen {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--c-arena);
}
.blog-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.blog-texto {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px;
}
.blog-categoria {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--c-prado);
}
.blog-titulo {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 19px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--c-carbon);
}
.blog-extracto {
    font-size: 14.5px;
    line-height: 1.55;
    color: #5c6b76;
}

/* Cierre (banda mar) */
.portada-cierre {
    background: var(--c-mar);
    color: #fff;
    padding: 64px 0;
    text-align: center;
}
.portada-cierre h2 {
    color: #fff;
    font-size: clamp(1.7rem, 3.4vw, 2.3rem);
    margin: 0 0 12px;
}
.portada-cierre p {
    max-width: 52ch;
    margin: 0 auto 28px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
}
.portada-cierre .portada-hero-acciones {
    justify-content: center;
}
