/*
Theme Name: dds_estanciasanceferino.com.ar
Theme URI: https://estanciasanceferino.com.ar/
Author: Lucía Gutiérrez
Description: Tema a medida para un portal de viajes y ocio de Argentina, con estética de cuaderno de campo: papel cuadriculado, fotos pegadas con cinta, cintas de tela y anotaciones a mano.
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: scfr
*/

@font-face { font-family: "Dancing Script"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/dancing-script-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Dancing Script"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/dancing-script-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Lora"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/lora-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Lora"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/lora-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Lora"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/lora-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Lora"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/lora-latin-600-normal.woff2") format("woff2"); }

:root {
    --paper: #EFE7D3;
    --grid: rgba(91, 140, 168, .16);
    --leather: #3B2A1E;
    --leather-deep: #2B1E15;
    --pampa: #4A5D3A;
    --ink: #2E2318;
    --muted: #7A7A5C;
    --terra: #C1502E;
    --terra-dark: #9E3E22;
    --sky: #5B8CA8;
    --line: #8A6E4B;
    --cream: #F2E4C8;
    --menu: #E8D9B8;
    --torn: #E6D4BB;
    --sheet: #F7F1E3;
    --page: #F2EBE2;
    --tape: #DEC99D;
    --frame: #FBF8F1;
    --side: #E4D5B6;
    --hand: "Dancing Script", "Segoe Script", "Brush Script MT", cursive;
    --serif: "Lora", Georgia, "Times New Roman", serif;
    --wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='10' viewBox='0 0 40 10'%3E%3Cpath d='M0 5 Q10 0 20 5 T40 5' fill='none' stroke='%23C1502E' stroke-width='2'/%3E%3C/svg%3E");
    --torn-edge: polygon(0% 5px, 2.94% 2px, 5.88% 6px, 8.82% 10px, 11.76% 0px, 14.71% 1px, 17.65% 8px, 20.59% 1px, 23.53% 5px, 26.47% 9px, 29.41% 0px, 32.35% 8px, 35.29% 3px, 38.24% 0px, 41.18% 1px, 44.12% 6px, 47.06% 6px, 50% 1px, 52.94% 3px, 55.88% 1px, 58.82% 8px, 61.76% 6px, 64.71% 0px, 67.65% 9px, 70.59% 1px, 73.53% 3px, 76.47% 10px, 79.41% 10px, 82.35% 9px, 85.29% 0px, 88.24% 9px, 91.18% 9px, 94.12% 6px, 97.06% 0px, 100% 3px, 100% calc(100% - 9px), 97.06% calc(100% - 7px), 94.12% calc(100% - 5px), 91.18% calc(100% - 12px), 88.24% calc(100% - 6px), 85.29% calc(100% - 8px), 82.35% calc(100% - 10px), 79.41% calc(100% - 7px), 76.47% calc(100% - 3px), 73.53% calc(100% - 9px), 70.59% 100%, 67.65% calc(100% - 9px), 64.71% calc(100% - 1px), 61.76% calc(100% - 11px), 58.82% calc(100% - 8px), 55.88% calc(100% - 1px), 52.94% calc(100% - 5px), 50% calc(100% - 3px), 47.06% calc(100% - 10px), 44.12% calc(100% - 9px), 41.18% calc(100% - 9px), 38.24% calc(100% - 1px), 35.29% calc(100% - 2px), 32.35% calc(100% - 10px), 29.41% calc(100% - 8px), 26.47% calc(100% - 4px), 23.53% calc(100% - 9px), 20.59% calc(100% - 1px), 17.65% calc(100% - 8px), 14.71% calc(100% - 2px), 11.76% calc(100% - 6px), 8.82% calc(100% - 4px), 5.88% calc(100% - 2px), 2.94% calc(100% - 8px), 0% 100%);
}

/* ---------- Base ---------- */

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    overflow-x: hidden;
    font-family: var(--serif);
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--ink);
    background-color: var(--paper);
    background-image:
        linear-gradient(var(--grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid) 1px, transparent 1px);
    background-size: 22px 22px;
}

img { max-width: 100%; height: auto; }

a { color: var(--terra-dark); text-decoration: underline dashed 1px; text-underline-offset: 3px; transition: color .2s; }
a:hover, a:focus-visible { color: var(--terra); text-decoration-style: solid; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px dashed var(--sky); outline-offset: 3px; }

p { margin: 0 0 1.1em; }
h1, h2, h3, h4, h5, h6 { margin: 1.6em 0 .6em; line-height: 1.25; color: var(--ink); }
h1, h2, h3, h4, h5, h6, p, li, dd, blockquote, figcaption, td, th { overflow-wrap: break-word; hyphens: auto; }

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

.scfr-skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--cream); color: var(--ink); padding: .6rem 1rem; }
.scfr-skip:focus { left: 1rem; top: 1rem; }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

/* ---------- Botones ---------- */

.scfr-btn {
    display: inline-block;
    padding: .55rem 1.3rem;
    font-family: var(--serif);
    font-size: .95rem;
    font-weight: 500;
    line-height: 1.3;
    color: var(--ink);
    text-decoration: none;
    background: #F3E6C8;
    border: 0;
    border-radius: 3px 9px 4px 8px / 8px 3px 9px 4px;
    box-shadow: 0 2px 0 rgba(138, 110, 75, .45), 0 6px 12px -6px rgba(46, 35, 24, .45);
    transform: rotate(-1.5deg);
    cursor: pointer;
    transition: transform .2s, box-shadow .2s, background .2s, color .2s;
}
.scfr-btn:hover, .scfr-btn:focus-visible {
    color: #fff;
    background: var(--terra);
    transform: rotate(0deg) translateY(-2px);
    box-shadow: 0 3px 0 var(--terra-dark), 0 10px 16px -8px rgba(46, 35, 24, .5);
}

/* ---------- Cabecera: tapa de cuero ---------- */

.scfr-cover {
    position: relative;
    color: var(--cream);
    background-color: var(--leather);
    background-image:
        linear-gradient(90deg, rgba(232, 217, 184, .45) 55%, transparent 55%),
        linear-gradient(90deg, rgba(232, 217, 184, .45) 55%, transparent 55%),
        linear-gradient(rgba(59, 42, 30, .35), rgba(43, 30, 21, .55)),
        url("images/cuero.webp");
    background-size: 14px 1.5px, 14px 1.5px, auto, 458px auto;
    background-position: 0 10px, 0 calc(100% - 10px), 0 0, 0 0;
    background-repeat: repeat-x, repeat-x, no-repeat, repeat;
    border-bottom: 4px solid var(--leather-deep);
}
.scfr-cover::before, .scfr-cover::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 300px;
    height: 80px;
    transform: translateY(-60%);
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='80' viewBox='0 0 300 80'%3E%3Cg fill='none'%3E%3Cpath d='M40 6 74 40 40 74 6 40Z M140 6 174 40 140 74 106 40Z M240 6 274 40 240 74 206 40Z' stroke='%23140D08' stroke-width='3' opacity='.55'/%3E%3Cpath d='M40 9 71 40 40 71 9 40Z M140 9 171 40 140 71 109 40Z M240 9 271 40 240 71 209 40Z' stroke='%237A5A41' stroke-width='1.5' opacity='.5'/%3E%3Cpath d='M40 20 60 40 40 60 20 40Z M140 20 160 40 140 60 120 40Z M240 20 260 40 240 60 220 40Z' stroke='%23140D08' stroke-width='2' opacity='.35'/%3E%3C/g%3E%3C/svg%3E") no-repeat center / contain;
    pointer-events: none;
}
.scfr-cover::before { left: 0; }
.scfr-cover::after { right: 0; }

.scfr-cover__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2.2rem 0 1.4rem;
}

.scfr-brand {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    color: var(--cream);
    text-decoration: none;
}
.scfr-brand:hover, .scfr-brand:focus-visible { color: #fff; }
.scfr-brand__mark { flex: 0 0 auto; width: 104px; color: var(--cream); }
.scfr-brand__mark img, .scfr-compass { display: block; width: 100%; height: auto; }
.scfr-brand__mark .brand-logo { max-height: 120px; object-fit: contain; }
.scfr-brand__text { display: flex; flex-direction: column; min-width: 0; max-width: 720px; }
.scfr-brand__name {
    font-family: var(--hand);
    font-weight: 700;
    font-size: clamp(1.45rem, 2.6vw, 2.25rem);
    line-height: 1.15;
    color: var(--cream);
    text-shadow: 0 2px 0 rgba(0, 0, 0, .35);
}
.scfr-brand__desc {
    margin-top: .4rem;
    font-size: .88rem;
    font-style: italic;
    line-height: 1.5;
    color: var(--menu);
    opacity: .9;
}

.scfr-nav { margin-top: 1.2rem; }
.scfr-nav__list { display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem 2rem; margin: 0; padding: 0; list-style: none; }
.scfr-nav__list a {
    display: inline-block;
    padding: .3rem .1rem;
    font-size: 1.02rem;
    color: var(--menu);
    text-decoration: none;
    border-bottom: 1px dashed transparent;
    transition: color .2s, border-color .2s;
}
.scfr-nav__list a:hover, .scfr-nav__list a:focus-visible,
.scfr-nav__list .current-menu-item > a { color: #fff; border-bottom-color: var(--terra); }

.scfr-burger {
    display: none;
    align-items: center;
    gap: .6rem;
    margin-top: 1rem;
    padding: .45rem 1rem;
    font-family: var(--serif);
    font-size: .95rem;
    color: var(--cream);
    background: transparent;
    border: 1px dashed var(--menu);
    border-radius: 4px;
    cursor: pointer;
}
.scfr-burger__bars, .scfr-burger__bars::before, .scfr-burger__bars::after {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--cream);
    position: relative;
}
.scfr-burger__bars::before, .scfr-burger__bars::after { content: ""; position: absolute; left: 0; }
.scfr-burger__bars::before { top: -6px; }
.scfr-burger__bars::after { top: 6px; }

/* ---------- Escritorio (fondo con cinta y manchas) ---------- */

.scfr-desk {
    position: relative;
    overflow: hidden;
    padding-bottom: 3rem;
    background-image:
        radial-gradient(circle at 88% 9%, transparent 58px, rgba(150, 110, 60, .16) 60px, rgba(150, 110, 60, .05) 66px, transparent 70px),
        radial-gradient(circle at 6% 44%, transparent 70px, rgba(150, 110, 60, .13) 72px, rgba(150, 110, 60, .04) 80px, transparent 84px),
        radial-gradient(circle at 92% 84%, transparent 80px, rgba(150, 110, 60, .14) 82px, rgba(150, 110, 60, .05) 88px, transparent 92px),
        radial-gradient(ellipse at 3% 80%, rgba(180, 140, 80, .14), transparent 18%);
}
.home .scfr-desk::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: max(1.5%, calc(50% - 640px));
    width: 46px;
    background: url("images/tela-pampa.webp") repeat-y center top / 46px auto;
    box-shadow: 2px 0 6px rgba(46, 35, 24, .25), -2px 0 4px rgba(46, 35, 24, .15);
    z-index: 0;
    pointer-events: none;
}

/* ---------- Portada ---------- */

.scfr-front { position: relative; z-index: 1; width: min(85%, 1080px); margin: 0 auto; padding-top: 1.5rem; }

.scfr-sec { position: relative; padding: 2.8rem 0; }

.scfr-sec__title {
    margin: 0 0 2rem;
    font-family: var(--hand);
    font-weight: 700;
    font-size: clamp(2.2rem, 4.8vw, 3.4rem);
    line-height: 1.1;
    text-align: center;
    color: var(--ink);
}
.scfr-sec__title::after {
    content: "";
    display: block;
    width: 170px;
    height: 10px;
    margin: .55rem auto 0;
    background: var(--wave) repeat-x center / 40px 10px;
}

/* Hoja rasgada */
.scfr-band { position: relative; margin: 1.5rem 0; }
.scfr-band::before {
    content: "";
    position: absolute;
    top: 48px;
    left: -200%;
    right: -200%;
    height: 42px;
    background: url("images/tela-pampa-h.webp") repeat-x left center / auto 42px;
    box-shadow: 0 2px 6px rgba(46, 35, 24, .25);
    z-index: 0;
}
.scfr-sheet {
    z-index: 1;
    padding: 3.2rem 2.6rem;
    background-color: var(--torn);
    background-image:
        radial-gradient(ellipse at 15% 20%, rgba(255, 248, 230, .55), transparent 45%),
        radial-gradient(ellipse at 85% 85%, rgba(160, 120, 70, .18), transparent 50%),
        radial-gradient(circle at 92% 12%, transparent 34px, rgba(140, 100, 55, .14) 36px, transparent 42px);
    clip-path: var(--torn-edge);
}

/* Bloque 1: rutas */
.scfr-routes__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2.6rem;
    align-items: center;
}
.scfr-map, .scfr-film { margin: 0; min-width: 0; }
.scfr-map {
    position: relative;
    transform: rotate(-1.6deg);
    filter: drop-shadow(0 8px 10px rgba(46, 35, 24, .25));
}
.scfr-map img, .scfr-film img { display: block; width: 100%; height: auto; }
.scfr-map img { aspect-ratio: 866 / 580; object-fit: cover; }
.scfr-map__label {
    position: absolute;
    font-family: var(--hand);
    font-weight: 700;
    font-size: clamp(.95rem, 1.9vw, 1.4rem);
    line-height: 1;
    color: var(--ink);
    white-space: nowrap;
}
.scfr-map__label--title { left: 7%; top: 9%; font-size: clamp(1.3rem, 2.8vw, 2.1rem); }
.scfr-map__label--salta { left: 38%; top: 32%; }
.scfr-map__label--cafayate { left: 20%; top: 64%; }
.scfr-map__label--quebrada { left: 40%; top: 83%; }

.scfr-film {
    padding: 18px 12px;
    background-color: #141110;
    background-image:
        radial-gradient(circle, #3a332c 2.2px, transparent 2.8px),
        radial-gradient(circle, #3a332c 2.2px, transparent 2.8px);
    background-size: 18px 18px, 18px 18px;
    background-position: 0 0, 0 100%;
    background-repeat: repeat-x;
    transform: rotate(1.4deg);
    box-shadow: 0 12px 22px -10px rgba(46, 35, 24, .6);
}
.scfr-film img { aspect-ratio: 801 / 528; object-fit: cover; }

.scfr-routes__text {
    position: relative;
    width: min(100%, 780px);
    margin: 2.4rem auto 0;
    padding: 1.6rem 2rem 1.3rem;
    background: rgba(251, 246, 234, .82);
    border: 1px dashed var(--line);
    border-radius: 2px;
    box-shadow: 0 6px 14px -10px rgba(46, 35, 24, .45);
}
.scfr-routes__text p { margin-bottom: 1rem; }
.scfr-routes__tags { display: flex; flex-wrap: wrap; gap: .5rem .8rem; margin: 0; padding: 0; list-style: none; }
.scfr-routes__tags li {
    padding: .15rem .8rem;
    font-size: .85rem;
    color: #fff;
    background: var(--sky);
    border-radius: 2px 8px 3px 7px;
}
.scfr-routes__tags li:nth-child(2) { background: var(--pampa); }
.scfr-routes__tags li:nth-child(3) { background: var(--terra); }

/* Bloque 2: cuaderno de recetas */
.scfr-book {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 36px minmax(0, 1fr);
    padding: 14px;
    background: linear-gradient(135deg, #9A7A55, #7A5C3E);
    border-radius: 8px;
    box-shadow: 0 16px 26px -14px rgba(46, 35, 24, .7), inset 0 0 0 1px rgba(0, 0, 0, .2);
}
.scfr-book__page {
    min-width: 0;
    padding: 1.8rem 1.8rem 1.6rem;
    background-color: var(--page);
    background-image: repeating-linear-gradient(transparent 0 29px, rgba(91, 140, 168, .18) 29px 30px);
}
.scfr-book__page--left { border-radius: 4px 0 0 4px; box-shadow: inset -14px 0 18px -14px rgba(46, 35, 24, .35); }
.scfr-book__page--right { border-radius: 0 4px 4px 0; box-shadow: inset 14px 0 18px -14px rgba(46, 35, 24, .35); }
.scfr-book__rings {
    background:
        repeating-linear-gradient(to bottom, transparent 0 16px, #3B2F25 16px 19px, #9C9184 19px 22px, #3B2F25 22px 25px, transparent 25px 42px) center / 30px 100% no-repeat,
        linear-gradient(90deg, var(--page), #D9CDBD 50%, var(--page));
}
.scfr-book__sketch { position: relative; margin: 0; }
.scfr-book__sketch img {
    display: block; width: 100%; height: auto; aspect-ratio: 739 / 545; object-fit: cover; mix-blend-mode: multiply;
    -webkit-mask-image: radial-gradient(ellipse 72% 72% at 50% 50%, #000 62%, transparent 100%);
    mask-image: radial-gradient(ellipse 72% 72% at 50% 50%, #000 62%, transparent 100%);
}
.scfr-book__note {
    position: absolute;
    font-family: var(--hand);
    font-weight: 700;
    font-size: clamp(1rem, 2vw, 1.45rem);
    line-height: 1;
    color: var(--ink);
}
.scfr-book__note--top { left: 75%; top: 5%; }
.scfr-book__note--bottom { left: 6%; top: 85%; }
.scfr-book__title { margin: 0 0 1rem; font-family: var(--hand); font-weight: 700; font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.scfr-recipes { margin: 0 0 1.2rem; padding: 0; list-style: none; counter-reset: rec; }
.scfr-recipes li {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: .45rem 0 .45rem 2.3rem;
    border-bottom: 1px dotted var(--line);
    counter-increment: rec;
}
.scfr-recipes li::before {
    content: counter(rec);
    position: absolute;
    left: 0;
    top: .55rem;
    width: 1.6rem;
    height: 1.6rem;
    font-size: .85rem;
    line-height: 1.6rem;
    text-align: center;
    color: #fff;
    background: var(--terra);
    border-radius: 50%;
}
.scfr-recipes__dish { font-weight: 600; }
.scfr-recipes__meta { font-size: .85rem; color: var(--muted); }
.scfr-book__foot { margin: 0; font-size: .85rem; font-style: italic; color: var(--muted); }

/* Bloque central: últimas notas */
.scfr-notes {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.6rem 2.2rem;
    padding-top: 1rem;
}
.card { display: flex; flex-direction: column; min-width: 0; }
.card-body { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.card-excerpt p { margin: 0 0 .5em; background: none; }

.scfr-note {
    position: relative;
    padding: 14px 14px 18px;
    background: var(--frame);
    box-shadow: 0 1px 1px rgba(0, 0, 0, .08), 0 14px 22px -12px rgba(46, 35, 24, .55);
    transform: rotate(-1.8deg);
    transition: transform .25s, box-shadow .25s;
}
.scfr-notes > .scfr-note:nth-child(3n+2) { transform: rotate(1deg); }
.scfr-notes > .scfr-note:nth-child(3n) { transform: rotate(2deg); }
.scfr-notes > .scfr-note:hover, .scfr-notes > .scfr-note:focus-within {
    transform: rotate(0deg) translateY(-6px);
    box-shadow: 0 2px 2px rgba(0, 0, 0, .08), 0 22px 30px -14px rgba(46, 35, 24, .6);
}
.scfr-note__tape {
    position: absolute;
    top: -14px;
    left: 50%;
    width: 112px;
    height: 30px;
    margin-left: -56px;
    background: rgba(222, 201, 157, .85);
    clip-path: polygon(3% 8%, 22% 0, 45% 10%, 70% 0, 97% 6%, 100% 92%, 76% 100%, 52% 90%, 25% 100%, 0 92%);
    transform: rotate(-3deg);
    z-index: 2;
}
.scfr-note__photo { overflow: hidden; background: #ddd; }
.scfr-note__photo a { display: block; }
.scfr-note__photo img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 15; object-fit: cover; filter: sepia(.12) saturate(1.05); transition: transform .4s; }
.scfr-note:hover .scfr-note__photo img { transform: scale(1.04); }
.scfr-note__body { padding: .9rem .4rem 0; text-align: center; }
.scfr-note__title { margin: 0 0 .5rem; font-family: var(--hand); font-weight: 700; font-size: 1.55rem; line-height: 1.15; }
.scfr-note__title a { color: var(--ink); text-decoration: none; }
.scfr-note__title a:hover, .scfr-note__title a:focus-visible { color: var(--terra); }
.scfr-note__excerpt { font-size: .93rem; line-height: 1.6; color: var(--ink); }
.scfr-note__excerpt p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.scfr-note__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; margin-top: auto; padding-top: .8rem; }
.scfr-note__date { font-size: .82rem; color: var(--muted); }
.scfr-latest__more { margin: 2.4rem 0 0; text-align: center; }
.scfr-empty { font-style: italic; color: var(--muted); text-align: center; }

/* Bloque 3: agenda */
.scfr-cal { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.8rem; }
.scfr-cal__month {
    position: relative;
    min-width: 0;
    padding: 1.6rem 1.2rem 1.2rem;
    background-color: #F6E9CF;
    background-image: radial-gradient(circle at 50% 0, var(--torn) 4px, transparent 4.5px);
    background-size: 16px 10px;
    background-repeat: repeat-x;
    box-shadow: 0 8px 14px -10px rgba(46, 35, 24, .55);
}
.scfr-cal__month:nth-child(2) { transform: rotate(.8deg); }
.scfr-cal__month:nth-child(3) { transform: rotate(-.7deg); }
.scfr-cal__name { margin: 0 0 .8rem; font-size: 1.15rem; font-weight: 600; text-align: center; letter-spacing: .03em; }
.scfr-cal__days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid rgba(138, 110, 75, .55); border-left: 1px solid rgba(138, 110, 75, .55); }
.scfr-cal__day {
    padding: .2rem .25rem;
    min-height: 2rem;
    font-size: .74rem;
    line-height: 1.2;
    border-right: 1px solid rgba(138, 110, 75, .55);
    border-bottom: 1px solid rgba(138, 110, 75, .55);
}
.scfr-cal__day.is-fest { font-weight: 600; color: var(--terra-dark); background: rgba(193, 80, 46, .14); }
.scfr-cal__event { margin: .9rem 0 .3rem; font-family: var(--hand); font-weight: 700; font-size: 1.45rem; line-height: 1.1; color: var(--terra); }
.scfr-cal__event--stamp {
    display: inline-block;
    padding: .15rem .8rem;
    border: 2px dashed var(--terra);
    border-radius: 6px;
    transform: rotate(-4deg);
}
.scfr-cal__note { margin: 0; font-size: .84rem; line-height: 1.55; color: var(--ink); }
.scfr-agenda__extra {
    margin: 1.8rem 0 0;
    padding: 1rem 1.3rem;
    font-size: .92rem;
    background: rgba(251, 246, 234, .7);
    border-left: 4px solid var(--sky);
}

/* Bloque 4: equipaje */
.scfr-pack__board { position: relative; margin: 0; }
.scfr-pack__board img { display: block; width: 100%; height: auto; aspect-ratio: 1504 / 780; filter: drop-shadow(0 10px 14px rgba(46, 35, 24, .25)); }
.scfr-pack__pin {
    position: absolute;
    width: 2.1rem;
    height: 2.1rem;
    font-family: var(--hand);
    font-weight: 700;
    font-size: 1.25rem;
    line-height: 2.1rem;
    text-align: center;
    color: #fff;
    background: var(--terra);
    border: 2px solid var(--frame);
    border-radius: 50%;
    box-shadow: 0 3px 6px rgba(46, 35, 24, .4);
}
.scfr-pack__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .8rem 2.4rem;
    margin: 2rem 0 0;
    padding: 0;
    list-style: none;
    counter-reset: pack;
}
.scfr-pack__list li { position: relative; min-width: 0; padding-left: 2.8rem; font-size: .95rem; counter-increment: pack; }
.scfr-pack__list li::before {
    content: counter(pack);
    position: absolute;
    left: 0;
    top: .1rem;
    font-family: var(--hand);
    font-weight: 700;
    font-size: 1.7rem;
    line-height: 1;
    color: var(--terra);
}
.scfr-pack__list strong { font-family: var(--hand); font-size: 1.3rem; font-weight: 700; }

/* ---------- Páginas interiores ---------- */

.scfr-inner { position: relative; z-index: 1; padding: 1.8rem 0 3rem; }

.scfr-crumbs { margin-bottom: 1.6rem; font-size: .88rem; color: var(--muted); }
.scfr-crumbs a { color: var(--sky); text-decoration: underline dotted 1px; }
.scfr-crumbs a:hover { color: var(--terra); }
.scfr-crumbs__sep { margin: 0 .3rem; color: var(--line); }

.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 67fr) minmax(0, 27fr);
    column-gap: 6%;
    align-items: start;
}
.layout-single { display: block; }
.layout-single > .content-area { width: 85%; margin-left: auto; margin-right: auto; }
.content-area {
    min-width: 0;
    padding: 2.4rem 2.6rem;
    background: var(--sheet);
    background-image: repeating-linear-gradient(transparent 0 31px, rgba(91, 140, 168, .1) 31px 32px);
    border: 1px solid rgba(138, 110, 75, .3);
    box-shadow: 0 14px 26px -18px rgba(46, 35, 24, .6);
}

.scfr-page-head { margin-bottom: 1.8rem; }
.scfr-page-title {
    margin: 0 0 .4rem;
    font-family: var(--hand);
    font-weight: 700;
    font-size: clamp(2rem, 4vw, 2.9rem);
    line-height: 1.15;
}
.scfr-page-title::after { content: ""; display: block; width: 130px; height: 10px; margin-top: .4rem; background: var(--wave) repeat-x left center / 40px 10px; }
.scfr-page-lead { color: var(--muted); font-style: italic; }

.scfr-notes--list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.6rem 2rem; padding-top: 1.2rem; }
.layout-single .scfr-notes--list { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.scfr-entry__meta { display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-size: .88rem; color: var(--muted); }
.scfr-entry__cat a { color: var(--sky); }
.scfr-entry__photo { margin: 0 0 1.8rem; padding: 12px; background: var(--frame); box-shadow: 0 10px 18px -12px rgba(46, 35, 24, .55); transform: rotate(-.6deg); }
.scfr-entry__photo img { display: block; width: 100%; height: auto; }
.scfr-entry__content h2 { font-family: var(--hand); font-weight: 700; font-size: 2rem; }
.scfr-entry__content h3 { font-size: 1.3rem; }
.scfr-entry__content ul, .scfr-entry__content ol { padding-left: 1.4rem; margin: 0 0 1.2em; }
.scfr-entry__content li { margin-bottom: .35em; }
.scfr-entry__content ul li::marker { color: var(--terra); }
.scfr-entry__content img { display: block; height: auto; }
.scfr-entry__content figure { margin: 1.6rem 0; }
.scfr-entry__content figcaption { font-size: .85rem; font-style: italic; color: var(--muted); text-align: center; }
.scfr-entry__content blockquote {
    margin: 1.8rem 0;
    padding: 1.2rem 1.6rem;
    font-family: var(--hand);
    font-size: 1.45rem;
    line-height: 1.4;
    background: rgba(230, 212, 187, .6);
    border-left: 4px solid var(--terra);
}
.scfr-entry__content blockquote p:last-child { margin-bottom: 0; }
.scfr-entry__content table { width: 100%; margin: 1.6rem 0; border-collapse: collapse; border: 1px solid var(--line); font-size: .93rem; }
.scfr-entry__content th, .scfr-entry__content td { padding: .55rem .7rem; text-align: left; border: 1px solid var(--line); }
.scfr-entry__content th { background: var(--torn); }
.scfr-entry__content pre { overflow-x: auto; padding: 1rem; background: #EDE3CC; }
.scfr-entry__tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; font-size: .88rem; }
.scfr-entry__tags a { padding: .1rem .6rem; color: var(--ink); text-decoration: none; background: var(--tape); border-radius: 2px 6px 2px 6px; }
.scfr-entry__tags a:hover { color: #fff; background: var(--terra); }

.scfr-near { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 2rem; }
.scfr-near__link { display: block; min-width: 0; padding: 1rem 1.2rem; color: var(--ink); text-decoration: none; background: var(--sheet); border: 1px dashed var(--line); }
.scfr-near__link span { display: block; font-size: .8rem; color: var(--muted); }
.scfr-near__link--next { grid-column: 2; text-align: right; }
.scfr-near__link:hover { border-style: solid; border-color: var(--terra); color: var(--terra-dark); }

/* Barra lateral */
.scfr-side {
    min-width: 0;
    padding: 1.6rem 1.5rem;
    color: var(--ink);
    background-color: var(--side);
    background-image: radial-gradient(rgba(138, 110, 75, .18) 1px, transparent 1px);
    background-size: 14px 14px;
    border-top: 6px solid var(--pampa);
    box-shadow: 0 12px 22px -16px rgba(46, 35, 24, .6);
}
.scfr-side .scfr-widget { margin-bottom: 1.8rem; color: var(--ink); }
.scfr-side .scfr-widget:last-child { margin-bottom: 0; }
.scfr-side .scfr-widget__title { margin: 0 0 .8rem; font-family: var(--hand); font-weight: 700; font-size: 1.6rem; color: var(--ink); }
.scfr-side ul { margin: 0; padding: 0; list-style: none; }
.scfr-side li { padding: .45rem 0; border-bottom: 1px dashed rgba(138, 110, 75, .6); }
.scfr-side a { color: var(--ink); text-decoration: none; }
.scfr-side a:hover, .scfr-side a:focus-visible { color: var(--terra-dark); text-decoration: underline dashed 1px; }
.scfr-side .post-date { display: block; font-size: .8rem; color: #5E5E45; }

/* Paginación */
.scfr-pager { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: 2.6rem; }
.scfr-pager .page-numbers {
    display: inline-block;
    min-width: 2.4rem;
    padding: .35rem .8rem;
    font-size: .95rem;
    text-align: center;
    color: var(--ink);
    text-decoration: none;
    background: #F3E6C8;
    border-radius: 3px 8px 4px 7px / 7px 3px 8px 4px;
    box-shadow: 0 2px 0 rgba(138, 110, 75, .45);
}
.scfr-pager a.page-numbers:hover, .scfr-pager a.page-numbers:focus-visible { color: #fff; background: var(--terra); }
.scfr-pager .page-numbers.current { color: #fff; background: var(--terra); box-shadow: 0 2px 0 var(--terra-dark); }
.scfr-pager .page-numbers.dots { background: none; box-shadow: none; }

/* Búsqueda */
.scfr-search { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.2rem 0; }
.scfr-search__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.scfr-search__field {
    flex: 1 1 220px;
    min-width: 0;
    padding: .55rem .9rem;
    font: inherit;
    font-size: .95rem;
    color: var(--ink);
    background: #FFFBF1;
    border: 1px dashed var(--line);
    border-radius: 2px;
}
.scfr-search__btn { transform: none; }

.scfr-empty-box { text-align: center; }
.scfr-lost { text-align: center; }
.scfr-lost__code { margin: 0; font-family: var(--hand); font-weight: 700; font-size: clamp(4rem, 12vw, 7rem); line-height: 1; color: var(--terra); }
.scfr-lost .scfr-page-title::after { margin-left: auto; margin-right: auto; }
.scfr-lost .scfr-search { justify-content: center; }

/* Comentarios */
.scfr-comments { margin-top: 2.4rem; padding: 2rem 2.2rem; background: var(--sheet); border: 1px solid rgba(138, 110, 75, .3); }
.scfr-comments__title, .comment-reply-title { margin: 0 0 1.2rem; font-family: var(--hand); font-weight: 700; font-size: 1.9rem; }
.scfr-comments__list, .scfr-comments__list .children { margin: 0; padding: 0; list-style: none; }
.scfr-comments__list .children { padding-left: 1.6rem; border-left: 2px dashed var(--tape); }
.scfr-comment__body { margin-bottom: 1.2rem; padding: 1rem 1.2rem; background: #FFFBF1; border: 1px solid rgba(138, 110, 75, .25); }
.scfr-comment__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .8rem; margin-bottom: .5rem; }
.scfr-comment__meta img { border-radius: 50%; }
.scfr-comment__author { font-weight: 600; }
.scfr-comment__date { font-size: .8rem; color: var(--muted); }
.scfr-comment__wait { font-style: italic; color: var(--terra-dark); }
.scfr-comment__reply a { font-size: .85rem; }
.comment-form p { margin-bottom: 1rem; }
.comment-form label { display: block; margin-bottom: .3rem; font-size: .9rem; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
    width: 100%;
    padding: .55rem .8rem;
    font: inherit;
    color: var(--ink);
    background: #FFFBF1;
    border: 1px dashed var(--line);
    border-radius: 2px;
}
.comment-form-cookies-consent { display: flex; gap: .5rem; align-items: flex-start; }
.comment-form-cookies-consent label { display: inline; }
.comment-form .submit {
    padding: .6rem 1.4rem;
    font: inherit;
    color: #fff;
    background: var(--terra);
    border: 0;
    border-radius: 3px 9px 4px 8px / 8px 3px 9px 4px;
    box-shadow: 0 2px 0 var(--terra-dark);
    cursor: pointer;
}
.comment-form .submit:hover { background: var(--terra-dark); }

/* ---------- Pie: contratapa ---------- */

.scfr-back {
    position: relative;
    z-index: 1;
    color: var(--menu);
    background-color: var(--leather);
    background-image:
        linear-gradient(90deg, rgba(232, 217, 184, .45) 55%, transparent 55%),
        linear-gradient(rgba(59, 42, 30, .4), rgba(43, 30, 21, .6)),
        url("images/cuero.webp");
    background-size: 14px 1.5px, auto, 458px auto;
    background-position: 0 12px, 0 0, 0 0;
    background-repeat: repeat-x, no-repeat, repeat;
    border-top: 4px solid var(--leather-deep);
    padding: 3rem 0 1.6rem;
}
.scfr-back__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.4rem; }
.scfr-back__col { min-width: 0; }
.scfr-back .scfr-widget { color: var(--menu); font-size: .93rem; }
.scfr-back .scfr-widget__title { margin: 0 0 .8rem; font-family: var(--hand); font-weight: 700; font-size: 1.7rem; color: var(--cream); }
.scfr-back .scfr-widget p { color: var(--menu); }
.scfr-back ul { margin: 0; padding: 0; list-style: none; }
.scfr-back li { padding: .25rem 0; }
.scfr-back a { color: var(--cream); text-decoration: underline dashed 1px rgba(232, 217, 184, .6); }
.scfr-back a:hover, .scfr-back a:focus-visible { color: #fff; text-decoration-color: var(--terra); }
.scfr-back__copy { margin: 2.4rem 0 0; padding-top: 1.2rem; font-size: .88rem; text-align: center; color: var(--menu); border-top: 1px dashed rgba(232, 217, 184, .35); }

/* ---------- Aviso de cookies ---------- */

.cookie-banner[hidden] { display: none !important; }
.cookie-banner {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 90;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: .8rem 1.4rem;
    padding: 1rem 1.6rem;
    color: var(--cream);
    background: var(--leather);
    border: 1px dashed var(--menu);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}
.cookie-banner__text { margin: 0; font-size: .9rem; color: var(--cream); }
.cookie-banner__ok { transform: none; }

/* ---------- WordPress ---------- */

.alignleft { float: left; margin: .4rem 1.4rem 1rem 0; }
.alignright { float: right; margin: .4rem 0 1rem 1.4rem; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: .85rem; color: var(--muted); }
.sticky .scfr-note__title::before { content: "★ "; color: var(--terra); }
.bypostauthor > .scfr-comment__body { border-color: var(--sky); }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }

/* ---------- Adaptación ---------- */

@media (max-width: 960px) {
    .scfr-cover::before, .scfr-cover::after { display: none; }
    .home .scfr-desk::before { display: none; }
    .scfr-front { width: 92%; }
    .scfr-notes, .layout-single .scfr-notes--list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .scfr-cal { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .layout-with-sidebar { display: block; }
    .layout-with-sidebar .scfr-side { margin-top: 2rem; }
    .layout-single > .content-area { width: 100%; }
    .scfr-back__cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

@media (max-width: 760px) {
    .scfr-brand { flex-direction: column; text-align: center; gap: .8rem; }
    .scfr-brand__mark { width: 84px; }
    .scfr-burger { display: inline-flex; }
    .scfr-nav { display: none; width: 100%; margin-top: .8rem; }
    .scfr-nav.is-open { display: block; }
    .scfr-nav__list { flex-direction: column; align-items: center; gap: .2rem; }
    .scfr-routes__grid { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
    .scfr-book { grid-template-columns: minmax(0, 1fr); }
    .scfr-book__rings { height: 30px; background: repeating-linear-gradient(90deg, transparent 0 16px, #3B2F25 16px 19px, #9C9184 19px 22px, #3B2F25 22px 25px, transparent 25px 42px) center / 100% 26px no-repeat, var(--page); }
    .scfr-book__page--left, .scfr-book__page--right { border-radius: 4px; box-shadow: none; }
}

@media (max-width: 600px) {
    body { font-size: 1rem; }
    .scfr-sec { padding: 2rem 0; }
    .scfr-sheet { padding: 2.4rem 1.3rem; }
    .scfr-band::before { top: 34px; height: 34px; }
    .scfr-routes__text { padding: 1.3rem 1.2rem 1.1rem; }
    .scfr-book { padding: 10px; }
    .scfr-book__page { padding: 1.3rem 1.2rem; }
    .scfr-notes, .scfr-notes--list, .layout-single .scfr-notes--list { grid-template-columns: minmax(0, 1fr); gap: 2.4rem; }
    .scfr-cal { grid-template-columns: minmax(0, 1fr); }
    .scfr-cal__month { padding: 1.4rem 1rem 1rem; }
    .scfr-pack__pin { width: 1.6rem; height: 1.6rem; font-size: 1rem; line-height: 1.6rem; }
    .scfr-pack__list { grid-template-columns: minmax(0, 1fr); }
    .content-area { padding: 1.6rem 1.2rem; }
    .scfr-side { padding: 1.4rem 1.2rem; }
    .scfr-comments { padding: 1.4rem 1.2rem; }
    .scfr-near { grid-template-columns: minmax(0, 1fr); }
    .scfr-near__link--next { grid-column: 1; }
    .scfr-back__cols { grid-template-columns: minmax(0, 1fr); gap: 1.8rem; }
    .cookie-banner { left: .6rem; right: .6rem; bottom: .6rem; padding: 1rem 1.2rem; }
}
