/* ============================================================
   Tema aceite · "mediterráneo luminoso" (fase D)
   Editorial 2026 en claro: serif display Fraunces protagonista,
   cremas y blancos con oliva y sol (#edd327 / #83ed27 de la marca),
   masthead translúcido sticky, hoja/gota orgánica SVG inline,
   bento en el índice, sombras suaves multicapa y micro-transiciones.
   CSS estático, sin JS. AA: el amarillo se usa como superficie con
   tinta oscura encima, nunca como texto sobre claro.
   ============================================================ */

:root {
    --alm-crema: #faf8f1;
    --alm-crema-2: #f3efe3;
    --alm-blanco: #ffffff;
    --alm-tinta: #26240f;
    --alm-tinta-2: #55523a;
    --alm-apagado: #8b8768;
    --alm-linea: #e6e1cd;
    --alm-sol: var(--brand, #edd327);
    --alm-oliva: #5f7a17;
    --alm-serif: "Fraunces", Georgia, "Times New Roman", serif;
    --alm-radio: 22px;
    --alm-sombra: 0 1px 2px rgba(38, 36, 15, 0.06), 0 8px 24px rgba(38, 36, 15, 0.07), 0 24px 56px rgba(38, 36, 15, 0.06);
}

body {
    background:
        radial-gradient(1100px 480px at 88% -6%, rgba(237, 211, 39, 0.14), transparent 60%),
        radial-gradient(900px 560px at -12% 28%, rgba(131, 237, 39, 0.08), transparent 55%),
        var(--alm-crema);
    color: var(--alm-tinta);
}

::selection { background: var(--alm-sol); color: var(--alm-tinta); }

/* ---------- Masthead editorial sticky translúcido ---------- */

.alm-masthead {
    position: sticky;
    top: 0;
    z-index: 60;
    text-align: center;
    background: rgba(250, 248, 241, 0.8);
    backdrop-filter: blur(14px) saturate(1.4);
    -webkit-backdrop-filter: blur(14px) saturate(1.4);
    border-bottom: 1px solid var(--alm-linea);
    padding: 10px 20px 12px;
}

.alm-lema {
    font-family: var(--font-mono, ui-monospace), monospace;
    font-size: 0.68rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--alm-apagado);
    margin: 0 0 6px;
}

.alm-brand {
    font-family: var(--alm-serif);
    font-weight: 650;
    font-size: clamp(1.5rem, 3.4vw, 2.1rem);
    letter-spacing: 0.01em;
    color: var(--alm-tinta);
    text-decoration: none;
    line-height: 1.1;
}

.alm-brand em {
    font-style: italic;
    color: var(--alm-oliva);
}

.alm-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 26px;
    margin-top: 8px;
}

.alm-nav a {
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--alm-tinta-2);
    text-decoration: none;
    padding-bottom: 2px;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.alm-nav a:hover { color: var(--alm-tinta); border-bottom-color: var(--alm-sol); }

.alm-nav .alm-nav-alta {
    color: var(--alm-tinta);
    background: var(--alm-sol);
    border-radius: 999px;
    padding: 4px 14px;
    border-bottom: 0;
}

.alm-nav .alm-nav-alta:hover { filter: brightness(0.96); }

/* ---------- Portada editorial (hero) ---------- */

.alm-portada {
    position: relative;
    text-align: center;
    max-width: 920px;
    margin: 0 auto;
    padding: clamp(60px, 9vw, 110px) 20px 46px;
}

/* hoja de olivo y gota orgánicas al fondo (SVG inline, cero peticiones) */
.alm-portada::before {
    content: "";
    position: absolute;
    inset: -30px -60px auto;
    height: 440px;
    z-index: -1;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 400'%3E%3Cpath d='M140 210c30-90 130-150 220-140-10 90-90 170-180 170-15 0-30-10-40-30z' fill='%2383ed27' fill-opacity='0.13'/%3E%3Cpath d='M420 120c50 30 90 90 70 150s-110 70-150 20 0-120 40-160c10-10 25-15 40-10z' fill='%23edd327' fill-opacity='0.2'/%3E%3C/svg%3E") center / contain no-repeat;
    pointer-events: none;
}

.alm-kicker {
    font-family: var(--font-mono, ui-monospace), monospace;
    font-size: 0.72rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--alm-oliva);
    margin: 0 0 18px;
}

.alm-portada h1 {
    font-family: var(--alm-serif);
    font-weight: 650;
    font-size: clamp(2.6rem, 6.5vw, 4.4rem);
    line-height: 1.04;
    letter-spacing: -0.015em;
    color: var(--alm-tinta);
    margin: 0;
}

.alm-portada h1 .hl {
    font-style: italic;
    color: var(--alm-oliva);
    background: linear-gradient(transparent 68%, rgba(237, 211, 39, 0.55) 68%);
    padding: 0 0.08em;
}

.alm-filete {
    display: block;
    width: 76px;
    height: 3px;
    margin: 26px auto;
    background: linear-gradient(90deg, transparent, var(--alm-sol), transparent);
    border-radius: 3px;
}

.alm-entradilla {
    font-size: clamp(1.02rem, 2vw, 1.2rem);
    line-height: 1.7;
    color: var(--alm-tinta-2);
    max-width: 56ch;
    margin: 0 auto;
}

.alm-acciones {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: 34px;
}

.alm-boton {
    display: inline-block;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--alm-tinta);
    background: linear-gradient(120deg, var(--alm-sol), #f4e563);
    padding: 13px 26px;
    border-radius: 999px;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(237, 211, 39, 0.35), 0 10px 28px rgba(38, 36, 15, 0.1);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.alm-boton:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(237, 211, 39, 0.45), 0 16px 36px rgba(38, 36, 15, 0.12);
    color: var(--alm-tinta);
}

.alm-boton.is-plano {
    background: var(--alm-blanco);
    color: var(--alm-tinta);
    border: 1px solid var(--alm-linea);
    box-shadow: none;
}

.alm-boton.is-plano:hover { border-color: var(--alm-oliva); color: var(--alm-oliva); }

.alm-boton.is-inverso { background: var(--alm-tinta); color: var(--alm-crema); }

/* ---------- Cuerpo editorial ---------- */

.alm-cuerpo, .alm-pliego, .alm-articulo {
    max-width: 900px;
    margin: 0 auto;
    padding: 34px 20px 8px;
}

.alm-titulo-seccion {
    font-family: var(--alm-serif);
    font-weight: 650;
    font-size: clamp(1.5rem, 3vw, 2rem);
    letter-spacing: -0.01em;
    margin: 0 0 26px;
    display: flex;
    align-items: baseline;
    gap: 16px;
}

.alm-titulo-seccion::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--alm-linea), transparent);
}

/* Índice bento: primera categoría grande, resto en tarjetas */

.alm-indice {
    list-style: none;
    counter-reset: alm;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
}

.alm-indice li { counter-increment: alm; }

.alm-indice li:first-child { grid-column: 1 / -1; }

.alm-indice a {
    position: relative;
    display: block;
    background: var(--alm-blanco);
    border: 1px solid var(--alm-linea);
    border-radius: var(--alm-radio);
    padding: 20px 22px 18px 62px;
    color: var(--alm-tinta);
    font-family: var(--alm-serif);
    font-size: 1.12rem;
    font-weight: 650;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(38, 36, 15, 0.04);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.alm-indice li:first-child a {
    font-size: clamp(1.35rem, 2.6vw, 1.7rem);
    padding: 30px 30px 28px 74px;
    background:
        radial-gradient(420px 160px at 92% 10%, rgba(237, 211, 39, 0.2), transparent 60%),
        var(--alm-blanco);
}

.alm-indice a::before {
    content: counter(alm, decimal-leading-zero);
    position: absolute;
    left: 22px;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-mono, ui-monospace), monospace;
    font-size: 0.78rem;
    color: var(--alm-oliva);
}

.alm-indice a:hover {
    transform: translateY(-3px);
    border-color: rgba(95, 122, 23, 0.5);
    box-shadow: var(--alm-sombra);
}

/* Sumario de consejos: número fantasma serif + desplazamiento al hover */

.alm-sumario { display: flex; flex-direction: column; }

.alm-sumario-fila, .alm-entrada {
    display: flex;
    gap: 22px;
    align-items: flex-start;
    padding: 24px 6px;
    border-bottom: 1px solid var(--alm-linea);
    transition: transform 0.18s ease;
}

.alm-sumario-fila:hover, .alm-entrada:hover { transform: translateX(6px); }

.alm-entrada-num {
    font-family: var(--alm-serif);
    font-style: italic;
    font-weight: 500;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1px rgba(95, 122, 23, 0.6);
    min-width: 58px;
}

.alm-sumario-fila h3, .alm-entrada h3 {
    font-family: var(--alm-serif);
    font-weight: 650;
    font-size: clamp(1.15rem, 2.4vw, 1.45rem);
    letter-spacing: -0.01em;
    margin: 2px 0 6px;
}

.alm-sumario-fila h3 a, .alm-entrada h3 a { color: var(--alm-tinta); text-decoration: none; transition: color 0.15s ease; }

.alm-sumario-fila h3 a:hover, .alm-entrada h3 a:hover { color: var(--alm-oliva); }

.alm-sumario-nota, .alm-entrada-nota { color: var(--alm-tinta-2); line-height: 1.65; margin: 0; font-size: 0.95rem; }

.alm-entrada-lugar {
    font-family: var(--font-mono, ui-monospace), monospace;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--alm-apagado);
    margin: 0 0 6px;
}

.alm-sello {
    font-family: var(--font-mono, ui-monospace), monospace;
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--alm-tinta);
    background: var(--alm-sol);
    border-radius: 999px;
    padding: 3px 10px;
    margin-left: 10px;
    vertical-align: middle;
}

.alm-vermas { margin-top: 22px; }

.alm-vermas a { color: var(--alm-oliva); font-weight: 700; text-decoration: none; }

.alm-vermas a:hover { text-decoration: underline; }

/* ---------- Banda CTA sol ---------- */

.alm-banda {
    max-width: 900px;
    margin: 44px auto 0;
    padding: clamp(34px, 5vw, 52px) clamp(24px, 5vw, 56px);
    border-radius: calc(var(--alm-radio) + 6px);
    background:
        radial-gradient(500px 200px at 90% 0%, rgba(255, 255, 255, 0.5), transparent 55%),
        linear-gradient(120deg, var(--alm-sol), #e8ce2e);
    color: var(--alm-tinta);
    box-shadow: var(--alm-sombra);
}

.alm-banda h2 {
    font-family: var(--alm-serif);
    font-weight: 650;
    font-size: clamp(1.5rem, 3.4vw, 2.2rem);
    letter-spacing: -0.01em;
    margin: 0 0 10px;
    color: var(--alm-tinta);
}

.alm-banda p { margin: 0 0 22px; line-height: 1.6; color: rgba(38, 36, 15, 0.8); max-width: 56ch; }

/* ---------- Pliego de categoría y artículo de ficha ---------- */

.alm-pliego-cabecera, .alm-articulo-cabecera { text-align: center; padding-top: 18px; }

.alm-pliego-cabecera h1, .alm-articulo-cabecera h1 {
    font-family: var(--alm-serif);
    font-weight: 650;
    font-size: clamp(2.1rem, 5vw, 3.4rem);
    line-height: 1.06;
    letter-spacing: -0.015em;
    margin: 0;
}

.alm-articulo-meta { color: var(--alm-apagado); margin: 12px 0 0; }

.alm-articulo-cats a { color: var(--alm-tinta-2); text-decoration: none; }

.alm-articulo-cats a:hover { color: var(--alm-oliva); }

.alm-subindice {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 26px 0 6px;
}

.alm-subindice a {
    font-size: 0.85rem;
    color: var(--alm-tinta-2);
    background: var(--alm-blanco);
    border: 1px solid var(--alm-linea);
    border-radius: 999px;
    padding: 7px 16px;
    text-decoration: none;
    transition: color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.alm-subindice a:hover { color: var(--alm-oliva); border-color: var(--alm-oliva); transform: translateY(-2px); }

.alm-listado { margin-top: 18px; }

.alm-vacio { color: var(--alm-apagado); text-align: center; padding: 34px 0; }

.alm-vacio a { color: var(--alm-oliva); font-weight: 700; }

.alm-paginacion { margin: 26px 0; }

.alm-nota-editorial {
    background: var(--alm-blanco);
    border: 1px solid var(--alm-linea);
    border-radius: var(--alm-radio);
    box-shadow: 0 1px 2px rgba(38, 36, 15, 0.04);
    padding: 28px 30px;
    margin-top: 34px;
}

.alm-nota-editorial h2 { font-family: var(--alm-serif); font-weight: 650; margin: 0 0 12px; }

.alm-nota-editorial div { line-height: 1.75; color: var(--alm-tinta-2); }

/* Caja de contacto de la ficha */

.alm-caja-contacto {
    background: var(--alm-blanco);
    border: 1px solid var(--alm-linea);
    border-radius: var(--alm-radio);
    box-shadow: var(--alm-sombra);
    padding: 26px 30px;
    margin: 30px auto 8px;
    max-width: 640px;
}

.alm-caja-contacto h2 {
    font-family: var(--alm-serif);
    font-weight: 650;
    font-size: 1.3rem;
    margin: 0 0 14px;
}

.alm-caja-contacto dl { margin: 0; }

.alm-caja-contacto dl > div {
    display: flex;
    gap: 14px;
    padding: 9px 0;
    border-bottom: 1px solid var(--alm-crema-2);
}

.alm-caja-contacto dt {
    font-family: var(--font-mono, ui-monospace), monospace;
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--alm-apagado);
    min-width: 92px;
    padding-top: 3px;
}

.alm-caja-contacto dd { margin: 0; }

.alm-caja-contacto a { color: var(--alm-tinta); font-weight: 600; text-decoration: none; }

.alm-caja-contacto a:hover { color: var(--alm-oliva); }

.alm-caja-contacto .alm-boton { margin-top: 18px; }

.alm-prosa div, .alm-prosa { line-height: 1.8; color: var(--alm-tinta-2); }

/* Carta de productos: línea de puntos como carta de almazara */

.alm-carta-linea {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: baseline;
    gap: 10px;
    padding: 14px 0;
}

.alm-carta-linea h3 { font-family: var(--alm-serif); font-weight: 650; font-size: 1.1rem; margin: 0; }

.alm-carta-linea h3 a { color: var(--alm-tinta); text-decoration: none; }

.alm-carta-linea h3 a:hover { color: var(--alm-oliva); }

.alm-carta-puntos { border-bottom: 2px dotted rgba(38, 36, 15, 0.25); transform: translateY(-4px); }

.alm-carta-precio { font-family: var(--font-mono, ui-monospace), monospace; color: var(--alm-oliva); }

.alm-carta-nota { grid-column: 1 / -1; color: var(--alm-tinta-2); font-size: 0.92rem; margin: 0; }

.alm-horario-fila {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
    padding: 7px 0;
    color: var(--alm-tinta-2);
    border-bottom: 1px solid var(--alm-crema-2);
}

.alm-horario-fila.es-hoy { color: var(--alm-oliva); font-weight: 700; }

/* ---------- Colofón ---------- */

.alm-colofon {
    margin-top: 84px;
    border-top: 1px solid var(--alm-linea);
    background:
        radial-gradient(700px 260px at 50% 130%, rgba(237, 211, 39, 0.18), transparent 60%),
        var(--alm-crema-2);
    text-align: center;
}

.alm-colofon-inner { max-width: 760px; margin: 0 auto; padding: 46px 20px 34px; }

.alm-colofon-marca { font-family: var(--alm-serif); font-weight: 650; font-size: 1.5rem; margin: 0 0 8px; color: var(--alm-tinta); }

.alm-colofon-lema { color: var(--alm-apagado); margin: 0 0 22px; }

.alm-colofon-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; margin-bottom: 22px; }

.alm-colofon-nav a {
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--alm-tinta-2);
    text-decoration: none;
}

.alm-colofon-nav a:hover { color: var(--alm-oliva); }

.alm-colofon-legal { font-family: var(--font-mono, ui-monospace), monospace; font-size: 0.72rem; color: var(--alm-apagado); margin: 0; }

.alm-colofon-legal a { color: inherit; }

/* ---------- Parciales centrales en claro ---------- */

.breadcrumb { font-size: 0.75rem; color: var(--alm-apagado); }

.breadcrumb a { color: var(--alm-apagado); }

.faq { border-bottom: 1px solid var(--alm-linea); background: transparent; }

.faq summary { font-family: var(--alm-serif); font-weight: 650; color: var(--alm-tinta); }

.faq .answer { color: var(--alm-tinta-2); line-height: 1.7; }

/* ---------- Accesibilidad y movimiento ---------- */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; }
    .alm-indice a:hover, .alm-boton:hover, .alm-sumario-fila:hover, .alm-entrada:hover, .alm-subindice a:hover { transform: none; }
}

@media (max-width: 640px) {
    .alm-entrada-num { min-width: 42px; font-size: 1.5rem; }
    .alm-caja-contacto dl > div { flex-direction: column; gap: 2px; }
}

.alm-verificada { color: var(--alm-oliva); font-weight: 700; }
