/* =========================================================
   Pastelería Parque · Web pública
   Estilo inspirado en la demo "Sweet Bite": malva, crema y letra manuscrita
   ========================================================= */

@font-face {
    font-family: 'Dancing Script';
    font-style: normal;
    font-weight: 600 700;
    font-display: swap;
    src: url(../fonts/dancing-script.woff2) format('woff2');
}

@font-face {
    font-family: 'Nunito';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url(../fonts/nunito.woff2) format('woff2');
}

@font-face {
    font-family: 'Nunito';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url(../fonts/nunito-italic.woff2) format('woff2');
}

:root {
    --malva: #8c6f69;
    --malva-oscuro: #6e5550;
    --malva-claro: #b39c96;
    --crema: #f7f3f0;
    --arena: #ebe3de;
    --blanco: #ffffff;
    --texto: #3b2e2b;
    --texto-suave: #6f5f5b;
    --sombra: 0 10px 30px rgba(59, 46, 43, .12);
    --radio: 4px;
    --ancho: 1200px;
    --cabecera: 76px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--cabecera);
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}

body {
    margin: 0;
    font-family: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 17px;
    line-height: 1.65;
    color: var(--texto);
    background: var(--crema);
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
}

h1,
h2,
h3 {
    line-height: 1.2;
    margin: 0;
}

p {
    margin: 0 0 1em;
}

.contenedor {
    width: min(var(--ancho), 100% - 32px);
    margin-inline: auto;
}

.letra-script {
    font-family: 'Dancing Script', cursive;
    font-weight: 700;
}

.icono {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.saltar {
    position: absolute;
    left: -999px;
    top: 8px;
    z-index: 100;
    padding: 10px 16px;
    background: var(--texto);
    color: #fff;
}

.saltar:focus {
    left: 8px;
}

:focus-visible {
    outline: 3px solid var(--malva);
    outline-offset: 3px;
}

/* ---------- Botones ---------- */
.botones {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.boton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 12px 26px;
    border: 2px solid transparent;
    border-radius: var(--radio);
    font: inherit;
    font-weight: 700;
    font-size: .92rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: background .2s, color .2s, border-color .2s, transform .2s;
}

.boton:hover {
    transform: translateY(-2px);
}

.boton .icono {
    width: 20px;
    height: 20px;
}

.boton-claro {
    background: var(--blanco);
    color: var(--malva-oscuro);
}

.boton-claro:hover {
    background: var(--crema);
}

.boton-borde {
    border-color: rgba(255, 255, 255, .85);
    color: #fff;
}

.boton-borde:hover {
    background: rgba(255, 255, 255, .15);
}

.boton-oscuro {
    background: var(--malva);
    color: #fff;
}

.boton-oscuro:hover {
    background: var(--malva-oscuro);
}

.enlace-subrayado {
    display: inline-block;
    font-weight: 700;
    font-size: .88rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--malva-oscuro);
    text-decoration: underline;
    text-underline-offset: 5px;
}

/* ---------- Adorno bajo los títulos (línea · rombo · línea) ---------- */
.adorno {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 14px auto 18px;
    color: var(--malva);
}

.adorno i {
    width: 44px;
    height: 1px;
    background: currentColor;
}

.adorno b {
    width: 8px;
    height: 8px;
    background: currentColor;
    transform: rotate(45deg);
}

.adorno-claro {
    color: #fff;
}

/* ---------- Cabecera ---------- */
.cabecera {
    position: fixed;
    inset: 0 0 auto;
    z-index: 50;
    height: var(--cabecera);
    color: #fff;
    transition: background .3s, box-shadow .3s, color .3s;
}

/* Sombra suave para que el menú se lea sobre cualquier parte de la foto */
.con-banner .cabecera:not(.solida) {
    background: linear-gradient(180deg, rgba(40, 28, 25, .55) 0%, rgba(40, 28, 25, 0) 100%);
}

.es-interior .cabecera,
.cabecera.solida {
    background: rgba(255, 255, 255, .97);
    color: var(--texto);
    box-shadow: 0 2px 16px rgba(59, 46, 43, .08);
}

.cabecera-fila {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-family: 'Dancing Script', cursive;
    font-weight: 700;
    font-size: 1.9rem;
    line-height: 1;
    white-space: nowrap;
}

/* Logo "El Parque": el SVG se usa como máscara y toma el color del texto (currentColor),
   así sale blanco sobre la foto y en el pie, y en color sobre la cabecera blanca */
.logo-marca {
    display: block;
    aspect-ratio: 953 / 608;
    background-color: currentColor;
    -webkit-mask: url(../img/logo.svg) center / contain no-repeat;
    mask: url(../img/logo.svg) center / contain no-repeat;
}

.cabecera .logo-marca {
    height: 60px;
}

.es-interior .cabecera .logo,
.cabecera.solida .logo,
.menu-abierto .cabecera .logo {
    color: var(--malva);
}

/* Sobre la foto de portada el logo va algo más grande y con una sombra suave para que se lea */
.con-banner .cabecera:not(.solida) .logo-marca {
    height: 78px;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .35));
}

.cabecera .logo-marca {
    transition: height .3s;
}

/* Cabecera más alta sobre la foto; al bajar se estrecha a la altura normal */
@media (min-width: 861px) {
    .con-banner .cabecera:not(.solida) {
        height: 104px;
    }
}

.logo-pie .logo-marca {
    width: 170px;
}

@media (max-width: 700px) {
    .cabecera .logo-marca,
    .con-banner .cabecera:not(.solida) .logo-marca {
        height: 52px;
    }
}

.menu {
    display: flex;
    align-items: center;
    gap: 6px;
}

.menu a {
    padding: 10px 14px;
    font-weight: 700;
    font-size: .88rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-decoration: none;
    border-bottom: 2px solid transparent;
}

.menu a:hover {
    border-bottom-color: currentColor;
}

.menu .menu-destacado {
    margin-left: 8px;
    border: 2px solid currentColor;
    border-radius: var(--radio);
}

.menu-boton {
    display: none;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    border: 0;
    background: none;
    color: inherit;
    cursor: pointer;
}

.menu-boton .icono {
    width: 28px;
    height: 28px;
}

.menu-boton .cerrar,
.menu-abierto .menu-boton .abrir {
    display: none;
}

.menu-abierto .menu-boton .cerrar {
    display: block;
}

@media (max-width: 860px) {
    .menu-boton {
        display: inline-flex;
    }

    .menu {
        position: fixed;
        inset: var(--cabecera) 0 auto;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px 16px 20px;
        background: #fff;
        color: var(--texto);
        box-shadow: 0 16px 30px rgba(59, 46, 43, .15);
        transform: translateY(-12px);
        opacity: 0;
        visibility: hidden;
        transition: opacity .2s, transform .2s, visibility .2s;
    }

    .menu-abierto .menu {
        transform: none;
        opacity: 1;
        visibility: visible;
    }

    .menu a {
        padding: 16px 8px;
        border-bottom: 1px solid var(--arena);
    }

    .menu .menu-destacado {
        margin: 14px 0 0;
        text-align: center;
        background: var(--malva);
        border-color: var(--malva);
        color: #fff;
    }

    .menu-abierto .cabecera {
        background: #fff;
        color: var(--texto);
    }
}

/* ---------- Portada ---------- */
.portada {
    position: relative;
    display: flex;
    align-items: center;
    min-height: min(92vh, 820px);
    padding: calc(var(--cabecera) + 40px) 0 140px;
    color: #fff;
    overflow: hidden;
    background: var(--malva-oscuro);
}

.portada-foto {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 70% center;
}

.portada::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, rgba(59, 40, 36, .78) 0%, rgba(59, 40, 36, .5) 45%, rgba(59, 40, 36, .05) 80%);
}

.portada-texto {
    position: relative;
    z-index: 2;
}

.portada-texto>* {
    max-width: 620px;
}

.portada-antetitulo {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin-bottom: 8px;
}

.portada h1 {
    font-size: clamp(2.3rem, 5.2vw, 4rem);
    font-weight: 800;
    letter-spacing: -.01em;
    margin-bottom: 18px;
    text-wrap: balance;
}

.portada-sub {
    font-size: 1.15rem;
    opacity: .92;
    margin-bottom: 30px;
}

.ola {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    z-index: 2;
    width: 100%;
    height: 90px;
    fill: var(--crema);
}

@media (max-width: 700px) {
    .portada {
        align-items: flex-end;
        min-height: 88vh;
        padding-bottom: 110px;
    }

    .portada::before {
        background: linear-gradient(0deg, rgba(59, 40, 36, .85) 0%, rgba(59, 40, 36, .55) 55%, rgba(59, 40, 36, .1) 100%);
    }

    .portada-foto {
        object-position: center;
    }

    .ola {
        height: 56px;
    }
}

/* ---------- Secciones ---------- */
.seccion {
    padding: clamp(64px, 9vw, 110px) 0;
}

.seccion-arena {
    background: var(--arena);
}

.titulo-seccion {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 44px;
}

.titulo-seccion h2 {
    font-size: clamp(2.4rem, 5vw, 3.4rem);
    color: var(--malva);
}

.titulo-seccion p {
    color: var(--texto-suave);
}

/* ---------- Nosotros ---------- */
.nosotros {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 24px;
    align-items: stretch;
}

.nosotros-foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 320px;
}

.nosotros-caja {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: clamp(32px, 5vw, 56px);
    background: var(--malva);
    color: #fff;
    text-align: center;
}

.nosotros-caja h2 {
    font-size: clamp(2.4rem, 4.5vw, 3.2rem);
}

.nosotros-caja .boton {
    margin-top: 10px;
}

@media (max-width: 860px) {
    .nosotros {
        grid-template-columns: 1fr;
    }
}

/* ---------- Categorías ---------- */
.categorias {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr));
    gap: 16px;
}

.categoria {
    position: relative;
    display: block;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: var(--radio);
    background: var(--malva-claro);
    text-decoration: none;
    color: #fff;
    box-shadow: var(--sombra);
}

.categoria img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s;
}

.categoria::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(59, 40, 36, .8) 0%, rgba(59, 40, 36, .1) 55%);
}

.categoria:hover img {
    transform: scale(1.06);
}

.categoria-texto {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 16px;
    z-index: 1;
}

.categoria-texto strong {
    display: block;
    font-family: 'Dancing Script', cursive;
    font-size: 1.9rem;
    line-height: 1.1;
}

.categoria-texto small {
    font-size: .85rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    opacity: .9;
}

@media (max-width: 560px) {
    .categorias {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .categoria-texto {
        left: 12px;
        right: 12px;
        bottom: 10px;
    }

    .categoria-texto strong {
        font-size: 1.45rem;
    }

    .categoria-texto small {
        font-size: .72rem;
    }
}

/* ---------- Productos ---------- */
.filtros {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 36px;
}

.filtro {
    min-height: 42px;
    padding: 8px 18px;
    border: 1px solid var(--malva-claro);
    border-radius: 999px;
    background: transparent;
    color: var(--malva-oscuro);
    font: inherit;
    font-weight: 700;
    font-size: .92rem;
    cursor: pointer;
    transition: background .2s, color .2s;
}

.filtro:hover {
    background: var(--arena);
}

.filtro.activo {
    background: var(--malva);
    border-color: var(--malva);
    color: #fff;
}

.productos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr));
    gap: 20px;
}

.producto {
    display: flex;
    flex-direction: column;
    padding: 12px;
    border: 0;
    border-radius: var(--radio);
    background: var(--arena);
    font: inherit;
    color: inherit;
    text-align: center;
    cursor: pointer;
    transition: transform .25s, box-shadow .25s;
}

.producto:hover {
    transform: translateY(-4px);
    box-shadow: var(--sombra);
}

.producto[hidden],
.ver-todos[hidden] {
    display: none;
}

.ver-todos {
    display: flex;
    justify-content: center;
    margin-top: 36px;
}

html:not(.js) .ver-todos {
    display: none;
}

.producto-foto {
    position: relative;
    display: block;
    aspect-ratio: 1;
    overflow: hidden;
    background: #fff;
}

.producto-foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.producto-etiqueta {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .92);
    color: var(--malva-oscuro);
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.producto-texto {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 16px 6px 6px;
}

.producto-texto small {
    color: var(--malva);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.producto-texto strong {
    font-size: 1.1rem;
    line-height: 1.3;
}

.producto-texto span {
    color: var(--texto-suave);
    font-size: .95rem;
}

@media (max-width: 560px) {
    .filtros {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        margin-inline: -16px;
        padding: 0 16px 6px;
        scrollbar-width: none;
    }

    .filtro {
        flex-shrink: 0;
    }

    .productos {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .producto {
        padding: 8px;
    }

    .producto-texto {
        padding: 10px 2px 4px;
    }

    .producto-texto strong {
        font-size: .98rem;
    }

    .producto-texto span {
        font-size: .85rem;
    }
}

/* ---------- ¿Por qué nosotros? ---------- */
.por-que {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 2.4fr;
}

.por-que-titulo {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: clamp(40px, 6vw, 70px) clamp(24px, 4vw, 50px);
    background: var(--malva);
    color: #fff;
}

.por-que-titulo h2 {
    font-size: clamp(2.4rem, 4.5vw, 3.4rem);
}

.por-que-titulo .adorno {
    margin-left: 0;
    justify-content: flex-start;
}

.por-que-lista {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 36px 40px;
    padding: clamp(40px, 6vw, 70px) clamp(24px, 5vw, 70px);
    background: var(--arena);
}

.ventaja .icono {
    width: 44px;
    height: 44px;
    color: var(--malva);
    stroke-width: 1.4;
    margin-bottom: 12px;
}

.ventaja h3 {
    font-size: 1.2rem;
    margin-bottom: 6px;
}

.ventaja p {
    color: var(--texto-suave);
    margin: 0;
}

@media (max-width: 860px) {
    .por-que {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .por-que-lista {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

/* ---------- Encargos ---------- */
.encargos {
    position: relative;
    padding: clamp(70px, 10vw, 130px) 0;
    overflow: hidden;
}

.encargos-fondo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.encargos-contenido {
    position: relative;
    display: flex;
    justify-content: flex-end;
}

.encargos-caja {
    width: min(560px, 100%);
    padding: clamp(32px, 5vw, 52px);
    background: rgba(140, 111, 105, .95);
    color: #fff;
    text-align: center;
}

.encargos-caja h2 {
    font-size: clamp(2.2rem, 4.5vw, 3.2rem);
}

.pasos {
    list-style: none;
    counter-reset: paso;
    margin: 0 0 26px;
    padding: 0;
    text-align: left;
}

.pasos li {
    counter-increment: paso;
    position: relative;
    padding: 0 0 14px 50px;
}

.pasos li::before {
    content: counter(paso);
    position: absolute;
    left: 0;
    top: -2px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1.5px solid #fff;
    border-radius: 50%;
    font-weight: 800;
}

.encargos-caja .botones {
    justify-content: center;
}

@media (max-width: 700px) {
    .encargos {
        padding: 220px 0 0;
    }

    .encargos-contenido {
        width: 100%;
    }

    .encargos-caja {
        width: 100%;
    }
}

/* ---------- Mosaico ---------- */
.mosaico {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.mosaico img {
    width: 100%;
    height: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.mosaico-caja {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 28px;
    border: 1px solid var(--malva-claro);
    outline: 1px solid var(--malva-claro);
    outline-offset: -10px;
    text-align: center;
    aspect-ratio: 1;
}

.mosaico-caja h2 {
    font-size: clamp(2rem, 3.4vw, 2.7rem);
    color: var(--malva);
}

.mosaico-caja p {
    color: var(--texto-suave);
}

.mosaico-frase p {
    font-size: clamp(2rem, 3.4vw, 2.7rem);
    line-height: 1.25;
    color: var(--malva);
}

@media (max-width: 860px) {
    .mosaico {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 520px) {
    .mosaico {
        grid-template-columns: 1fr;
    }

    .mosaico-caja {
        aspect-ratio: auto;
        padding: 40px 24px;
    }
}

/* ---------- Dónde estamos: locales con mapa ---------- */
.locales {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
    gap: 24px;
    margin-bottom: 28px;
}

.local {
    display: flex;
    flex-direction: column;
    background: var(--crema);
    box-shadow: var(--sombra);
}

.local-mapa {
    position: relative;
    aspect-ratio: 16 / 10;
    background:
        radial-gradient(circle at 30% 40%, rgba(140, 111, 105, .16) 0 60px, transparent 61px),
        radial-gradient(circle at 75% 65%, rgba(140, 111, 105, .12) 0 90px, transparent 91px),
        repeating-linear-gradient(35deg, #efe8e4 0 22px, #e8dfda 22px 24px);
}

.local-mapa iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    /* El mapa gratuito de Google no deja cambiar sus colores: se tiñe con un filtro
       a tonos crema y malva, como el resto de la web */
    filter: grayscale(1) sepia(.5) hue-rotate(-18deg) saturate(1.3) contrast(.93) brightness(1.04);
}

.mapa-aviso {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px;
    text-align: center;
}

.mapa-aviso .icono {
    width: 42px;
    height: 42px;
    color: var(--malva);
}

.mapa-aviso small {
    max-width: 300px;
    color: var(--texto-suave);
    font-size: .82rem;
    line-height: 1.4;
}

.local-texto {
    padding: 24px 26px 28px;
}

.local-texto h3 {
    font-family: 'Dancing Script', cursive;
    font-size: 2.1rem;
    color: var(--malva);
    margin-bottom: 8px;
}

.local-direccion {
    display: flex;
    gap: 8px;
    font-weight: 700;
}

.local-direccion .icono {
    width: 20px;
    height: 20px;
    margin-top: 3px;
    color: var(--malva);
}

.local-texto p {
    color: var(--texto-suave);
}

/* ---------- Contacto ---------- */
.contacto {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 290px));
    gap: 20px;
    justify-content: center;
}

.contacto-dato {
    padding: 34px 26px;
    background: var(--crema);
    text-align: center;
}

.contacto-dato .icono {
    width: 40px;
    height: 40px;
    color: var(--malva);
    stroke-width: 1.4;
    margin: 0 auto 12px;
}

.contacto-dato h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.contacto-dato p {
    color: var(--texto-suave);
    margin-bottom: 10px;
}

.contacto-dato a:not(.enlace-subrayado) {
    text-decoration: none;
    font-weight: 700;
    color: var(--texto);
}

.redes {
    display: flex;
    gap: 10px;
}

.redes a {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 1px solid currentColor;
    border-radius: 50%;
    transition: background .2s, color .2s;
}

.redes-centro {
    justify-content: center;
    margin-top: 32px;
    color: var(--malva);
}

.redes-centro a:hover {
    background: var(--malva);
    color: #fff;
}

/* ---------- Pie ---------- */
.pie {
    background: var(--texto);
    color: #e9e0dc;
    padding-top: 64px;
}

.pie-rejilla {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 40px;
    padding-bottom: 48px;
}

.logo-pie {
    color: #fff;
    margin-bottom: 14px;
}

.pie-lema {
    color: #c9bbb6;
}

.pie-titulo {
    font-size: .88rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 14px;
}

.pie-enlaces {
    list-style: none;
    margin: 0;
    padding: 0;
}

.pie-enlaces li {
    margin-bottom: 8px;
}

.pie a {
    text-decoration: none;
}

.pie a:hover {
    text-decoration: underline;
}

.pie .redes a:hover {
    background: #fff;
    color: var(--texto);
    text-decoration: none;
}

.pie-horario {
    color: #c9bbb6;
}

.pie-legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px 24px;
    padding: 20px 0 28px;
    border-top: 1px solid rgba(255, 255, 255, .12);
    font-size: .9rem;
    color: #b3a5a0;
}

.pie-legal nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 20px;
}

@media (max-width: 860px) {
    .pie-rejilla {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 520px) {
    .pie-rejilla {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* ---------- Visor de producto ---------- */
.visor {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: grid;
    place-items: center;
    padding: 16px;
    background: rgba(35, 25, 23, .75);
    animation: aparecerVisor .2s ease;
}

.visor[hidden] {
    display: none;
}

@keyframes aparecerVisor {
    from {
        opacity: 0;
    }
}

.visor-caja {
    position: relative;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    width: min(920px, 100%);
    max-height: calc(100vh - 32px);
    overflow: auto;
    background: var(--crema);
    box-shadow: 0 30px 60px rgba(0, 0, 0, .35);
}

.visor-caja img {
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
    background: #fff;
}

.visor-texto {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 34px;
}

.visor-texto small {
    color: var(--malva);
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.visor-texto h2 {
    font-size: 1.9rem;
    margin: 6px 0 12px;
}

.visor-texto p {
    color: var(--texto-suave);
}

.visor-tipo:empty {
    display: none;
}

.visor-cerrar {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    color: var(--texto);
    cursor: pointer;
}

@media (max-width: 700px) {
    .visor-caja {
        grid-template-columns: 1fr;
    }

    .visor-caja img {
        min-height: 0;
        aspect-ratio: 1;
    }

    .visor-texto {
        padding: 24px 22px 28px;
    }
}

/* ---------- Botón subir ---------- */
.subir {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 40;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--malva);
    color: #fff;
    box-shadow: var(--sombra);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s, visibility .3s;
}

.subir.visible {
    opacity: 1;
    visibility: visible;
}

/* ---------- Animación suave al aparecer ---------- */
.js .aparecer {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .7s ease, transform .7s ease;
}

.js .aparecer.visto {
    opacity: 1;
    transform: none;
}

/* ---------- Páginas legales ---------- */
.legal {
    padding: calc(var(--cabecera) + 50px) 0 80px;
}

.legal .contenedor {
    max-width: 820px;
}

.legal h1 {
    font-family: 'Dancing Script', cursive;
    font-size: clamp(2.4rem, 5vw, 3.2rem);
    color: var(--malva);
    margin-bottom: 24px;
}

.legal h2 {
    font-size: 1.25rem;
    margin: 32px 0 10px;
}

.legal ul {
    padding-left: 22px;
}

.legal-aviso {
    padding: 14px 18px;
    border-left: 4px solid var(--malva);
    background: var(--arena);
    color: var(--texto-suave);
    font-size: .95rem;
}

/* =========================================================
   Páginas interiores (Nosotros, Productos, Encargos, Dónde estamos)
   ========================================================= */

/* Cabecera con foto, más baja que la de Inicio */
.portada-pagina {
    min-height: min(58vh, 520px);
    align-items: flex-end;
    padding-bottom: 120px;
}

.portada-pagina h1 {
    font-size: clamp(2.3rem, 5vw, 3.8rem);
    margin-bottom: 6px;
}

.portada-pagina .portada-antetitulo {
    margin: 0;
}

.portada-pagina::before {
    background: linear-gradient(90deg, rgba(59, 40, 36, .8) 0%, rgba(59, 40, 36, .55) 50%, rgba(59, 40, 36, .2) 100%);
}

/* Migas de pan: Inicio › Productos › Seco */
.migas {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
    font-size: .88rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    opacity: .92;
}

.migas a {
    text-decoration: none;
}

.migas a:hover {
    text-decoration: underline;
}

/* Página activa del menú */
.menu a.activo:not(.menu-destacado) {
    border-bottom-color: currentColor;
}

.boton-borde-oscuro {
    border-color: var(--malva);
    color: var(--malva-oscuro);
}

.boton-borde-oscuro:hover {
    background: var(--arena);
}

.texto-grande {
    font-size: 1.12rem;
}

.titulo-izq {
    font-size: clamp(2.2rem, 4.5vw, 3rem);
    color: var(--malva);
}

.aviso-pagina {
    padding: 14px 18px;
    border-left: 4px solid var(--malva);
    background: var(--arena);
    margin-bottom: 28px;
}

/* Nosotros: historia */
.historia {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: clamp(28px, 5vw, 64px);
    align-items: center;
}

.historia-texto h2 {
    font-size: clamp(2.4rem, 5vw, 3.2rem);
    color: var(--malva);
}

.historia-texto .adorno {
    justify-content: flex-start;
    margin-left: 0;
}

.historia-texto p {
    font-size: 1.08rem;
}

.historia-foto img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    box-shadow: var(--sombra);
}

/* Productos: familias */
.filtros a.filtro {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.familia-intro {
    max-width: 780px;
    margin: 0 auto 50px;
    text-align: center;
    font-size: 1.08rem;
    color: var(--texto-suave);
}

.familia-bloque {
    padding-top: 36px;
    margin-top: 36px;
    border-top: 1px solid var(--arena);
}

.familia-bloque:first-of-type {
    border-top: 0;
    margin-top: 0;
}

.familia-cabecera {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px 20px;
}

.familia-cabecera h2 {
    font-size: clamp(2.1rem, 4vw, 2.8rem);
    color: var(--malva);
}

.familia-cabecera h2 a {
    text-decoration: none;
}

.familia-texto {
    max-width: 780px;
    color: var(--texto-suave);
    margin: 6px 0 22px;
}

.familia-otras {
    margin-top: 70px;
    text-align: center;
}

.familia-otras h2 {
    font-size: clamp(2.1rem, 4vw, 2.8rem);
    color: var(--malva);
}

.familia-otras .categorias {
    text-align: left;
}

/* Encargos */
.encargo-intro {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: clamp(28px, 5vw, 60px);
    align-items: start;
}

.encargo-intro .botones {
    margin-top: 10px;
}

.encargo-pasos {
    padding: clamp(26px, 4vw, 40px);
    background: var(--malva);
    color: #fff;
}

.encargo-pasos h2 {
    font-size: clamp(2rem, 4vw, 2.6rem);
    margin-bottom: 18px;
}

.encargo-pasos .pasos {
    margin: 0;
}

.celebraciones {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    gap: clamp(28px, 5vw, 64px);
    align-items: center;
}

.celebraciones img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    box-shadow: var(--sombra);
}

.celebraciones .adorno {
    justify-content: flex-start;
    margin-left: 0;
}

.preguntas {
    max-width: 820px;
}

.pregunta {
    margin-bottom: 12px;
    background: var(--crema);
    border-radius: var(--radio);
}

.pregunta summary {
    padding: 18px 22px;
    font-weight: 800;
    font-size: 1.08rem;
    cursor: pointer;
    list-style-position: inside;
}

.pregunta p {
    margin: 0;
    padding: 0 22px 20px;
    color: var(--texto-suave);
}

.llamada {
    max-width: 720px;
    text-align: center;
}

.llamada h2 {
    font-size: clamp(2.4rem, 5vw, 3.2rem);
    color: var(--malva);
}

.llamada .botones {
    justify-content: center;
}

@media (max-width: 860px) {

    .historia,
    .encargo-intro,
    .celebraciones {
        grid-template-columns: 1fr;
    }

    .historia-foto img {
        aspect-ratio: 16 / 10;
    }

    .portada-pagina {
        min-height: 46vh;
        padding-bottom: 90px;
    }
}
