/*
Theme Name: dds_allrecipes.com.ar
Theme URI: https://allrecipes.com.ar/
Author: Valentina Ríos
Description: Tema de cocina casera: mantel a cuadros, mesada de nogal y fichas de receta clavadas con chinches. Recetas, organización de la cocina y celebraciones en casa.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cyhogar
*/

/* ---------- Fuentes locales ---------- */
@font-face { font-family: "Kalam"; src: url("fonts/kalam-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Kalam"; src: url("fonts/kalam-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Archivo Narrow"; src: url("fonts/archivo-narrow-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Archivo Narrow"; src: url("fonts/archivo-narrow-latin-600-normal.woff2") format("woff2"); font-weight: 600 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Archivo Narrow"; src: url("fonts/archivo-narrow-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

/* ---------- Reglas [hidden] (antes de los bloques principales) ---------- */
.cookie-banner[hidden] { display: none !important; }
[hidden] { display: none !important; }

/* ---------- Variables ---------- */
:root {
    --cloth-red: #C8452F;
    --cloth-cream: #F2E4CE;
    --wood: #5B3A22;
    --wood-deep: #3F2716;
    --ink: #2B1A12;
    --muted: #8A6A52;
    --saffron: #E8A33D;
    --saffron-soft: #F2BC5E;
    --parsley: #6E8B3D;
    --parsley-dark: #4E6A24;
    --line: #D9C39A;
    --card: #F7EEDD;
    --card-fold: #E4D1AE;
    --kraft: #C9A77C;
    --kraft-dark: #B38E5F;
    --bordeaux: #4A1F1A;
    --bordeaux-deep: #361511;
    --grid-blue: #C7D3DC;
    --pin-red: #D8352A;
    --pin-yellow: #E9C22B;
    --pin-blue: #2F6FB3;
    --pin-grey: #B9B6AE;
    --pin-green: #3E9A4A;
    --pin-teal: #1E9AA8;
    --font-hand: "Kalam", "Segoe Print", "Comic Sans MS", "Trebuchet MS", sans-serif;
    --font-text: "Archivo Narrow", "Arial Narrow", "Roboto Condensed", "Helvetica Neue", Arial, sans-serif;
    --wave-green: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='12' viewBox='0 0 60 12'%3E%3Cpath d='M0 6 Q7.5 0 15 6 T30 6 T45 6 T60 6' fill='none' stroke='%236E8B3D' stroke-width='3.2' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
body {
    margin: 0;
    font-family: var(--font-text);
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--ink);
    background: var(--wood-deep);
    overflow-x: hidden;
    overflow-wrap: break-word;
    hyphens: auto;
}
img { max-width: 100%; height: auto; }
a { color: var(--parsley-dark); text-decoration: underline dashed var(--parsley); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--cloth-red); text-decoration-style: solid; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid var(--saffron); outline-offset: 2px; }
p { margin: 0 0 1em; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-hand); font-weight: 700; line-height: 1.2; margin: 1.4em 0 .55em; color: inherit; }
ul, ol { margin: 0 0 1em; padding-left: 1.4em; }
figure { margin: 0; }
table { border-collapse: collapse; width: 100%; margin: 0 0 1.4em; font-size: .97rem; }
th, td { border: 1px solid var(--line); padding: .55rem .75rem; text-align: left; vertical-align: top; }
th { background: #EADCC0; font-weight: 600; }
blockquote { margin: 1.5em 0; padding: 1.1rem 1.4rem 1.1rem 1.6rem; background: #EEDFC2; border-left: 5px solid var(--saffron); font-family: var(--font-hand); font-size: 1.18rem; }
blockquote p:last-child { margin-bottom: 0; }
pre { overflow: auto; background: #2B1A12; color: var(--cloth-cream); padding: 1rem 1.2rem; }
hr { border: 0; height: 12px; background: var(--wave-green) repeat-x center / 40px 8px; margin: 2rem 0; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--saffron); color: var(--ink); padding: .5rem 1rem; font-weight: 600; }
.skip-link:focus { top: 1rem; }

.shell { width: min(92%, 1180px); margin-inline: auto; }

/* ---------- Pines ---------- */
.pin, .card__pin {
    position: absolute;
    top: -9px;
    left: 50%;
    width: 20px;
    height: 20px;
    margin-left: -10px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 32%, rgba(255,255,255,.75) 0 18%, transparent 22%), var(--pin-red);
    box-shadow: 1px 3px 2px rgba(0,0,0,.35), inset -2px -3px 0 rgba(0,0,0,.18);
    z-index: 3;
}
.pin--yellow { background-color: var(--pin-yellow); }
.pin--teal { background-color: var(--pin-teal); }
.pin--red { background-color: var(--pin-red); }

/* ---------- Botón etiqueta ---------- */
.sticker {
    display: inline-block;
    padding: .55rem 1.35rem .5rem;
    background: var(--saffron);
    color: var(--ink);
    font-family: var(--font-hand);
    font-weight: 700;
    font-size: 1.08rem;
    line-height: 1.25;
    text-decoration: none;
    border: 0;
    cursor: pointer;
    clip-path: polygon(0 6%, 4% 0, 12% 4%, 22% 0, 33% 5%, 45% 1%, 56% 4%, 68% 0, 80% 5%, 91% 1%, 100% 5%, 98% 30%, 100% 55%, 98% 80%, 100% 96%, 90% 100%, 78% 96%, 66% 100%, 54% 97%, 42% 100%, 30% 96%, 18% 100%, 7% 97%, 0 100%, 2% 72%, 0 48%, 2% 24%);
    transition: transform .15s ease, background-color .15s ease;
}
.sticker:hover { background: var(--saffron-soft); color: var(--ink); transform: translate(-1px, -2px) rotate(-1.2deg); }
.sticker:active { transform: translate(0, 1px); }
.sticker--small { font-size: .98rem; padding: .42rem 1.05rem .38rem; }

/* ---------- Títulos de sección ---------- */
.knife-title, .flourish-title, .rays-title, .hand-title {
    position: relative;
    display: block;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto 1.8rem;
    padding: 0 .2em .55em;
    color: var(--cloth-cream);
    font-size: clamp(2rem, 4.2vw, 3.1rem);
    line-height: 1.1;
    text-align: center;
    transform: rotate(-1.6deg);
    text-shadow: 0 2px 0 rgba(0,0,0,.35);
    background: var(--wave-green) repeat-x left bottom / 44px 10px;
    hyphens: manual;
}
.hand-title { margin-left: 0; text-align: left; transform: rotate(-1deg); }
.flourish-title::before, .flourish-title::after {
    content: "";
    position: absolute;
    top: .25em;
    width: 54px;
    height: 30px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 54 30'%3E%3Cg fill='none' stroke='%23E8A33D' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M52 10 C38 2 22 4 12 12 C6 17 10 23 16 20 C21 17 18 11 12 12'/%3E%3Cpath d='M52 20 C40 16 30 18 24 24'/%3E%3C/g%3E%3C/svg%3E") no-repeat center / contain;
}
.flourish-title::before { right: 100%; margin-right: .4rem; }
.flourish-title::after { left: 100%; margin-left: .4rem; transform: scaleX(-1); }
.rays-title::before, .rays-title::after {
    content: "";
    position: absolute;
    top: .2em;
    width: 34px;
    height: 34px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 34'%3E%3Cg stroke='%23E8A33D' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M30 6 L18 12'/%3E%3Cpath d='M31 17 L16 17'/%3E%3Cpath d='M30 28 L18 22'/%3E%3C/g%3E%3C/svg%3E") no-repeat center / contain;
}
.rays-title::before { right: 100%; }
.rays-title::after { left: 100%; transform: scaleX(-1); }
.knife-title--page { margin-left: 0; text-align: left; font-size: clamp(1.9rem, 3.6vw, 2.7rem); }

/* ---------- Cabecera: mantel ---------- */
.tablecloth {
    position: relative;
    background-color: var(--cloth-cream);
    background-image:
        radial-gradient(ellipse 48% 62% at 50% 46%, rgba(255,251,243,.92) 0 38%, rgba(255,251,243,.55) 62%, transparent 82%),
        radial-gradient(circle at 9% 30%, rgba(255,255,255,.75) 0 2%, transparent 9%),
        radial-gradient(circle at 14% 22%, rgba(255,255,255,.55) 0 3%, transparent 11%),
        radial-gradient(circle at 6% 44%, rgba(255,255,255,.5) 0 2%, transparent 8%),
        radial-gradient(circle at 19% 66%, transparent 0 52px, rgba(110,70,40,.32) 54px 58px, transparent 61px),
        radial-gradient(circle at 81% 22%, transparent 0 60px, rgba(110,70,40,.28) 62px 67px, transparent 70px),
        radial-gradient(circle at 85% 34%, transparent 0 52px, rgba(110,70,40,.2) 54px 58px, transparent 61px),
        linear-gradient(90deg, rgba(200,69,47,.62) 50%, transparent 50%),
        linear-gradient(rgba(200,69,47,.62) 50%, transparent 50%),
        repeating-linear-gradient(45deg, rgba(43,26,18,.035) 0 2px, transparent 2px 5px);
    background-size: auto, auto, auto, auto, auto, auto, auto, 46px 46px, 46px 46px, auto;
    padding: 2.4rem 0 2.6rem;
    border-bottom: 6px solid var(--cloth-red);
    box-shadow: 0 8px 18px rgba(0,0,0,.4);
    z-index: 2;
}
.tablecloth__inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1.4rem; }
.brand { display: flex; flex-direction: column; align-items: center; gap: .8rem; }
.brand__mark { display: block; line-height: 0; }
.brand-logo { display: block; width: 96px; height: auto; max-height: 120px; object-fit: contain; filter: drop-shadow(0 3px 2px rgba(0,0,0,.25)); }
.brand__text { min-width: 0; max-width: 62rem; }
.brand__name {
    margin: 0 0 .4rem;
    font-family: var(--font-hand);
    font-weight: 700;
    font-size: clamp(1.35rem, 2.5vw, 2.15rem);
    line-height: 1.18;
    color: var(--ink);
    text-shadow: 0 1px 0 rgba(255,255,255,.6);
}
.brand__name a { color: inherit; text-decoration: none; }
.brand__name a:hover { color: var(--cloth-red); }
.brand__desc {
    margin: 0 auto;
    max-width: 58rem;
    font-family: var(--font-hand);
    font-size: clamp(1rem, 1.3vw, 1.12rem);
    line-height: 1.45;
    color: var(--ink);
}

.menu-toggle { display: none; }
.tag-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 1.1rem 1.4rem; }
.tag-menu li { position: relative; }
.tag-menu li::before {
    content: "";
    position: absolute;
    top: -8px; left: 50%;
    width: 16px; height: 16px; margin-left: -8px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 32%, rgba(255,255,255,.75) 0 18%, transparent 22%), var(--pin-yellow);
    box-shadow: 1px 2px 2px rgba(0,0,0,.35);
    z-index: 2;
}
.tag-menu li:nth-child(4n+2)::before { background-color: var(--pin-blue); }
.tag-menu li:nth-child(4n+3)::before { background-color: var(--pin-grey); }
.tag-menu li:nth-child(4n+4)::before { background-color: var(--pin-green); }
.tag-menu a {
    display: block;
    padding: .55rem 1.2rem .45rem;
    background: #F4E9C9;
    color: var(--ink);
    font-family: var(--font-hand);
    font-weight: 700;
    font-size: 1.15rem;
    text-decoration: none;
    border: 1px solid var(--line);
    transform: rotate(-1.5deg);
    clip-path: polygon(0 0, 100% 0, 100% 78%, 93% 100%, 0 100%);
    transition: transform .15s ease, background-color .15s ease;
}
.tag-menu li:nth-child(even) a { transform: rotate(1.4deg); }
.tag-menu a:hover, .tag-menu .current-menu-item > a { background: var(--saffron); color: var(--ink); transform: rotate(0) translateY(-2px); }

/* ---------- Mesada de madera ---------- */
.woodtop {
    display: block;
    position: relative;
    padding: 3rem 0 4rem;
    background-color: var(--wood);
    background-image:
        radial-gradient(circle at 4% 2%, rgba(255,255,255,.16) 0 .3%, transparent 2.2%),
        radial-gradient(circle at 7% 4%, rgba(255,255,255,.12) 0 .4%, transparent 3%),
        radial-gradient(circle at 92% 46%, transparent 0 78px, rgba(30,15,8,.35) 80px 85px, transparent 88px),
        radial-gradient(circle at 6% 82%, transparent 0 60px, rgba(30,15,8,.3) 62px 66px, transparent 69px),
        url("images/madera-nogal.jpg");
    background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, repeat;
    background-size: auto, auto, auto, auto, 600px 220px;
}

/* ---------- Portada ---------- */
.shell.front { width: min(85%, 1180px); }
.fs { position: relative; margin: 0 0 4.2rem; }
.front-duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3.5rem; align-items: start; }
.front-duo .fs { margin-bottom: 1rem; }

/* Bloque 1 */
.today { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 2.4rem; align-items: center; }
.today__board img {
    display: block; width: 100%; height: auto; aspect-ratio: 1280 / 680; object-fit: cover;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 5%, #000 95%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 6%, #000 94%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(to right, transparent 0, #000 5%, #000 95%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 6%, #000 94%, transparent 100%);
    mask-composite: intersect;
}
.today__note {
    position: relative;
    min-width: 0;
    padding: 2rem 1.9rem 1.8rem;
    background-color: #FCFAF4;
    background-image:
        linear-gradient(var(--grid-blue) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-blue) 1px, transparent 1px);
    background-size: 18px 18px;
    transform: rotate(2deg);
    box-shadow: 2px 6px 12px rgba(0,0,0,.35);
}
.today__note-title { margin: 0 0 .6rem; padding-bottom: .3rem; font-size: 1.6rem; color: #5A1E16; border-bottom: 2px solid #5A1E16; display: inline-block; }
.today__list { list-style: none; padding: 0; margin: 0 0 1rem; font-family: var(--font-hand); font-size: 1.12rem; line-height: 1.6; color: #3A1D14; }
.today__list li { padding-left: 1.4rem; position: relative; }
.today__list li::before { content: ""; position: absolute; left: 0; top: .62em; width: .7rem; height: 2px; background: var(--cloth-red); transform: rotate(-8deg); }
.today__tip { font-size: .98rem; color: var(--ink); background: rgba(252,250,244,.85); }

/* Bloque 2 */
.pantry { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.1fr) minmax(0, 1fr); gap: 1.8rem; align-items: center; }
.pantry__labels { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1.6rem; }
.label-sticker {
    min-width: 0;
    padding: .9rem 1.2rem 1rem;
    background: #F4BE45;
    color: var(--ink);
    transform: rotate(-2.4deg);
    clip-path: polygon(0 4%, 6% 0, 18% 3%, 31% 0, 47% 4%, 62% 0, 77% 3%, 90% 0, 100% 4%, 98% 34%, 100% 66%, 98% 96%, 86% 100%, 70% 97%, 54% 100%, 38% 97%, 22% 100%, 8% 97%, 0 100%, 2% 66%, 0 34%);
    transition: transform .2s ease;
}
.label-sticker--tilt { transform: rotate(2deg); }
.label-sticker:hover { transform: rotate(0) scale(1.02); }
.label-sticker__name { display: block; font-family: var(--font-hand); font-weight: 700; font-size: 1.55rem; line-height: 1.15; }
.label-sticker__hint { display: block; margin-top: .2rem; font-size: .93rem; line-height: 1.4; }
.pantry__shelf { padding: 10px; background: linear-gradient(135deg, #D7B587, #B68C59); box-shadow: 0 12px 20px rgba(0,0,0,.45); }
.pantry__shelf img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; }

/* Últimas recetas / tarjetas */
.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.6rem 2rem; padding-top: .6rem; }
.layout-single .card-grid, .card-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--card);
    border: 1px solid var(--line);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 34px), calc(100% - 34px) 100%, 0 100%);
    transform: rotate(-.8deg);
    transition: transform .2s ease;
}
.card:nth-child(3n+2) { transform: rotate(.6deg); }
.card:nth-child(3n+3) { transform: rotate(-.3deg); }
.card:hover { transform: rotate(0) translateY(-4px); }
.card::after {
    content: "";
    position: absolute;
    right: 0; bottom: 0;
    width: 34px; height: 34px;
    background: linear-gradient(135deg, var(--card-fold) 0 50%, transparent 50%);
}
.card__pin { top: 4px; }
.card:nth-child(3n+2) .card__pin { background-color: var(--pin-yellow); }
.card:nth-child(3n+3) .card__pin { background-color: var(--pin-green); }
.card-thumb { padding: 1.1rem 1.1rem 0; }
.card-thumb a { display: block; text-decoration: none; }
.card-thumb img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.card-thumb__empty { display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 4 / 3; background: repeating-linear-gradient(-45deg, #EFE2C6 0 10px, #F3E8D1 10px 20px); }
.card-thumb__empty svg { display: block; }
.card-body { flex: 1; display: flex; flex-direction: column; min-width: 0; padding: 1rem 1.3rem 1.5rem; text-align: center; }
.card-title { margin: 0 0 .5rem; font-size: 1.32rem; line-height: 1.22; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a:hover { color: var(--cloth-red); }
.card-excerpt { font-size: .97rem; line-height: 1.5; color: #4A3326; }
.card-excerpt p { margin: 0 0 .5em; background: none; }
.card-foot { margin-top: auto; padding-top: .7rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .6rem 1rem; }
.card-date { font-size: .86rem; color: var(--muted); }
.empty-note { color: var(--cloth-cream); text-align: center; font-family: var(--font-hand); font-size: 1.2rem; }

/* Bloque 3 */
.kraft {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1.4rem;
    padding: 1.8rem 1.7rem 1.6rem;
    background-color: var(--kraft);
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255,255,255,.12) 0 1px, transparent 2px),
        radial-gradient(circle at 70% 60%, rgba(90,60,30,.12) 0 1px, transparent 2px);
    background-size: 7px 7px, 11px 11px;
    color: var(--ink);
    transform: rotate(-.8deg);
    box-shadow: 2px 8px 14px rgba(0,0,0,.4);
}
.kraft__plan { position: relative; align-self: start; }
.kraft__plan img { display: block; width: 100%; height: auto; aspect-ratio: 849 / 897; object-fit: cover; }
.callout {
    position: absolute;
    display: flex; align-items: center; justify-content: center;
    width: 1.6rem; height: 1.6rem;
    border-radius: 50%;
    background: var(--card);
    border: 2px solid var(--parsley-dark);
    color: var(--parsley-dark);
    font-family: var(--font-hand);
    font-weight: 700;
    font-size: .9rem;
    line-height: 1;
}
.callout::after { content: ""; position: absolute; top: 50%; width: 14px; border-top: 1.5px solid var(--parsley-dark); }
.callout--plate { left: 74%; top: 10%; }
.callout--plate::after { right: 100%; }
.callout--glass { left: 50%; top: 40%; }
.callout--glass::after { right: 100%; }
.callout--napkin { left: 2%; top: 13%; }
.callout--napkin::after { left: 100%; }
.callout--cutlery { left: 30%; top: 62%; }
.callout--cutlery::after { right: 100%; }
.kraft__text { min-width: 0; font-size: .98rem; line-height: 1.55; }
.kraft__legend { list-style: none; counter-reset: plan; padding: 0; margin: 0; font-size: .93rem; }
.kraft__legend li { counter-increment: plan; position: relative; padding: .3rem 0 .3rem 2.1rem; border-top: 1px dashed var(--kraft-dark); }
.kraft__legend li::before {
    content: counter(plan);
    position: absolute; left: 0; top: .3rem;
    width: 1.45rem; height: 1.45rem;
    border-radius: 50%;
    border: 2px solid var(--parsley-dark);
    color: var(--parsley-dark);
    background: var(--card);
    font-family: var(--font-hand); font-weight: 700; font-size: .82rem;
    display: flex; align-items: center; justify-content: center;
}

/* Bloque 4 */
.wallcal { position: relative; padding: 1.4rem 1.4rem 2rem 1.6rem; }
.wallcal__sheet {
    position: relative;
    padding: 1.6rem 1.2rem 1.2rem;
    background: #FBFAF6;
    color: var(--ink);
    transform: rotate(1.2deg);
    box-shadow: 2px 10px 16px rgba(0,0,0,.45);
}
.wallcal__rings {
    position: absolute; left: 4%; right: 4%; top: -10px; height: 20px;
    background: radial-gradient(ellipse 4px 9px at 50% 50%, #555 0 70%, transparent 75%) repeat-x 0 0 / 14px 20px;
}
.wallcal__month { margin: 0 0 .6rem; font-family: var(--font-hand); font-weight: 700; font-size: 1.6rem; color: var(--cloth-red); text-align: center; }
.wallcal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid #DCD3C3; border-left: 1px solid #DCD3C3; }
.wallcal__dow { padding: .25rem .2rem; font-size: .76rem; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); text-align: center; border-right: 1px solid #DCD3C3; border-bottom: 1px solid #DCD3C3; background: #F3EEE3; }
.wallcal__day { position: relative; min-height: 3.1rem; padding: .25rem .3rem; font-size: .82rem; color: #5D4A3D; border-right: 1px solid #DCD3C3; border-bottom: 1px solid #DCD3C3; min-width: 0; }
.wallcal__day--blank { background: #F6F2EA; }
.wallcal__day--mark b { display: inline-flex; align-items: center; justify-content: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; border: 2.5px solid currentColor; font-weight: 700; }
.wallcal__day--mark small { display: block; margin-top: .1rem; font-family: var(--font-hand); font-size: .72rem; line-height: 1.1; color: var(--ink); hyphens: none; overflow-wrap: normal; }
.wallcal__day--saffron { color: #B87610; }
.wallcal__day--green { color: var(--parsley-dark); }
.wallcal__day--red { color: var(--cloth-red); }
.polaroid {
    position: absolute;
    width: 23%;
    padding: .4rem .4rem 0;
    background: #FFFDF8;
    box-shadow: 2px 6px 10px rgba(0,0,0,.45);
    z-index: 2;
}
.polaroid img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }
.polaroid figcaption { padding: .25rem 0 .35rem; text-align: center; font-family: var(--font-hand); font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.polaroid .pin { top: -8px; }
.polaroid--asado { left: 0; top: 0; transform: rotate(-6deg); }
.polaroid--mate { right: 0; bottom: 0; transform: rotate(5deg); }
.wallcal__ideas { list-style: none; padding: 0; margin: 1.4rem 0 0; color: var(--cloth-cream); font-size: 1rem; }
.wallcal__ideas li { position: relative; padding: .35rem 0 .35rem 1.6rem; }
.wallcal__ideas strong { color: #FFF4DF; }
.dot { position: absolute; left: 0; top: .72rem; width: .85rem; height: .85rem; border-radius: 50%; border: 2.5px solid; }
.dot--saffron { border-color: var(--saffron); }
.dot--green { border-color: #9DBB66; }
.dot--red { border-color: #E5694F; }

/* ---------- Migas de pan ---------- */
.crumbs { margin: 0 0 1.8rem; font-size: .95rem; color: var(--cloth-cream); }
.crumbs a { color: var(--saffron); text-decoration: underline dashed rgba(232,163,61,.7); }
.crumbs a:hover { color: #FFD38A; }
.crumbs .sep { margin: 0 .35rem; opacity: .7; }

/* ---------- Diseños internos ---------- */
.layout-with-sidebar { display: grid; grid-template-columns: minmax(0, 67%) minmax(0, 27%); justify-content: space-between; align-items: start; }
.layout-single { display: block; width: 85%; margin-left: auto; margin-right: auto; }
.content-area { min-width: 0; }
.list-head { margin-bottom: 1.6rem; }
.list-head__intro { color: var(--cloth-cream); max-width: 48rem; }
.list-head__intro a { color: var(--saffron); }

.paper-sheet {
    position: relative;
    padding: 2.4rem 2.5rem 2rem;
    background: var(--card);
    color: var(--ink);
    border: 1px solid var(--line);
    box-shadow: 2px 8px 16px rgba(0,0,0,.35);
    margin-bottom: 2rem;
}
.entry__head { margin-bottom: 1.4rem; padding-bottom: 1rem; background: var(--wave-green) repeat-x left bottom / 36px 8px; }
.entry__title { margin: 0 0 .4rem; font-size: clamp(1.8rem, 3.4vw, 2.5rem); color: var(--ink); }
.entry__meta { margin: 0; font-size: .92rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: .4rem 1rem; }
.entry__cat a { color: var(--parsley-dark); }
.entry__cover { margin: 0 0 1.6rem; }
.entry__cover img { display: block; width: 100%; height: auto; }
.entry__content { font-size: 1.08rem; }
.entry__content h2 { font-size: 1.75rem; color: #5A1E16; }
.entry__content h3 { font-size: 1.4rem; color: #5A1E16; }
.entry__content h4 { font-size: 1.2rem; }
.entry__content img { display: block; height: auto; }
.entry__content ul li::marker { color: var(--cloth-red); }
.entry__content ol li::marker { color: var(--cloth-red); font-weight: 600; }
.entry__content .alignleft { float: left; margin: .3rem 1.4rem 1rem 0; }
.entry__content .alignright { float: right; margin: .3rem 0 1rem 1.4rem; }
.entry__content .aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption-text, figcaption { font-size: .88rem; color: var(--muted); }
.entry__tags { margin: 1.4rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.entry__tags a { padding: .15rem .6rem; background: #EADCC0; color: var(--ink); text-decoration: none; font-size: .9rem; }
.entry__tags a:hover { background: var(--saffron); }

.post-steps { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.2rem; margin-bottom: 2rem; }
.post-steps__link { display: block; padding: 1rem 1.2rem; background: #F4E9C9; color: var(--ink); text-decoration: none; font-family: var(--font-hand); font-weight: 700; border: 1px solid var(--line); }
.post-steps__link span { display: block; font-family: var(--font-text); font-weight: 400; font-size: .85rem; color: var(--muted); }
.post-steps__link:hover { background: var(--saffron); color: var(--ink); }
.post-steps__link--next { grid-column: 2; text-align: right; }

/* ---------- Barra lateral ---------- */
.sidebar { min-width: 0; }
.sidebar .widget {
    position: relative;
    margin-bottom: 2rem;
    padding: 1.6rem 1.5rem 1.2rem;
    background: #EFE2C6;
    color: var(--ink);
    border: 1px solid var(--line);
    border-top: 6px solid var(--cloth-red);
}
.sidebar .widget-title { margin: 0 0 .8rem; font-size: 1.35rem; color: var(--ink); }
.sidebar .widget ul { list-style: none; padding: 0; margin: 0; }
.sidebar .widget li { padding: .45rem 0; border-bottom: 1px dashed var(--line); }
.sidebar .widget li:last-child { border-bottom: 0; }
.sidebar .widget a { color: var(--parsley-dark); }
.sidebar .widget a:hover { color: var(--cloth-red); }
.sidebar .widget .post-date { display: block; font-size: .85rem; color: #6E5340; }

/* ---------- Paginación ---------- */
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin: 2.6rem 0 1rem; }
.pager .page-numbers {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 2.6rem; padding: .4rem .8rem;
    background: #F4E9C9;
    color: var(--ink);
    font-family: var(--font-hand); font-weight: 700;
    text-decoration: none;
    border: 1px solid var(--line);
    transform: rotate(-1deg);
}
.pager .page-numbers:nth-child(even) { transform: rotate(1deg); }
.pager a.page-numbers:hover { background: var(--saffron-soft); }
.pager .page-numbers.current { background: var(--saffron); border-color: var(--saffron); }
.pager .page-numbers.dots { background: none; border: 0; color: var(--cloth-cream); }

/* ---------- Búsqueda ---------- */
.seek { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1rem 0 1.4rem; }
.seek__field { flex: 1 1 14rem; min-width: 0; padding: .6rem .8rem; font: inherit; color: var(--ink); background: #FFFDF8; border: 1px solid var(--muted); border-radius: 0; }
.seek__btn { padding: .6rem 1.3rem; font-family: var(--font-hand); font-weight: 700; font-size: 1.05rem; color: var(--ink); background: var(--saffron); border: 0; cursor: pointer; }
.seek__btn:hover { background: var(--saffron-soft); }

/* ---------- 404 ---------- */
.lost { text-align: center; }
.lost__code { margin: 0; font-family: var(--font-hand); font-weight: 700; font-size: clamp(4rem, 12vw, 7rem); line-height: 1; color: var(--cloth-red); transform: rotate(-3deg); }
.lost .seek { justify-content: center; max-width: 34rem; margin-left: auto; margin-right: auto; }

/* ---------- Comentarios ---------- */
.comments-box__title { margin-top: 0; font-size: 1.6rem; }
.comment-list { list-style: none; padding: 0; margin: 0 0 2rem; }
.comment-list .children { list-style: none; padding-left: 1.6rem; margin: 0; border-left: 2px dashed var(--line); }
.note-comment__body { padding: 1rem 0; border-bottom: 1px dashed var(--line); }
.note-comment__head { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .8rem; margin-bottom: .4rem; }
.note-comment__head img { border-radius: 50%; display: block; }
.note-comment__author { font-family: var(--font-hand); font-weight: 700; font-size: 1.1rem; }
.note-comment__date { font-size: .85rem; color: var(--muted); }
.note-comment__wait { font-style: italic; color: var(--cloth-red); }
.note-comment__reply a { font-size: .9rem; }
.comment-respond .comment-reply-title { font-size: 1.45rem; }
.comment-form p { margin-bottom: 1rem; }
.comment-form label { display: block; font-weight: 600; margin-bottom: .25rem; }
.comment-form-cookies-consent label { display: inline; font-weight: 400; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
    width: 100%; padding: .6rem .75rem; font: inherit; color: var(--ink); background: #FFFDF8; border: 1px solid var(--muted); border-radius: 0;
}
.comment-form .submit { padding: .65rem 1.5rem; font-family: var(--font-hand); font-weight: 700; font-size: 1.08rem; color: var(--ink); background: var(--saffron); border: 0; cursor: pointer; }
.comment-form .submit:hover { background: var(--saffron-soft); }
.comments-box .nav-links { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; }

/* ---------- Pie: bordó ---------- */
.cellar {
    background-color: var(--bordeaux);
    background-image:
        repeating-linear-gradient(0deg, rgba(255,255,255,.025) 0 1px, transparent 1px 4px),
        repeating-linear-gradient(90deg, rgba(0,0,0,.06) 0 1px, transparent 1px 4px);
    color: var(--cloth-cream);
    border-top: 6px solid var(--bordeaux-deep);
}
.cellar__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.6rem; padding: 3rem 0 2.4rem; }
.cellar__col { min-width: 0; }
.cellar .widget { margin-bottom: 1.4rem; color: var(--cloth-cream); }
.cellar .widget-title { margin: 0 0 .7rem; font-size: 1.4rem; color: var(--saffron); }
.cellar .widget p, .cellar .widget li, .cellar .textwidget { color: #EADBC3; font-size: .98rem; }
.cellar .widget ul { list-style: none; padding: 0; margin: 0; }
.cellar .widget li { padding: .2rem 0; }
.cellar .widget a { color: var(--cloth-cream); text-decoration: underline dashed rgba(242,228,206,.45); }
.cellar .widget a:hover { color: var(--saffron); text-decoration-color: var(--saffron); }
.cellar .widget .post-date { color: #CBB497; }
.cellar__base { background: var(--bordeaux-deep); }
.cellar__base p { margin: 0 auto; padding: 1rem 0; text-align: center; font-size: .9rem; color: #E2D0B5; }

/* ---------- Aviso de cookies ---------- */
.cookie-banner {
    position: fixed;
    left: 1rem; right: 1rem; bottom: 1rem;
    z-index: 90;
    max-width: 46rem;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .9rem 1.4rem;
    padding: 1.1rem 1.4rem;
    background: var(--card);
    color: var(--ink);
    border: 1px solid var(--line);
    border-top: 6px solid var(--cloth-red);
    box-shadow: 0 10px 24px rgba(0,0,0,.45);
}
.cookie-banner__text { flex: 1 1 18rem; margin: 0; font-size: .95rem; min-width: 0; }
.cookie-banner__btn { padding: .55rem 1.6rem; font-family: var(--font-hand); font-weight: 700; font-size: 1.05rem; color: var(--ink); background: var(--saffron); border: 0; cursor: pointer; }
.cookie-banner__btn:hover { background: var(--saffron-soft); }

/* ---------- Gutenberg básicos ---------- */
.wp-block-image img { height: auto; }
.wp-block-table td, .wp-block-table th { border: 1px solid var(--line); }
.wp-block-quote { border-left: 5px solid var(--saffron); }
.wp-block-button__link { background: var(--saffron); color: var(--ink); border-radius: 0; font-family: var(--font-hand); font-weight: 700; }

/* ---------- Adaptación ---------- */
@media (max-width: 1100px) {
    .wallcal { padding: 1.2rem 1rem 1.8rem 1.2rem; }
}

@media (max-width: 960px) {
    .front-duo { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
    .today { grid-template-columns: minmax(0, 1fr); }
    .today__note { transform: rotate(1deg); max-width: 34rem; justify-self: center; }
    .pantry { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "shelf shelf" "left right"; }
    .pantry__shelf { grid-area: shelf; }
    .pantry__labels--left { grid-area: left; }
    .pantry__labels--right { grid-area: right; }
    .layout-single .card-grid, .card-grid--three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .layout-with-sidebar { display: block; }
    .sidebar { margin-top: 2.6rem; }
    .layout-single { width: 100%; }
    .cellar__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .flourish-title::before, .flourish-title::after { display: none; }
}

@media (max-width: 760px) {
    .menu-toggle {
        display: inline-flex; align-items: center; gap: .6rem;
        padding: .55rem 1.1rem;
        background: #F4E9C9; color: var(--ink);
        border: 1px solid var(--line);
        font-family: var(--font-hand); font-weight: 700; font-size: 1.1rem;
        cursor: pointer;
    }
    .menu-toggle__bars, .menu-toggle__bars::before, .menu-toggle__bars::after { display: block; width: 20px; height: 2px; background: var(--ink); position: relative; }
    .menu-toggle__bars::before, .menu-toggle__bars::after { content: ""; position: absolute; left: 0; }
    .menu-toggle__bars::before { top: -6px; }
    .menu-toggle__bars::after { top: 6px; }
    .tag-nav { display: none; width: 100%; }
    .tag-nav.is-open { display: block; }
    .tag-menu { flex-direction: column; align-items: stretch; gap: 1.1rem; }
    .tag-menu a, .tag-menu li:nth-child(even) a { transform: none; }
}

@media (max-width: 600px) {
    body { font-size: 1rem; }
    .shell.front { width: 92%; }
    .tablecloth { padding: 1.8rem 0 2rem; }
    .brand-logo { width: 76px; }
    .woodtop { padding: 2rem 0 3rem; }
    .fs { margin-bottom: 3rem; }
    .rays-title::before, .rays-title::after { display: none; }
    .card-grid, .layout-single .card-grid, .card-grid--three { grid-template-columns: minmax(0, 1fr); }
    .pantry { grid-template-columns: minmax(0, 1fr); grid-template-areas: "shelf" "left" "right"; gap: 1.2rem; }
    .today__note { padding: 1.7rem 1.3rem 1.4rem; }
    .kraft { grid-template-columns: minmax(0, 1fr); padding: 1.5rem 1.2rem 1.3rem; transform: none; }
    .wallcal { display: flex; flex-wrap: wrap; gap: 1.2rem; padding: .8rem 0 0; }
    .wallcal__sheet { flex: 1 1 100%; transform: none; padding: 1.4rem .6rem .8rem; }
    .wallcal__day { min-height: 2.6rem; padding: .2rem; font-size: .76rem; }
    .wallcal__day--mark b { width: 1.4rem; height: 1.4rem; border-width: 2px; }
    .wallcal__day--mark small { display: none; }
    .wallcal__dow { font-size: .66rem; padding: .2rem 0; }
    .wallcal { justify-content: center; }
    .polaroid { position: static; flex: 0 1 44%; width: auto; max-width: 11rem; }
    .paper-sheet { padding: 2rem 1.3rem 1.5rem; }
    .post-steps { grid-template-columns: minmax(0, 1fr); }
    .post-steps__link--next { grid-column: auto; }
    .cellar__cols { grid-template-columns: minmax(0, 1fr); gap: 1.4rem; padding: 2.4rem 0 1.6rem; }
    .cookie-banner { left: .6rem; right: .6rem; bottom: .6rem; padding: 1rem 1.1rem; }
    .entry__content .alignleft, .entry__content .alignright { float: none; margin: 0 0 1rem; }
}
