@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600;9..144,700;9..144,800&family=Inter:wght@400;500;600;700;800&family=Source+Serif+4:ital,opsz,wght@0,8..60,400;0,8..60,600;1,8..60,400&display=swap');

:root {
    --bg-dark: #f7f3ec;
    --bg-card: #fffdf8;
    --accent-orange: #d62828; /* Vibrant Pimentón de la Vera (Spanish Smoked Paprika Red) */
    --accent-orange-rgb: 183, 58, 47;
    --accent-gold: #f4a261; /* Rich Saffron / Golden Saffron Rice */
    --accent-gold-rgb: 185, 130, 46;
    --accent-red: #8e2633;
    --accent-lime: #667a52;
    --text-white: #211c18;
    --text-gray: #62584f;
    --border-color: rgba(61, 48, 37, 0.13);
    --font-heading: 'Fraunces', serif;
    --font-serif: 'Source Serif 4', serif;
    --font-body: 'Inter', sans-serif;
    --border-radius: 12px;
    --surface-soft: #f0ebe1;
    --surface-warm: #efe3d1;
    --surface-mist: #e9f0ec;
    --ink: #211c18;
    --ink-soft: #5e564d;
    --muted: #8d8379;
    --text-inverse: #fffaf2;
    --accent-orange: #b73a2f;
    --accent-gold: #b9822e;
    --accent-olive: #52633f;
    --accent-blue: #1f5163;
    --accent-blue-rgb: 31, 81, 99;
    --shadow-soft: 0 22px 70px rgba(62, 42, 24, 0.12);
    --shadow-card: 0 14px 42px rgba(62, 42, 24, 0.11);
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --fork-cursor-url: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36' viewBox='0 0 36 36'%3E%3Cg transform='rotate(-24 18 18)' fill='none' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v19' stroke='%23f4a261' stroke-width='4'/%3E%3Cpath d='M10 3v9M15 3v9M20 3v9M25 3v9' stroke='%23fffefb' stroke-width='3'/%3E%3Cpath d='M10 12h15v4c0 3-3 5-7.5 5S10 19 10 16z' fill='%23fffefb' stroke='%23fffefb' stroke-width='1'/%3E%3C/g%3E%3C/svg%3E") 9 5, auto;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none; /* Hide default cursor for the custom fork */
}

html, body {
    width: 100%;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 8% 0%, rgba(233, 240, 236, 0.92), transparent 34%),
        radial-gradient(circle at 92% 8%, rgba(239, 227, 209, 0.9), transparent 28%),
        linear-gradient(180deg, #fbf8f2 0%, var(--bg-dark) 42%, #f2ece2 100%);
    color: var(--text-white);
    font-family: var(--font-body);
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    text-rendering: geometricPrecision;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--surface-soft);
}
::-webkit-scrollbar-thumb {
    background: var(--accent-orange);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-gold);
}

/* Background Texture Noise Overlay */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: radial-gradient(rgba(33, 28, 24, 0.035) 1px, transparent 0);
    background-size: 24px 24px;
    pointer-events: none;
    z-index: 1;
}

/* Custom fork cursor container */
.cursor-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
}

.custom-cursor {
    width: 34px;
    height: 38px;
    background: transparent;
    border-radius: 0;
    position: fixed;
    transform: translate(-8px, -5px) rotate(-22deg);
    transform-origin: 50% 60%;
    pointer-events: none;
    z-index: 9999;
    filter: drop-shadow(0 3px 7px rgba(0, 0, 0, 0.45));
    transition: transform 0.18s ease, filter 0.18s ease;
}

.custom-cursor::before {
    content: "";
    position: absolute;
    left: 15px;
    top: 13px;
    width: 5px;
    height: 25px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--accent-gold), var(--accent-orange));
}

.custom-cursor::after {
    content: "";
    position: absolute;
    left: 7px;
    top: 0;
    width: 22px;
    height: 20px;
    border-radius: 0 0 12px 12px;
    background:
        linear-gradient(var(--text-white), var(--text-white)) 0 0 / 4px 16px no-repeat,
        linear-gradient(var(--text-white), var(--text-white)) 6px 0 / 4px 16px no-repeat,
        linear-gradient(var(--text-white), var(--text-white)) 12px 0 / 4px 16px no-repeat,
        linear-gradient(var(--text-white), var(--text-white)) 18px 0 / 4px 16px no-repeat,
        linear-gradient(var(--text-white), var(--text-white)) 0 12px / 22px 8px no-repeat;
}

.custom-cursor-follower {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(var(--accent-gold-rgb), 0.45);
    background:
        radial-gradient(circle, rgba(var(--accent-gold-rgb), 0.16), rgba(var(--accent-orange-rgb), 0.08) 56%, transparent 68%);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9998;
    transition: transform 0.08s cubic-bezier(0.1, 0.8, 0.3, 1), background-color 0.3s, width 0.3s, height 0.3s;
}

/* Interactive hover classes for cursor */
.hover-link .custom-cursor {
    transform: translate(-8px, -5px) rotate(-8deg) scale(1.08);
    filter: drop-shadow(0 0 12px rgba(var(--accent-gold-rgb), 0.5));
}

.hover-link .custom-cursor-follower {
    width: 48px;
    height: 48px;
    border-color: rgba(var(--accent-gold-rgb), 0.7);
    background:
        radial-gradient(circle, rgba(var(--accent-gold-rgb), 0.22), rgba(var(--accent-orange-rgb), 0.12) 55%, transparent 70%);
}

.hover-crunch .custom-cursor {
    transform: translate(-8px, -5px) rotate(-38deg) scale(1.16);
    filter: drop-shadow(0 0 14px rgba(var(--accent-orange-rgb), 0.55));
}

.hover-crunch .custom-cursor-follower {
    width: 56px;
    height: 56px;
    border-color: rgba(var(--accent-orange-rgb), 0.65);
    background:
        radial-gradient(circle, rgba(var(--accent-orange-rgb), 0.18), rgba(var(--accent-gold-rgb), 0.16) 54%, transparent 70%);
}

/* Header / Navigation */
header {
    position: sticky;
    top: 0;
    width: 100%;
    padding: 25px 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    backdrop-filter: blur(12px);
    background: rgba(8, 8, 9, 0.85);
    border-bottom: 1px solid var(--border-color);
}

.logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.8rem;
    color: var(--text-white);
    text-decoration: none;
    letter-spacing: -1px;
    text-transform: lowercase;
}

.logo span {
    color: var(--accent-orange);
    text-shadow: 0 0 15px rgba(234, 91, 35, 0.4);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 35px;
}

nav a {
    color: var(--text-gray);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

nav a.active, nav a:hover {
    color: var(--text-white);
}

.nav-cta {
    background: var(--accent-orange);
    color: var(--text-white);
    padding: 10px 22px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(234, 91, 35, 0.25);
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.nav-cta:hover {
    background: var(--bg-dark);
    color: var(--accent-gold);
    border-color: var(--accent-gold);
    box-shadow: 0 4px 20px rgba(236, 197, 95, 0.15);
}

/* MAIN VIEWPORT & SPA VIEWS */
main {
    width: 100%;
    min-height: calc(100vh - 90px);
    position: relative;
}

.view-section {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 40px 8% 80px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(15px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    z-index: 10;
}

.view-section.active {
    position: relative;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    z-index: 20;
}

/* Hero Section */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    padding-bottom: 60px;
}

.hero-content {
    max-width: 55%;
}

.hero-badge {
    background: rgba(234, 91, 35, 0.1);
    color: var(--accent-orange);
    border: 1px solid rgba(234, 91, 35, 0.2);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 25px;
}

.hero-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 4.5rem;
    line-height: 1.05;
    letter-spacing: -1.5px;
    margin-bottom: 25px;
    text-transform: capitalize;
}

.hero-title span {
    color: transparent;
    -webkit-text-stroke: 1.5px var(--text-white);
}

.hero-title em {
    font-style: normal;
    color: var(--accent-gold);
    text-shadow: 0 0 30px rgba(236, 197, 95, 0.3);
}

.hero-desc {
    color: var(--text-gray);
    font-size: 1.15rem;
    line-height: 1.6;
    margin-bottom: 24px;
    max-width: 90%;
}

.hero-progress {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    max-width: 620px;
    margin-bottom: 34px;
}

.hero-progress-item {
    min-height: 86px;
    padding: 16px;
    border: 1px solid rgba(244, 162, 97, 0.16);
    border-radius: 8px;
    background: rgba(19, 12, 12, 0.76);
}

.hero-progress-item strong {
    display: block;
    color: var(--accent-gold);
    font-size: 1.75rem;
    line-height: 1;
    margin-bottom: 8px;
}

.hero-progress-item span {
    display: block;
    color: var(--text-gray);
    font-size: 0.8rem;
    line-height: 1.25;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.btn-primary {
    background: var(--accent-orange);
    color: var(--text-white);
    padding: 16px 32px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 25px rgba(234, 91, 35, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: none;
    transition: var(--transition-smooth);
}

.btn-primary:hover {
    background: var(--accent-gold);
    color: var(--bg-dark);
    box-shadow: 0 8px 30px rgba(236, 197, 95, 0.35);
    transform: translateY(-3px);
}

.btn-secondary {
    background: transparent;
    color: var(--text-white);
    padding: 16px 32px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: var(--transition-smooth);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--text-white);
    transform: translateY(-3px);
}

.hero-visual {
    width: 40%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-main-img {
    width: 100%;
    max-width: 400px;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(234, 91, 35, 0.35));
    animation: floatAnim 6s ease-in-out infinite;
    z-index: 5;
}

@keyframes floatAnim {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(2deg); }
}

.hero-visual-glow {
    position: absolute;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(236, 197, 95, 0.25) 0%, rgba(0,0,0,0) 70%);
    filter: blur(40px);
    z-index: 1;
}

/* SEARCH BAR */
.search-section {
    width: 100%;
    max-width: 800px;
    margin: 0 auto 60px;
}

.search-bar-wrapper {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    padding: 15px 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: var(--transition-smooth);
}

.search-bar-wrapper:focus-within {
    border-color: var(--accent-gold);
    box-shadow: 0 0 25px rgba(236, 197, 95, 0.15);
}

.search-icon {
    font-size: 1.2rem;
    color: var(--text-gray);
}

.search-bar-wrapper input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-white);
    font-family: var(--font-body);
    font-size: 1.05rem;
    width: 100%;
}

/* COMMON SECTION HEADERS */
.section-header {
    margin-bottom: 50px;
}

.section-header.centered {
    text-align: center;
}

.section-tag {
    color: var(--accent-orange);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
    display: block;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 800;
    text-transform: none;
    letter-spacing: 0;
}

.section-title span {
    color: var(--accent-gold);
}

.section-subtitle {
    color: var(--text-gray);
    font-size: 1.05rem;
    margin-top: 8px;
}

/* PROVINCE INTERACTIVE MAP */
.province-map-shell {
    position: relative;
    display: grid;
    gap: 22px;
}

.province-map-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.province-map-stats div {
    position: relative;
    overflow: hidden;
    min-height: 84px;
    padding: 18px;
    border: 1px solid rgba(94, 244, 255, 0.14);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(7, 22, 28, 0.9), rgba(28, 11, 11, 0.82)),
        rgba(13, 13, 15, 0.94);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.province-map-stats div::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-orange), rgba(94, 244, 255, 0.78), transparent);
}

.province-map-stats strong {
    display: block;
    color: #8ff7ff;
    font-size: 1.8rem;
    line-height: 1;
    margin-bottom: 8px;
}

.province-map-stats span {
    display: block;
    color: rgba(255, 254, 251, 0.68);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1.25;
    text-transform: uppercase;
}

.province-map-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
    gap: 22px;
    align-items: stretch;
}

.province-map-scroll {
    min-width: 0;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-color: rgba(94, 244, 255, 0.36) rgba(255, 255, 255, 0.04);
}

.province-map-canvas {
    position: relative;
    isolation: isolate;
    width: 100%;
    min-width: 0;
    min-height: 640px;
    aspect-ratio: 1.44;
    overflow: hidden;
    border: 1px solid rgba(94, 244, 255, 0.2);
    border-radius: 8px;
    background: #06090d;
    box-shadow:
        0 24px 80px rgba(0, 0, 0, 0.38),
        inset 0 0 0 1px rgba(255, 255, 255, 0.025);
}

.province-map-canvas::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(0deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
    background-size: 42px 42px, 42px 42px;
    mask-image: linear-gradient(180deg, rgba(0,0,0,0.95), rgba(0,0,0,0.72));
}

.province-map-canvas::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(94, 244, 255, 0.08), transparent 26%, transparent 74%, rgba(229, 41, 41, 0.08)),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025), transparent 18%, transparent 82%, rgba(255, 255, 255, 0.025));
    opacity: 0.72;
}

.province-map-svg {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
}

.province-map-sea {
    fill: url(#provinceMapSea);
}

.province-map-latlong line {
    stroke: rgba(94, 244, 255, 0.08);
    stroke-width: 1;
}

.province-map-region {
    cursor: pointer;
    outline: none;
    isolation: isolate;
}

.province-map-path {
    fill: rgba(19, 78, 88, 0.82);
    fill-rule: evenodd;
    stroke: rgba(126, 232, 242, 0.56);
    stroke-width: 1.25;
    transform-box: fill-box;
    transform-origin: center;
    transition:
        fill 0.18s ease,
        stroke 0.18s ease,
        stroke-width 0.18s ease,
        filter 0.18s ease,
        opacity 0.18s ease,
        transform 0.18s cubic-bezier(0.2, 0.9, 0.2, 1);
}

.province-map-region.is-pending .province-map-path {
    fill: rgba(48, 51, 55, 0.72);
    stroke: rgba(255, 255, 255, 0.22);
    stroke-dasharray: 0.04 0.05;
}

.province-map-region:hover .province-map-path,
.province-map-region:focus-visible .province-map-path,
.province-map-region.active .province-map-path {
    fill: rgba(229, 41, 41, 0.92);
    stroke: #f6c177;
    stroke-width: 2.25;
    transform: translate3d(0, -10px, 0) scale(1.018);
    filter:
        drop-shadow(0 13px 10px rgba(0, 0, 0, 0.55))
        drop-shadow(0 0 10px rgba(94, 244, 255, 0.42));
}

.province-map-region.group-canary .province-map-path,
.province-map-region.group-africa .province-map-path {
    fill: rgba(28, 101, 112, 0.88);
}

.province-map-inset-frame {
    pointer-events: none;
}

.province-map-inset-frame rect {
    fill: rgba(3, 10, 13, 0.38);
    stroke: rgba(94, 244, 255, 0.2);
    stroke-width: 1;
}

.province-map-inset-frame text {
    fill: rgba(255, 254, 251, 0.62);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.province-map-legend {
    position: absolute;
    z-index: 4;
    right: 18px;
    bottom: 16px;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    max-width: 58%;
    color: rgba(255, 254, 251, 0.68);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.province-map-legend span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 9px;
    border: 1px solid rgba(94, 244, 255, 0.14);
    border-radius: 8px;
    background: rgba(3, 8, 12, 0.72);
}

.province-map-legend i {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: #8ff7ff;
    box-shadow: 0 0 12px rgba(94, 244, 255, 0.7);
}

.province-map-loading {
    position: absolute;
    z-index: 4;
    inset: 0;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 12px;
    color: var(--text-gray);
}

.province-map-loading i {
    color: #8ff7ff;
    font-size: 2rem;
}

.province-map-panel {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 24px;
    border: 1px solid rgba(94, 244, 255, 0.16);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(6, 20, 26, 0.92), rgba(23, 9, 9, 0.9)),
        rgba(13, 13, 15, 0.94);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.province-panel-kicker {
    color: #8ff7ff;
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.province-map-panel h3 {
    margin: 8px 0 12px;
    color: var(--text-white);
    font-family: var(--font-heading);
    font-size: 2rem;
    line-height: 1.05;
}

.province-map-panel p {
    color: rgba(255, 254, 251, 0.72);
    line-height: 1.55;
}

.province-panel-stats {
    display: grid;
    gap: 10px;
    margin: 22px 0;
}

.province-panel-stats div {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(94, 244, 255, 0.11);
}

.province-panel-stats dt {
    color: rgba(255, 254, 251, 0.62);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.province-panel-stats dd {
    color: #8ff7ff;
    font-weight: 900;
}

.province-panel-featured {
    display: grid;
    gap: 6px;
    margin-top: auto;
    padding: 14px;
    border: 1px solid rgba(94, 244, 255, 0.14);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.035);
}

.province-panel-featured span {
    color: var(--accent-orange);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.province-panel-featured a,
.province-panel-featured strong {
    color: var(--text-white);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    line-height: 1.2;
    text-decoration: none;
}

.province-panel-featured a:hover {
    color: var(--accent-gold);
}

.province-panel-featured.muted strong {
    color: var(--text-gray);
}

.province-panel-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    margin-top: 16px;
    padding: 0 16px;
    border: 1px solid var(--accent-orange);
    border-radius: 8px;
    background: var(--accent-orange);
    color: var(--text-white);
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-decoration: none;
    text-transform: uppercase;
}

.province-panel-cta:hover {
    background: #8ff7ff;
    border-color: #8ff7ff;
    color: var(--bg-dark);
}

.province-panel-cta.disabled {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
    color: #817474;
}

.province-map-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}

.province-list-link,
.province-list-button {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    min-height: 54px;
    padding: 10px 12px;
    border: 1px solid rgba(94, 244, 255, 0.12);
    border-radius: 8px;
    background: rgba(6, 18, 23, 0.72);
    color: inherit;
    font: inherit;
    text-align: left;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.province-list-button {
    color: #817474;
}

.province-list-link strong,
.province-list-button strong {
    color: var(--text-white);
    font-size: 0.88rem;
    line-height: 1.2;
}

.province-list-link span,
.province-list-button span {
    flex: 0 0 auto;
    color: #8ff7ff;
    font-size: 0.75rem;
    font-weight: 900;
}

.province-list-link:hover,
.province-list-link:focus-visible,
.province-list-link.active,
.province-list-button:hover,
.province-list-button:focus-visible,
.province-list-button.active {
    border-color: rgba(94, 244, 255, 0.5);
    background: rgba(94, 244, 255, 0.08);
    outline: none;
}

/* RECIPES DYNAMIC GRID */
.recipes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    /* Sin esto, cuando los anuncios automaticos inyectan un bloque dentro de
       una tarjeta, toda la fila crece con ella y las otras tres se quedan con
       un palmo de blanco debajo. Que cada tarjeta mida lo suyo. */
    align-items: start;
}

.recipe-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    color: inherit;
    padding: 20px;
    text-decoration: none;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.recipe-card:hover {
    border-color: var(--accent-orange);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(234, 91, 35, 0.12);
}

.recipe-card-img-wrapper {
    width: 100%;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
}

.recipe-card-img {
    height: 100%;
    max-height: 160px;
    object-fit: contain;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.4));
    transition: var(--transition-smooth);
}

.recipe-card:hover .recipe-card-img {
    transform: scale(1.08) rotate(3deg);
}

.image-missing::before {
    content: "Imagen no disponible";
    color: var(--text-gray);
    font-family: var(--font-serif);
    font-style: italic;
}

.recipe-card-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(234, 91, 35, 0.15);
    color: var(--accent-orange);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 4px;
}

.recipe-card-status {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 24px;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
}

.recipe-card-status.active {
    background: rgba(96, 108, 56, 0.18);
    color: #b9d985;
    border: 1px solid rgba(185, 217, 133, 0.24);
}

.recipe-card-status.pending {
    background: rgba(244, 162, 97, 0.13);
    color: var(--accent-gold);
    border: 1px solid rgba(244, 162, 97, 0.22);
}

.recipe-card-info h3 {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 700;
    text-transform: capitalize;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
    color: var(--text-white);
}

.recipe-card-location {
    color: var(--accent-gold);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.recipe-card-desc {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-style: italic;
    color: var(--text-gray);
    line-height: 1.5;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recipe-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 15px;
    margin-top: auto;
}

.recipe-card-clicks {
    font-size: 0.8rem;
    color: var(--text-gray);
}

.recipe-card-clicks.muted {
    color: #726868;
}

.recipe-card-clicks i {
    color: var(--accent-gold);
    margin-right: 4px;
}

.btn-card-view {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-white);
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.recipe-card:hover .btn-card-view {
    background: var(--accent-orange);
    border-color: var(--accent-orange);
}

.btn-card-view:disabled {
    background: #241d1d;
    border-color: rgba(255, 255, 255, 0.08);
    color: #726868;
    cursor: not-allowed;
}

.recipe-card.inactive-card {
    border-style: dashed;
    border-color: rgba(244, 162, 97, 0.32);
    opacity: 0.88;
}

.recipe-card.inactive-card:hover {
    transform: none;
    box-shadow: none;
}

.recipe-card-placeholder {
    min-height: 180px;
    flex-direction: column;
    gap: 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.035);
    color: var(--text-gray);
    text-align: center;
}

.recipe-card-placeholder i {
    color: var(--accent-gold);
    font-size: 2rem;
}

.recipe-card-placeholder span {
    font-family: var(--font-serif);
    font-style: italic;
}

.modal-image-placeholder {
    min-height: 360px;
}

.modal-canonical-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    margin-top: 10px;
    padding: 0 14px;
    border-radius: 8px;
    background: var(--accent-orange);
    color: var(--text-white);
    font-size: 0.82rem;
    font-weight: 900;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.modal-canonical-link:hover {
    background: var(--accent-gold);
    color: var(--bg-dark);
}

.search-result-card {
    min-height: 440px;
}

.search-summary {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 72px;
    padding: 18px 24px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: rgba(19, 12, 12, 0.72);
    color: var(--text-gray);
    text-align: center;
}

.search-summary i {
    color: var(--accent-gold);
}

/* COMUNIDADES: rejilla de tarjetas con buscador (sin scroll horizontal) */
.regions-toolbar {
    position: sticky;
    top: 12px;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    max-width: 1100px;
    margin: 0 auto 28px;
    padding: 10px 10px 10px 12px;
    border: 1px solid rgba(61, 48, 37, 0.1);
    border-radius: 999px;
    background: rgba(255, 253, 248, 0.72);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    box-shadow: 0 14px 40px rgba(62, 42, 24, 0.08);
}

.regions-search {
    flex: 1 1 320px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 18px;
    min-height: 48px;
    border-radius: 999px;
    background: #fffdf8;
    border: 1px solid rgba(61, 48, 37, 0.12);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.regions-search:focus-within {
    border-color: rgba(var(--accent-orange-rgb), 0.45);
    box-shadow: 0 0 0 4px rgba(var(--accent-orange-rgb), 0.1);
}

.regions-search i {
    color: var(--accent-orange);
}

.regions-search input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    font: 500 1rem var(--font-body);
    color: var(--ink);
}

.regions-count {
    margin: 0 14px 0 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ink-soft);
    white-space: nowrap;
}

.regions-grid {
    list-style: none;
    margin: 0 auto;
    padding: 0;
    max-width: 1100px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 18px;
}

.region-card-item[hidden] {
    display: none;
}

.region-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border-radius: 20px;
    text-decoration: none;
    color: var(--ink);
    background: rgba(255, 253, 248, 0.9);
    border: 1px solid rgba(61, 48, 37, 0.1);
    box-shadow: 0 12px 34px rgba(62, 42, 24, 0.07);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
    isolation: isolate;
}

/* Borde con degradado que se enciende al pasar por encima */
.region-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1.5px;
    background: linear-gradient(135deg, var(--accent-orange), var(--accent-gold), var(--accent-olive));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.region-card:hover,
.region-card:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 22px 50px rgba(var(--accent-orange-rgb), 0.14);
    border-color: transparent;
    outline: none;
}

.region-card:hover::after,
.region-card:focus-visible::after {
    opacity: 1;
}

.region-card-media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    max-width: 100%;
    overflow: hidden;
    background:
        radial-gradient(circle at 20% 20%, rgba(var(--accent-gold-rgb), 0.35), transparent 60%),
        linear-gradient(135deg, var(--surface-warm), var(--surface-mist));
}

.region-card-media picture,
.region-card-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.region-card:hover .region-card-media img {
    transform: scale(1.06);
}

.region-card-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(33, 28, 24, 0.28));
}

.region-card-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    padding: 16px 18px 18px;
}

.region-card-kicker {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-orange);
}

.region-card-name {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    line-height: 1.15;
    color: var(--ink);
}

.region-card-provinces {
    font-size: 0.86rem;
    line-height: 1.45;
    color: var(--ink-soft);
}

.region-card-meta {
    margin-top: auto;
    padding-top: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--accent-blue);
}

.region-card-meta i {
    margin-left: auto;
    width: 32px;
    height: 32px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(var(--accent-blue-rgb), 0.08);
    transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.region-card:hover .region-card-meta i {
    transform: translateX(3px);
    background: var(--accent-orange);
    color: #fffaf2;
}

.regions-empty {
    max-width: 1100px;
    margin: 24px auto 0;
    text-align: center;
    color: var(--ink-soft);
}

@media (max-width: 560px) {
    .regions-toolbar {
        top: 8px;
        border-radius: 22px;
        padding: 8px;
    }

    .regions-count {
        margin: 0 auto;
    }

    .regions-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    /* En móvil, tarjeta horizontal compacta: foto a la izquierda */
    .region-card {
        flex-direction: row;
        border-radius: 18px;
    }

    .region-card-media {
        flex: 0 0 104px;
        aspect-ratio: auto;
        min-height: 100%;
    }

    .region-card-body {
        padding: 12px 14px;
        gap: 3px;
    }

    .region-card-name {
        font-size: 1.12rem;
    }

    .region-card-provinces {
        font-size: 0.8rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .region-card-meta {
        padding-top: 4px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .region-card,
    .region-card-media img,
    .region-card-meta i {
        transition: none;
    }

    .region-card:hover,
    .region-card:hover .region-card-media img {
        transform: none;
    }
}

/* VOLVER ARRIBA: las recetas miden diez pantallas en movil */
.ir-arriba {
    position: fixed;
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom));
    z-index: 130;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    padding: 0;
    font-size: 1.35rem;
    line-height: 1;
    color: var(--ink, #211c18);
    background: rgba(255, 253, 248, 0.94);
    border: 1px solid rgba(61, 48, 37, 0.14);
    border-radius: 50%;
    box-shadow: 0 12px 30px rgba(62, 42, 24, 0.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    cursor: pointer;
    opacity: 0;
    transform: translateY(14px) scale(0.92);
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease, background 0.2s ease, color 0.2s ease;
}

.ir-arriba.visible {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

.ir-arriba:hover,
.ir-arriba:focus-visible {
    background: var(--accent-orange, #b73a2f);
    color: #fffaf2;
    border-color: transparent;
    outline: none;
}

@media (prefers-reduced-motion: reduce) {
    .ir-arriba {
        transition: opacity 0.01s linear;
        transform: none;
    }
}

/* IR A LA RECETA: atajo del titulo a los ingredientes */
.recipe-jump {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    padding: 12px 20px;
    border-radius: 999px;
    background: var(--accent-orange, #b73a2f);
    color: #fffaf2;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    box-shadow: 0 10px 26px rgba(183, 58, 47, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.recipe-jump:hover,
.recipe-jump:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(183, 58, 47, 0.28);
    color: #fffaf2;
}

.recipe-jump span {
    font-size: 1.05rem;
    line-height: 1;
}

/* El ancla deja aire bajo la cabecera pegajosa al saltar */
#ingredientes {
    scroll-margin-top: 90px;
}

/* TOP RANKING TABLE STYLE */
.ranking-table-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.ranking-header-row {
    display: grid;
    grid-template-columns: 0.6fr 2fr 1.5fr 1fr 1fr;
    padding: 22px 30px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border-color);
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    color: var(--accent-gold);
}

.ranking-item-row {
    display: grid;
    grid-template-columns: 0.6fr 2fr 1.5fr 1fr 1fr;
    padding: 20px 30px;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    color: inherit;
    font-size: 0.95rem;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.ranking-item-row:hover {
    background: rgba(234, 91, 35, 0.03);
}

.ranking-position {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
}

.ranking-position.top-1 { color: #ffd700; }
.ranking-position.top-2 { color: #c0c0c0; }
.ranking-position.top-3 { color: #cd7f32; }

.ranking-name {
    font-weight: 700;
    font-size: 1.05rem;
    text-transform: uppercase;
}

.ranking-clicks i {
    color: var(--accent-gold);
    margin-right: 5px;
}

.btn-table-view {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-white);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.ranking-item-row:hover .btn-table-view {
    background: var(--accent-orange);
    border-color: var(--accent-orange);
}

/* RECIPE DETAIL MODAL DRAWER */
.recipe-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1000;
    display: flex;
    justify-content: flex-end;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.recipe-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(8, 8, 9, 0.8);
    backdrop-filter: blur(10px);
}

.modal-content {
    width: 55%;
    height: 100%;
    background: var(--bg-card);
    border-left: 1px solid var(--border-color);
    position: relative;
    z-index: 10;
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
    padding: 60px;
}

.recipe-modal.active .modal-content {
    transform: translateX(0);
}

.btn-close-modal {
    position: absolute;
    top: 25px;
    right: 25px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-white);
    font-size: 1.2rem;
    transition: var(--transition-smooth);
}

.btn-close-modal:hover {
    background: var(--accent-red);
    border-color: var(--accent-red);
    transform: rotate(90deg);
}

.modal-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.recipe-image-wrapper {
    width: 100%;
    max-height: 400px;
    border-radius: 16px;
    overflow: hidden;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--border-color);
}

.modal-recipe-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: drop-shadow(0 15px 30px rgba(0,0,0,0.6));
}

.modal-tag {
    background: rgba(234, 91, 35, 0.15);
    color: var(--accent-orange);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 20px;
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 10px;
}

.modal-origin {
    color: var(--accent-gold);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 25px;
}

.modal-desc {
    color: var(--text-gray);
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 40px;
}

/* VISION PATTERN CARD IN MODAL */
.vision-pattern-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
    margin-top: 30px;
}

.vision-pattern-card h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    text-transform: uppercase;
    margin-bottom: 15px;
    color: var(--accent-gold);
    display: flex;
    align-items: center;
    gap: 8px;
}

.pattern-details p {
    color: var(--text-gray);
    font-size: 0.88rem;
    line-height: 1.5;
    margin-bottom: 10px;
}

.pattern-details strong {
    color: var(--text-white);
}

.color-palette-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
    font-size: 0.88rem;
}

.color-palette {
    display: flex;
    gap: 8px;
}

.color-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* INGREDIENTS AND STEPS */
.recipe-ingredients-section, .recipe-steps-section {
    margin-bottom: 50px;
}

.recipe-ingredients-section h3, .recipe-steps-section h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    text-transform: uppercase;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
    color: var(--text-white);
}

.ingredients-list {
    list-style: none;
}

.ingredients-list li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    color: var(--text-gray);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.ingredients-list li::before {
    content: '\f0a4';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--accent-gold);
}

.steps-list {
    padding-left: 20px;
}

.steps-list li {
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    color: var(--text-gray);
    font-size: 1rem;
    line-height: 1.6;
}

.steps-list li::marker {
    color: var(--accent-orange);
    font-weight: 700;
    font-family: var(--font-heading);
}

/* FOOTER SECTION */
footer {
    background: #050506;
    border-top: 1px solid var(--border-color);
    padding: 80px 8% 40px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 60px;
}

.footer-brand {
    max-width: 350px;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-desc {
    color: var(--text-gray);
    line-height: 1.6;
    font-size: 0.95rem;
}

.footer-links-col {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-links-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1rem;
    text-transform: uppercase;
    margin-bottom: 10px;
    color: var(--accent-gold);
}

.footer-links-col a {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.footer-links-col a:hover {
    color: var(--accent-orange);
    padding-left: 5px;
}

.footer-socials {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.social-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-white);
    text-decoration: none;
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.social-circle:hover {
    background: var(--accent-orange);
    border-color: var(--accent-orange);
    transform: translateY(-4px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-gray);
    font-size: 0.85rem;
}

/* PREMIUM EDITORIAL LIGHT SYSTEM */
header {
    background: rgba(255, 253, 248, 0.88);
    border-bottom: 1px solid rgba(61, 48, 37, 0.1);
    box-shadow: 0 12px 36px rgba(62, 42, 24, 0.07);
}

.logo {
    color: var(--ink);
    letter-spacing: -0.03em;
}

.logo span {
    color: var(--accent-orange);
    text-shadow: none;
}

nav a {
    color: var(--ink-soft);
    font-weight: 700;
}

nav a:hover,
nav a.active {
    color: var(--ink);
}

nav a.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -8px;
    height: 2px;
    border-radius: 999px;
    background: var(--accent-orange);
}

.nav-cta,
.btn-primary,
.modal-canonical-link,
.province-panel-cta {
    background: var(--accent-orange);
    color: var(--text-inverse);
    box-shadow: 0 12px 28px rgba(var(--accent-orange-rgb), 0.18);
}

.nav-cta:hover,
.btn-primary:hover,
.modal-canonical-link:hover,
.province-panel-cta:hover {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--text-inverse);
    box-shadow: 0 16px 36px rgba(33, 28, 24, 0.18);
}

.view-section {
    padding-top: 52px;
}

.hero-section {
    min-height: min(760px, calc(100vh - 170px));
    padding-bottom: 76px;
}

.hero-badge {
    background: rgba(82, 99, 63, 0.1);
    border-color: rgba(82, 99, 63, 0.18);
    color: var(--accent-olive);
}

.hero-title {
    color: var(--ink);
    text-transform: none;
    letter-spacing: -0.045em;
}

.hero-title span {
    color: var(--accent-orange);
    -webkit-text-stroke: 0;
}

.hero-title em {
    color: var(--accent-blue);
    text-shadow: none;
}

.hero-desc,
.section-subtitle {
    color: var(--ink-soft);
}

.hero-progress-item,
.province-map-stats div,
.search-summary {
    background: rgba(255, 253, 248, 0.82);
    border-color: rgba(61, 48, 37, 0.11);
    box-shadow: var(--shadow-card);
}

.hero-progress-item strong,
.province-map-stats strong {
    color: var(--accent-orange);
}

.hero-progress-item span,
.province-map-stats span {
    color: var(--muted);
}

.btn-secondary,
.btn-card-view,
.btn-table-view {
    background: rgba(255, 253, 248, 0.74);
    border-color: rgba(61, 48, 37, 0.14);
    color: var(--ink);
}

.btn-secondary:hover,
.recipe-card:hover .btn-card-view,
.ranking-item-row:hover .btn-table-view {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--text-inverse);
}

.hero-main-img {
    filter: drop-shadow(0 24px 46px rgba(62, 42, 24, 0.22));
}

.hero-visual-glow {
    background:
        radial-gradient(circle, rgba(185, 130, 46, 0.16) 0%, rgba(82, 99, 63, 0.1) 48%, transparent 72%);
}

.search-bar-wrapper {
    background: rgba(255, 253, 248, 0.88);
    border-color: rgba(61, 48, 37, 0.12);
    box-shadow: var(--shadow-soft);
}

.search-bar-wrapper:focus-within {
    border-color: rgba(var(--accent-orange-rgb), 0.42);
    box-shadow: 0 24px 60px rgba(var(--accent-orange-rgb), 0.12);
}

.search-icon,
.search-bar-wrapper input::placeholder {
    color: var(--muted);
}

.search-bar-wrapper input {
    color: var(--ink);
}

.section-tag {
    color: var(--accent-orange);
}

.section-title {
    color: var(--ink);
    letter-spacing: -0.035em;
}

.section-title span {
    color: var(--accent-blue);
}

.province-map-canvas {
    background: #f9fbf7;
    border-color: rgba(31, 81, 99, 0.16);
    box-shadow: var(--shadow-soft);
}

.province-map-canvas::before {
    background:
        linear-gradient(90deg, rgba(31, 81, 99, 0.055) 1px, transparent 1px),
        linear-gradient(0deg, rgba(31, 81, 99, 0.05) 1px, transparent 1px);
}

.province-map-canvas::after {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.36), transparent 30%, transparent 72%, rgba(31, 81, 99, 0.08)),
        linear-gradient(90deg, rgba(255, 255, 255, 0.3), transparent 18%, transparent 82%, rgba(255, 255, 255, 0.3));
}

.province-map-sea {
    fill: #edf4ef;
}

.province-map-latlong line {
    stroke: rgba(31, 81, 99, 0.1);
}

.province-map-path {
    fill: rgba(82, 99, 63, 0.78);
    stroke: rgba(255, 253, 248, 0.78);
}

.province-map-region.group-canary .province-map-path,
.province-map-region.group-africa .province-map-path {
    fill: rgba(31, 81, 99, 0.75);
}

.province-map-region:hover .province-map-path,
.province-map-region:focus-visible .province-map-path,
.province-map-region.active .province-map-path {
    fill: var(--accent-orange);
    stroke: #fffdf8;
    filter:
        drop-shadow(0 14px 12px rgba(62, 42, 24, 0.28))
        drop-shadow(0 0 12px rgba(183, 58, 47, 0.24));
}

.province-map-inset-frame rect,
.province-map-legend span {
    fill: rgba(255, 253, 248, 0.7);
    background: rgba(255, 253, 248, 0.78);
    border-color: rgba(31, 81, 99, 0.15);
}

.province-map-inset-frame text,
.province-map-legend {
    fill: var(--ink-soft);
    color: var(--ink-soft);
}

.province-map-legend i {
    background: var(--accent-blue);
    box-shadow: none;
}

.province-map-panel,
.ranking-table-container,
.modal-content {
    background: rgba(255, 253, 248, 0.9);
    border-color: rgba(61, 48, 37, 0.11);
    box-shadow: var(--shadow-soft);
}

.province-panel-kicker,
.province-panel-stats dd,
.province-panel-featured span {
    color: var(--accent-orange);
}

.province-map-panel h3,
.province-panel-featured a,
.province-panel-featured strong {
    color: var(--ink);
}

.province-map-panel p,
.province-panel-stats dt {
    color: var(--ink-soft);
}

.province-panel-stats div,
.province-panel-featured {
    border-color: rgba(61, 48, 37, 0.11);
}

.province-panel-featured,
.province-list-link,
.province-list-button,
.recipe-card {
    background: rgba(255, 253, 248, 0.86);
    border-color: rgba(61, 48, 37, 0.11);
    box-shadow: 0 10px 34px rgba(62, 42, 24, 0.06);
}

.province-list-link strong,
.province-list-button strong,
.recipe-card-info h3,
.ranking-name {
    color: var(--ink);
}

.province-list-link span,
.province-list-button span,
.recipe-card-location,
.ranking-clicks i {
    color: var(--accent-blue);
}

.province-list-link:hover,
.province-list-link:focus-visible,
.province-list-link.active,
.province-list-button:hover,
.province-list-button:focus-visible,
.province-list-button.active {
    border-color: rgba(var(--accent-orange-rgb), 0.32);
    background: #fffaf2;
    box-shadow: 0 14px 38px rgba(var(--accent-orange-rgb), 0.11);
}

.recipe-card {
    border-radius: 10px;
}

.recipe-card:hover {
    border-color: rgba(var(--accent-orange-rgb), 0.35);
    box-shadow: 0 22px 58px rgba(62, 42, 24, 0.14);
}

.recipe-card-img-wrapper,
.recipe-card-placeholder {
    background: linear-gradient(180deg, #f5f0e8, #fbf8f2);
    border-radius: 8px;
}

.recipe-card-img {
    filter: drop-shadow(0 16px 24px rgba(62, 42, 24, 0.24));
}

.recipe-card-tag,
.modal-tag {
    background: rgba(var(--accent-orange-rgb), 0.1);
    color: var(--accent-orange);
}

.recipe-card-status.active {
    background: rgba(82, 99, 63, 0.11);
    color: var(--accent-olive);
    border-color: rgba(82, 99, 63, 0.2);
}

.recipe-card-status.pending {
    background: rgba(var(--accent-gold-rgb), 0.12);
    color: var(--accent-gold);
    border-color: rgba(var(--accent-gold-rgb), 0.2);
}

.recipe-card-desc,
.recipe-card-clicks,
.search-summary {
    color: var(--ink-soft);
}

.recipe-card-footer,
.ranking-header-row,
.ranking-item-row,
.ingredients-list li,
.steps-list li {
    border-color: rgba(61, 48, 37, 0.09);
}

.ranking-header-row {
    background: rgba(240, 235, 225, 0.64);
    color: var(--accent-blue);
}

.ranking-item-row:hover {
    background: rgba(183, 58, 47, 0.055);
}

.ranking-position.top-1 { color: var(--accent-gold); }
.ranking-position.top-2 { color: var(--accent-blue); }
.ranking-position.top-3 { color: var(--accent-orange); }

.recipe-image-wrapper {
    background: var(--surface-soft);
    border-color: rgba(61, 48, 37, 0.11);
}

.modal-overlay {
    background: rgba(33, 28, 24, 0.38);
}

.btn-close-modal {
    border-color: rgba(61, 48, 37, 0.12);
    color: var(--ink);
    background: rgba(255, 253, 248, 0.86);
}

.modal-title,
.recipe-ingredients-section h3,
.recipe-steps-section h3 {
    color: var(--ink);
}

.modal-origin,
.vision-pattern-card h4,
.ingredients-list li::before {
    color: var(--accent-orange);
}

.modal-desc,
.pattern-details p,
.ingredients-list li,
.steps-list li {
    color: var(--ink-soft);
}

.vision-pattern-card {
    background: rgba(255, 253, 248, 0.72);
    border-color: rgba(61, 48, 37, 0.11);
}

footer {
    background: #293224;
    border-top-color: rgba(255, 250, 242, 0.14);
}

footer .logo,
.footer-logo {
    color: var(--text-inverse);
}

.footer-desc,
.footer-links-col a,
.footer-bottom {
    color: rgba(255, 250, 242, 0.7);
}

.footer-links-title {
    color: #e2ba6d;
}

.social-circle {
    background: rgba(255, 250, 242, 0.08);
    border-color: rgba(255, 250, 242, 0.12);
    color: var(--text-inverse);
}

/* ELEVATED GASTRONOMIC PRODUCT SYSTEM */
main {
    overflow: hidden;
}

.view-section {
    isolation: isolate;
}

.view-section::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(31, 81, 99, 0.035) 1px, transparent 1px),
        linear-gradient(0deg, rgba(31, 81, 99, 0.025) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(180deg, rgba(0,0,0,0.48), transparent 42%);
}

.hero-section {
    position: relative;
    margin: -28px -8% 76px;
    padding: clamp(54px, 8vw, 104px) 8% clamp(72px, 7vw, 112px);
    background:
        linear-gradient(135deg, rgba(255, 253, 248, 0.78), rgba(240, 235, 225, 0.62)),
        linear-gradient(90deg, rgba(233, 240, 236, 0.82), rgba(239, 227, 209, 0.74));
    border-bottom: 1px solid rgba(61, 48, 37, 0.1);
}

.hero-section::before {
    content: "";
    position: absolute;
    inset: 24px 8%;
    z-index: 0;
    border: 1px solid rgba(61, 48, 37, 0.1);
    border-radius: 18px;
    pointer-events: none;
}

.hero-section::after {
    content: "";
    position: absolute;
    top: 42px;
    right: 8%;
    bottom: 42px;
    width: min(420px, 34vw);
    z-index: 0;
    border-radius: 20px;
    background:
        repeating-linear-gradient(90deg, rgba(33, 28, 24, 0.045) 0 1px, transparent 1px 18px),
        linear-gradient(180deg, rgba(255, 253, 248, 0.48), rgba(255, 250, 242, 0.18));
    transform: rotate(-2deg);
    pointer-events: none;
}

.hero-content,
.hero-visual {
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 680px;
}

.hero-title {
    max-width: 760px;
    font-size: clamp(3.8rem, 7vw, 7.6rem);
    line-height: 0.92;
}

.hero-desc {
    max-width: 600px;
    font-size: clamp(1.02rem, 1.35vw, 1.22rem);
}

.hero-progress {
    gap: 14px;
}

.hero-progress-item {
    position: relative;
    overflow: hidden;
}

.hero-progress-item::before,
.province-map-stats div::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(255,255,255,0.56), transparent 38%);
}

.hero-visual {
    min-height: 470px;
}

.hero-visual::before {
    content: "";
    position: absolute;
    width: min(410px, 88%);
    aspect-ratio: 1.18;
    border-radius: 46%;
    background:
        radial-gradient(ellipse at center, rgba(255, 253, 248, 0.98) 0 38%, rgba(240, 235, 225, 0.96) 39% 58%, rgba(185, 130, 46, 0.18) 59% 62%, transparent 63%);
    box-shadow:
        inset 0 2px 14px rgba(255, 255, 255, 0.85),
        0 30px 80px rgba(62, 42, 24, 0.16);
    transform: rotate(-8deg);
}

.hero-main-img {
    max-width: min(430px, 92%);
}

.search-section {
    position: relative;
    z-index: 2;
    margin-top: -116px;
}

.search-bar-wrapper {
    min-height: 72px;
    border-radius: 18px;
}

.section-header {
    max-width: 900px;
}

.section-header.centered {
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: clamp(2.5rem, 4.8vw, 5.2rem);
    line-height: 0.96;
}

.section-subtitle {
    max-width: 680px;
    margin-inline: auto;
    line-height: 1.6;
}

.recipes-grid {
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 24px;
}

.recipe-card {
    min-height: 500px;
    padding: 14px;
    border-radius: 18px;
}

.recipe-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.78), transparent 34%),
        linear-gradient(135deg, rgba(31, 81, 99, 0.055), transparent 46%);
}

.recipe-card-img-wrapper {
    height: 250px;
    margin-bottom: 18px;
    overflow: hidden;
}

.recipe-card-img {
    max-height: 230px;
}

.recipe-card-info,
.recipe-card-footer {
    position: relative;
    z-index: 1;
}

.recipe-card-info {
    padding: 0 8px 4px;
}

.recipe-card-info h3 {
    font-size: clamp(1.42rem, 2vw, 1.82rem);
    line-height: 1.03;
    text-transform: none;
}

.recipe-card-desc {
    font-style: normal;
    font-size: 1rem;
    line-height: 1.58;
}

.recipe-card-footer {
    padding: 14px 8px 2px;
}

.recipe-card-tag,
.recipe-card-status {
    z-index: 2;
    border-radius: 999px;
    backdrop-filter: blur(14px);
}

.recipe-card:hover .recipe-card-img {
    transform: scale(1.06) rotate(1.2deg);
}

.province-map-shell {
    padding: clamp(20px, 3vw, 34px);
    border: 1px solid rgba(61, 48, 37, 0.08);
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(255, 253, 248, 0.7), rgba(240, 235, 225, 0.42));
    box-shadow: var(--shadow-soft);
}

.province-map-canvas {
    border-radius: 18px;
}

.province-map-panel {
    border-radius: 18px;
}

.province-panel-featured {
    border-radius: 14px;
}

.province-list-link,
.province-list-button,
.ranking-table-container {
    border-radius: 14px;
}

.ranking-table-container {
    overflow: hidden;
}

.ranking-item-row {
    min-height: 74px;
}

.ranking-name {
    text-transform: none;
    letter-spacing: -0.01em;
}

footer {
    position: relative;
    overflow: hidden;
}

footer::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(255, 250, 242, 0.045) 1px, transparent 1px),
        linear-gradient(0deg, rgba(255, 250, 242, 0.035) 1px, transparent 1px);
    background-size: 64px 64px;
}

footer > * {
    position: relative;
    z-index: 1;
}

/* RESPONSIVENESS */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 3.8rem;
    }
    .province-map-layout {
        grid-template-columns: 1fr;
    }
    .province-map-panel {
        min-height: auto;
    }
    .modal-content {
        width: 80%;
    }
}

@media (hover: none), (pointer: coarse) {
    * {
        cursor: auto !important;
    }
    .cursor-container {
        display: none !important;
    }
}

@media (max-width: 900px) {
    .hero-section {
        margin: -18px -8% 52px;
        padding: 42px 8% 78px;
        min-height: auto;
    }
    .hero-section::before,
    .hero-section::after {
        display: none;
    }
    .hero-title {
        font-size: clamp(2.7rem, 13vw, 3.25rem);
        line-height: 0.98;
        margin-bottom: 18px;
    }
    .hero-desc {
        font-size: 0.98rem;
        margin-bottom: 18px;
    }
    .hero-progress {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        margin-bottom: 22px;
    }
    .hero-progress-item {
        min-height: 72px;
        padding: 10px 8px;
    }
    .hero-progress-item strong {
        font-size: 1.35rem;
    }
    .hero-progress-item span {
        font-size: 0.62rem;
        letter-spacing: 0.03em;
    }
    .hero-buttons {
        gap: 10px;
    }
    .btn-primary,
    .btn-secondary {
        min-height: 48px;
        padding: 12px 16px;
        font-size: 0.78rem;
    }
    .search-section {
        margin-top: -62px;
    }
    .hero-visual {
        min-height: 220px;
        margin-top: 12px;
    }
    .hero-main-img {
        max-width: min(320px, 88%);
    }
    .recipes-grid {
        grid-template-columns: 1fr;
    }
    .recipe-card {
        min-height: auto;
    }
    .recipe-card-img-wrapper {
        height: 220px;
    }
    .province-map-shell {
        padding: 14px;
        border-radius: 16px;
    }
    header {
        padding: 14px 16px;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }
    .logo {
        flex: 1 0 100%;
        text-align: center;
        font-size: 1.45rem;
        line-height: 1;
        letter-spacing: 0;
    }
    header nav {
        order: 2;
        width: 100%;
    }
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px 16px;
    }
    nav a {
        font-size: 0.82rem;
    }
    .nav-cta {
        order: 3;
        width: min(100%, 320px);
        text-align: center;
        padding: 9px 14px;
        border-radius: 8px;
        font-size: 0.78rem;
    }
    .hero-section {
        flex-direction: column;
        text-align: center;
    }
    .hero-content {
        max-width: 100%;
    }
    .hero-progress {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin-left: auto;
        margin-right: auto;
    }
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    .province-map-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }
    .province-map-stats div {
        min-height: 72px;
        padding: 12px 10px;
    }
    .province-map-stats strong {
        font-size: 1.45rem;
    }
    .province-map-stats span {
        font-size: 0.62rem;
        letter-spacing: 0.03em;
    }
    .province-map-canvas {
        min-width: 0;
        min-height: 340px;
    }
    .province-map-legend {
        left: 14px;
        right: 14px;
        bottom: 12px;
        justify-content: flex-start;
        max-width: none;
    }
    .province-map-list {
        grid-template-columns: repeat(auto-fill, minmax(138px, 1fr));
    }
    .hero-visual {
        width: 100%;
        margin-top: 30px;
    }
    .ranking-header-row, .ranking-item-row {
        grid-template-columns: 0.5fr 1.5fr 1fr;
    }
    .ranking-header-row span:nth-child(3), .ranking-header-row span:nth-child(4),
    .ranking-item-row span:nth-child(3), .ranking-item-row span:nth-child(4) {
        display: none;
    }
    .modal-content {
        width: 100%;
        padding: 40px 20px;
    }
}

/* FINAL PREMIUM PASS: editorial depth without losing recipe focus */
body {
    background:
        linear-gradient(180deg, rgba(255, 253, 248, 0.96) 0%, rgba(247, 243, 236, 0.94) 45%, rgba(239, 235, 225, 0.98) 100%),
        linear-gradient(90deg, rgba(82, 99, 63, 0.08), transparent 28%, rgba(31, 81, 99, 0.07) 72%, transparent);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -3;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(33, 28, 24, 0.035) 1px, transparent 1px),
        linear-gradient(180deg, rgba(33, 28, 24, 0.025) 1px, transparent 1px);
    background-size: 112px 112px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 62%);
}

header {
    min-height: 78px;
    background:
        linear-gradient(180deg, rgba(255, 253, 248, 0.96), rgba(255, 253, 248, 0.84));
    border-bottom: 1px solid rgba(61, 48, 37, 0.1);
    box-shadow: 0 16px 44px rgba(62, 42, 24, 0.08);
}

.logo {
    font-family: "Fraunces", "Playfair Display", serif;
    font-weight: 900;
    color: #211c18;
}

.logo span,
.hero-title span,
.section-title span {
    color: #b73a2f;
}

nav a {
    border-radius: 999px;
    padding: 9px 12px;
}

nav a:hover,
nav a.active {
    background: rgba(183, 58, 47, 0.08);
    color: #211c18;
}

.nav-cta,
.btn-primary,
.btn-card-view,
.province-panel-cta {
    background:
        linear-gradient(180deg, #cf4a3c, #a92f2c);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.42),
        0 16px 34px rgba(183, 58, 47, 0.22);
}

.hero-section {
    isolation: isolate;
    overflow: hidden;
    background:
        linear-gradient(105deg, rgba(255, 253, 248, 0.9) 0%, rgba(245, 239, 229, 0.84) 48%, rgba(233, 240, 236, 0.86) 100%),
        repeating-linear-gradient(90deg, rgba(33, 28, 24, 0.04) 0 1px, transparent 1px 34px);
}

.hero-section::before {
    border-color: rgba(62, 42, 24, 0.12);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.72),
        0 28px 80px rgba(62, 42, 24, 0.08);
}

.hero-section::after {
    background:
        linear-gradient(90deg, rgba(33, 28, 24, 0.05) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255, 253, 248, 0.58), rgba(255, 250, 242, 0.16));
    background-size: 18px 100%, auto;
}

.hero-badge,
.section-tag {
    width: fit-content;
    border: 1px solid rgba(183, 58, 47, 0.22);
    background: rgba(255, 253, 248, 0.76);
    color: #8e2633;
    box-shadow: 0 10px 24px rgba(62, 42, 24, 0.08);
}

.hero-title {
    color: #211c18;
    text-wrap: balance;
}

.hero-title em {
    color: #52633f;
    font-style: italic;
}

.hero-desc,
.section-subtitle {
    color: #62584f;
}

.hero-progress-item,
.province-map-stats div {
    border: 1px solid rgba(61, 48, 37, 0.1);
    background:
        linear-gradient(145deg, rgba(255, 253, 248, 0.92), rgba(242, 235, 223, 0.84));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.72),
        0 18px 44px rgba(62, 42, 24, 0.1);
}

.hero-visual::before {
    box-shadow:
        inset 0 2px 18px rgba(255, 255, 255, 0.9),
        inset 0 -16px 32px rgba(185, 130, 46, 0.08),
        0 36px 86px rgba(62, 42, 24, 0.18);
}

.hero-main-img {
    filter: saturate(1.08) contrast(1.02) drop-shadow(0 30px 42px rgba(62, 42, 24, 0.25));
}

.search-section {
    filter: drop-shadow(0 18px 34px rgba(62, 42, 24, 0.14));
}

.search-bar-wrapper {
    border: 1px solid rgba(61, 48, 37, 0.12);
    background:
        linear-gradient(180deg, rgba(255, 253, 248, 0.98), rgba(250, 246, 239, 0.94));
}

.search-bar-wrapper:focus-within {
    border-color: rgba(183, 58, 47, 0.38);
    box-shadow:
        0 0 0 4px rgba(183, 58, 47, 0.08),
        0 24px 60px rgba(62, 42, 24, 0.12);
}

.section-header {
    position: relative;
}

.section-title {
    color: #211c18;
    text-wrap: balance;
}

.recipes-grid {
    align-items: stretch;
}

.recipe-card {
    border: 1px solid rgba(61, 48, 37, 0.11);
    background:
        linear-gradient(180deg, rgba(255, 253, 248, 0.98), rgba(250, 246, 239, 0.94));
    box-shadow:
        0 18px 46px rgba(62, 42, 24, 0.1),
        0 1px 0 rgba(255, 255, 255, 0.84) inset;
    transform: translateY(0);
}

.recipe-card::before {
    opacity: 1;
    background: linear-gradient(90deg, #b73a2f, #b9822e 48%, #52633f);
}

.recipe-card::after {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: 21px;
    pointer-events: none;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.48), transparent 36%),
        linear-gradient(0deg, transparent 72%, rgba(185, 130, 46, 0.06));
}

.recipe-card:hover {
    transform: translateY(-8px);
    border-color: rgba(183, 58, 47, 0.24);
    box-shadow:
        0 26px 70px rgba(62, 42, 24, 0.16),
        0 1px 0 rgba(255, 255, 255, 0.88) inset;
}

.recipe-card-img-wrapper {
    border-bottom: 1px solid rgba(61, 48, 37, 0.08);
    background:
        linear-gradient(135deg, rgba(233, 240, 236, 0.86), rgba(239, 227, 209, 0.88));
}

.recipe-card-img {
    transform-origin: center;
}

.recipe-card:hover .recipe-card-img {
    transform: scale(1.045);
}

.recipe-card-tag,
.recipe-card-status {
    border: 1px solid rgba(255, 255, 255, 0.42);
    box-shadow: 0 10px 22px rgba(62, 42, 24, 0.12);
}

.recipe-card-info h3 {
    color: #211c18;
    text-wrap: balance;
}

.recipe-card-desc {
    color: #62584f;
}

.province-map-shell,
.ranking-table-container {
    border: 1px solid rgba(61, 48, 37, 0.1);
    background:
        linear-gradient(180deg, rgba(255, 253, 248, 0.96), rgba(247, 243, 236, 0.9));
    box-shadow:
        0 28px 80px rgba(62, 42, 24, 0.11),
        inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.province-map-canvas {
    border: 1px solid rgba(31, 81, 99, 0.13);
    background:
        linear-gradient(180deg, rgba(249, 251, 247, 0.98), rgba(239, 246, 240, 0.92)),
        linear-gradient(90deg, rgba(31, 81, 99, 0.055) 1px, transparent 1px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 18px 44px rgba(31, 81, 99, 0.08);
}

.province-map-path {
    filter: drop-shadow(0 7px 9px rgba(62, 42, 24, 0.13));
}

.province-map-region:hover .province-map-path,
.province-map-region:focus-visible .province-map-path,
.province-map-region.active .province-map-path {
    filter: drop-shadow(0 18px 18px rgba(183, 58, 47, 0.28));
}

.province-map-panel {
    background:
        linear-gradient(180deg, rgba(255, 253, 248, 0.98), rgba(246, 240, 231, 0.94));
    box-shadow:
        0 22px 56px rgba(62, 42, 24, 0.11),
        inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.ranking-item-row {
    background: rgba(255, 253, 248, 0.72);
}

.ranking-item-row:hover {
    background: rgba(255, 253, 248, 0.98);
    box-shadow: 0 16px 34px rgba(62, 42, 24, 0.08);
}

footer {
    background:
        linear-gradient(135deg, #26321f 0%, #1f2b2a 48%, #211c18 100%);
}

@media (max-width: 900px) {
    header {
        min-height: auto;
    }

    .hero-section {
        margin: -12px -8% 42px;
        padding: 34px 8% 62px;
        min-height: auto;
    }

    .hero-title {
        font-size: clamp(2.35rem, 11vw, 3rem);
        line-height: 1;
    }

    .hero-title br {
        display: none;
    }

    .hero-desc {
        max-width: 34rem;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-progress {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        max-width: 520px;
        gap: 8px;
        margin: 0 auto 20px;
    }

    .hero-progress-item {
        min-height: 70px;
        padding: 10px 7px;
    }

    .hero-progress-item strong {
        font-size: 1.28rem;
    }

    .hero-progress-item span {
        font-size: 0.6rem;
        line-height: 1.18;
    }

    .hero-visual {
        min-height: 190px;
        margin-top: 10px;
    }

    .hero-visual::before {
        width: min(270px, 78%);
    }

    .hero-main-img {
        max-width: min(285px, 80%);
    }

    .search-section {
        margin-top: -48px;
    }
}

@media (max-width: 520px) {
    .hero-section {
        padding-top: 28px;
        padding-bottom: 54px;
    }

    .hero-title {
        font-size: clamp(2.05rem, 10.6vw, 2.55rem);
    }

    .hero-badge {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-progress {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .hero-progress-item {
        min-height: 64px;
        border-radius: 12px;
    }

    .hero-progress-item strong {
        font-size: 1.08rem;
    }

    .hero-progress-item span {
        font-size: 0.55rem;
    }

    .hero-buttons {
        width: 100%;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .hero-visual {
        min-height: 160px;
    }

    .hero-main-img {
        max-width: min(230px, 78%);
    }

    .recipe-card-img-wrapper {
        height: 205px;
    }
}

/* CRITICAL CARD CORRECTION: solid editorial cards, no decorative gradients */
.recipe-card {
    background: #fffdf8;
    border: 1px solid rgba(33, 28, 24, 0.12);
    border-radius: 18px;
    color: #211c18;
    box-shadow:
        0 18px 48px rgba(62, 42, 24, 0.11),
        inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.recipe-card::before,
.recipe-card::after {
    content: none;
    display: none;
}

.recipe-card:hover {
    border-color: rgba(183, 58, 47, 0.28);
    box-shadow:
        0 28px 72px rgba(62, 42, 24, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.recipe-card-img-wrapper,
.recipe-card-placeholder {
    background: #f3eee5;
    border: 1px solid rgba(33, 28, 24, 0.09);
    border-radius: 12px;
}

.recipe-card-img {
    filter: none;
}

.recipe-card-info,
.recipe-card-footer {
    z-index: 1;
}

.recipe-card-info h3 {
    color: #181411;
    font-weight: 850;
}

.recipe-card-desc {
    color: #443d36;
    font-family: "Source Serif 4", Georgia, serif;
    font-size: 1.02rem;
    font-style: normal;
    font-weight: 500;
    line-height: 1.56;
}

.recipe-card-location,
.recipe-card-clicks {
    color: #62584f;
}

.recipe-card-footer {
    border-top: 1px solid rgba(33, 28, 24, 0.11);
}

.recipe-card-tag,
.recipe-card-status {
    background: #fff3eb;
    border: 1px solid rgba(183, 58, 47, 0.18);
    color: #8e2633;
    box-shadow: 0 8px 18px rgba(62, 42, 24, 0.1);
}

.recipe-card-status.active {
    background: #eef3e8;
    border-color: rgba(82, 99, 63, 0.22);
    color: #52633f;
}

.recipe-card-status.pending {
    background: #fbf1de;
    border-color: rgba(185, 130, 46, 0.24);
    color: #8a5d20;
}

.btn-card-view {
    background: #b73a2f;
    border-color: #b73a2f;
    color: #fffdf8;
    box-shadow: 0 10px 22px rgba(183, 58, 47, 0.2);
}

.recipe-card:hover .btn-card-view {
    background: #8e2633;
    border-color: #8e2633;
}

/* Province hover panel: open the province with its most relevant recipes */
.province-panel-featured {
    margin-top: 18px;
}

.province-panel-recipes {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.province-panel-section-title {
    color: #8e2633;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.province-panel-recipe {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    min-height: 72px;
    padding: 8px;
    border: 1px solid rgba(33, 28, 24, 0.1);
    border-radius: 12px;
    background: #fffdf8;
    color: #211c18;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(62, 42, 24, 0.08);
    transition: var(--transition-smooth);
}

.province-panel-recipe:hover {
    border-color: rgba(183, 58, 47, 0.28);
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(62, 42, 24, 0.12);
}

.province-panel-recipe-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 56px;
    overflow: hidden;
    border-radius: 10px;
    background: #f3eee5;
}

.province-panel-recipe-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.province-panel-recipe-thumb-placeholder {
    color: #8d8379;
}

.province-panel-recipe-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.province-panel-recipe-copy strong {
    overflow: hidden;
    color: #211c18;
    font-family: "Fraunces", "Playfair Display", serif;
    font-size: 1rem;
    font-weight: 850;
    line-height: 1.12;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.province-panel-recipe-copy small {
    overflow: hidden;
    color: #62584f;
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Global breadcrumbs */
.site-breadcrumb {
    max-width: 1320px;
    margin: 0 auto 22px;
    color: #62584f;
    font-size: 0.82rem;
    font-weight: 750;
}

.site-breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-breadcrumb li {
    display: inline-flex;
    align-items: center;
    min-width: 0;
}

.site-breadcrumb li + li::before {
    content: "/";
    margin-right: 8px;
    color: rgba(98, 88, 79, 0.55);
}

.site-breadcrumb a {
    color: #8e2633;
    text-decoration: none;
}

.site-breadcrumb a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.site-breadcrumb [aria-current="page"] {
    overflow: hidden;
    max-width: min(64vw, 760px);
    color: #62584f;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-breadcrumb {
    margin-top: 28px;
    margin-bottom: 18px;
}

@media (max-width: 760px) {
    .site-breadcrumb {
        font-size: 0.76rem;
    }

    .app-breadcrumb {
        margin-top: 18px;
    }
}

/* ==========================================
   UX MÓVIL: huecos de la portada y menú hamburguesa
   (se carga también en las páginas del servidor)
   ========================================== */

/* La imagen trae width/height 1536x1024 en el HTML: sin height:auto el
   navegador reservaba 1024px de alto y dejaba la paella flotando en un hueco. */
.hero-main-img {
    height: auto;
    display: block;
    margin-inline: auto;
}

.menu-toggle,
.menu-fab {
    display: none;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 52px;
    height: 52px;
    padding: 0;
    border: 1px solid rgba(61, 48, 37, 0.14);
    border-radius: 14px;
    background: rgba(255, 253, 248, 0.94);
    color: var(--ink);
    cursor: pointer;
}

.menu-toggle-bars,
.menu-toggle-bars::before,
.menu-toggle-bars::after {
    content: "";
    display: block;
    width: 24px;
    height: 2.5px;
    border-radius: 2px;
    background: currentColor;
}

.menu-toggle-bars {
    position: relative;
}

.menu-toggle-bars::before,
.menu-toggle-bars::after {
    position: absolute;
    left: 0;
}

.menu-toggle-bars::before { top: -7px; }
.menu-toggle-bars::after { top: 7px; }

.menu-fab {
    position: fixed;
    top: calc(10px + env(safe-area-inset-top));
    right: 12px;
    z-index: 140;
    box-shadow: 0 10px 28px rgba(62, 42, 24, 0.18);
    opacity: 0;
    transform: translateY(-12px) scale(0.9);
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
}

html.menu-fab-visible .menu-fab {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

.drawer-overlay {
    position: fixed;
    inset: 0;
    z-index: 150;
    background: rgba(20, 14, 10, 0.42);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.site-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 160;
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: min(86vw, 340px);
    padding: calc(16px + env(safe-area-inset-top)) 20px calc(24px + env(safe-area-inset-bottom));
    overflow-y: auto;
    background: #fffdf8;
    box-shadow: -18px 0 48px rgba(62, 42, 24, 0.2);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s linear 0.28s;
}

html.drawer-open {
    overflow: hidden;
}

html.drawer-open .site-drawer {
    transform: none;
    visibility: visible;
    transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}

html.drawer-open .drawer-overlay {
    opacity: 1;
    pointer-events: auto;
}

.site-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-drawer-head .logo {
    font-size: 1.35rem;
}

.site-drawer-close {
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    color: var(--ink);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
}

.site-drawer ul {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-drawer li a {
    display: flex;
    align-items: center;
    min-height: 52px;
    padding: 0 4px;
    border-bottom: 1px solid rgba(61, 48, 37, 0.1);
    color: var(--ink);
    font-size: 1.05rem;
    font-weight: 700;
    text-decoration: none;
}

.site-drawer li a[aria-current="page"] {
    color: var(--accent-orange);
}

.site-drawer-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    margin-top: auto;
    border-radius: 12px;
    background: var(--accent-orange);
    color: var(--text-inverse);
    font-weight: 800;
    letter-spacing: 0.04em;
    text-decoration: none;
}

@media (max-width: 900px) {
    body > header {
        flex-wrap: nowrap;
        justify-content: space-between;
        gap: 12px;
        padding: 10px 16px;
        transition: transform 0.25s ease;
    }

    body > header .logo {
        flex: 0 1 auto;
        text-align: left;
        font-size: 1.35rem;
    }

    body > header nav,
    body > header .nav-cta {
        display: none;
    }

    body > header.is-hidden {
        transform: translateY(-100%);
    }

    .menu-toggle,
    .menu-fab {
        display: inline-flex;
    }

    .hero-section {
        padding-top: 28px;
    }

    .hero-progress {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        max-width: none;
    }

    .hero-visual {
        min-height: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-drawer,
    .drawer-overlay,
    .menu-fab,
    body > header,
    .content-nav {
        transition: none !important;
    }
}

/* Vistas de la portada: la inactiva desaparece al instante y no se puede
   quedar a medio fundido encima de la nueva (ver initSPARouting). */
.view-section:not(.active) {
    visibility: hidden;
    transition: none;
}

.view-section.active {
    visibility: visible;
}

/* Ranking "Favoritas de los lectores" (js/votos.js, /votos/ranking.php) */
.favoritas-lectores {
    margin: 0 0 32px;
    padding: 20px 22px;
    border: 1px solid rgba(61, 48, 37, 0.12);
    border-radius: 18px;
    background: rgba(255, 253, 248, 0.86);
    box-shadow: var(--shadow-card);
}

.favoritas-titulo {
    margin: 0 0 4px;
    font-family: var(--font-heading);
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    color: var(--ink);
}

.favoritas-intro,
.favoritas-vacio {
    margin: 0 0 12px;
    color: var(--ink-soft);
    font-size: 0.95rem;
}

.favoritas-lista {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.favoritas-item {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    grid-template-areas: "puesto nombre" "puesto detalle";
    align-items: center;
    column-gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(61, 48, 37, 0.08);
}

.favoritas-item:last-child {
    border-bottom: 0;
}

.favoritas-puesto {
    grid-area: puesto;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--accent-orange);
    text-align: center;
}

.favoritas-nombre {
    grid-area: nombre;
    color: var(--ink);
    font-weight: 800;
    text-decoration: none;
}

.favoritas-nombre:hover {
    color: var(--accent-orange);
}

.favoritas-detalle {
    grid-area: detalle;
    color: var(--muted);
    font-size: 0.86rem;
}

/* Pie de las paginas de contenido: los enlaces legales tienen que estar en todas. */
.content-footer {
    border-top: 1px solid var(--border-color);
    margin-top: 48px;
    padding: 28px 24px 40px;
    text-align: center;
}

.content-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 22px;
    margin-bottom: 14px;
}

.content-footer-links a,
.enlace-cookies {
    color: var(--ink-soft);
    font-size: 0.92rem;
    text-decoration: none;
}

.content-footer-links a:hover,
.enlace-cookies:hover {
    color: var(--accent-orange);
    text-decoration: underline;
}

.enlace-cookies {
    background: none;
    border: 0;
    cursor: pointer;
    font-family: inherit;
    padding: 0;
}

.content-footer-note {
    color: var(--muted);
    font-size: 0.85rem;
}

/* Tiempos y raciones de la receta. Solo aparece cuando hay datos reales. */
.recipe-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 12px;
    list-style: none;
    margin: 18px 0 4px;
    padding: 0;
}

.recipe-facts li {
    background: var(--surface-soft);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 14px;
}

.recipe-fact-label {
    color: var(--muted);
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.recipe-facts strong {
    color: var(--ink);
    font-size: 1rem;
}

/* Daños colaterales de los anuncios automaticos.
   Google inyecta bloques dentro de nuestros contenedores, incluida la tarjeta
   de receta, que es un enlace. No podemos impedirlo desde aqui (se hace
   excluyendo areas por selector CSS en el panel de AdSense), pero si evitar
   que revienten la maqueta mientras tanto. */
.recipe-card .google-auto-placed,
.recipe-card ins.adsbygoogle {
    margin: 12px 0;
    max-width: 100%;
    overflow: hidden;
}

/* La cabecera no admite un anuncio en medio: el titular se queda en una
   columna de cuatro letras. Se le fija un ancho minimo al texto. */
.hero-content {
    min-width: 0;
}

.hero-section .google-auto-placed {
    display: block;
    margin: 0 auto 24px;
    max-width: 100%;
}

/* Eje de ingrediente: nube de terminos y vuelta al hub territorial. */
.ingrediente-nube {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ingrediente-nube a {
    align-items: center;
    background: var(--surface-soft);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    color: var(--ink);
    display: inline-flex;
    font-size: 0.95rem;
    gap: 8px;
    padding: 8px 16px;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.ingrediente-nube a:hover {
    background: var(--accent-orange);
    border-color: var(--accent-orange);
    color: var(--text-inverse);
}

.ingrediente-nube a span {
    color: var(--muted);
    font-size: 0.82rem;
}

.ingrediente-nube a:hover span { color: var(--text-inverse); }

.ingrediente-vuelta {
    margin-top: 14px;
}

.ingrediente-vuelta a {
    color: var(--accent-orange);
    font-size: 0.95rem;
}

/* El enlace de subida de un cruce o de un hijo hacia su termino padre: tiene
   que leerse como contexto, no como un boton mas de la nube. */
.taxonomia-sube {
    margin: -6px 0 18px;
    font-size: 0.95rem;
    color: var(--muted);
}

.taxonomia-sube a {
    color: var(--accent-orange);
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

.taxonomia-sube a:hover {
    border-bottom-color: var(--accent-orange);
}

/* "Si te interesa esta receta": tres columnas de vecindad con el motivo por
   delante. En movil se apilan, que es como se lee de verdad. */
.vecindad-columnas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 22px;
}

.vecindad-grupo h3 {
    font-size: 1.02rem;
    margin: 0 0 10px;
}

.vecindad-grupo h3 a {
    color: var(--text-primary);
    text-decoration: none;
    border-bottom: 2px solid var(--accent-orange);
    padding-bottom: 2px;
}

.vecindad-grupo ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.vecindad-grupo li {
    padding: 5px 0;
    border-bottom: 1px solid var(--border-soft, rgba(0, 0, 0, 0.07));
}

.vecindad-grupo li a {
    color: var(--text-secondary, var(--text-primary));
    text-decoration: none;
    font-size: 0.95rem;
}

.vecindad-grupo li a:hover { color: var(--accent-orange); }

.vecindad-todas {
    margin: 10px 0 0;
    font-size: 0.9rem;
}

.vecindad-todas a { color: var(--accent-orange); }

/* Calculadora de raciones. Nace oculta y la ensena el JS: si no hay
   JavaScript, la lista de ingredientes se queda como la publico la fuente y no
   aparece un control muerto. */
.raciones-control {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    margin: 0 0 16px;
}

.raciones-rotulo {
    font-size: 0.92rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.raciones-botones {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.raciones-botones button {
    font: inherit;
    font-size: 0.95rem;
    padding: 8px 14px;
    min-height: 40px;
    border: 1px solid var(--border-soft, rgba(0, 0, 0, 0.15));
    border-radius: 999px;
    background: transparent;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.raciones-botones button:hover {
    border-color: var(--accent-orange);
    color: var(--accent-orange);
}

.raciones-botones button.activo {
    background: var(--accent-orange);
    border-color: var(--accent-orange);
    color: var(--text-inverse);
}

.raciones-nota {
    flex-basis: 100%;
    margin: 0;
    font-size: 0.86rem;
    color: var(--muted);
}

.lista-escalable .cantidad {
    font-variant-numeric: tabular-nums;
    font-weight: 600;
}

/* Modo cocina: pantalla completa, un paso cada vez y texto grande. El boton
   nace oculto y lo ensena el JS, igual que la calculadora. */
.abrir-modo-cocina {
    font: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 10px 20px;
    min-height: 44px;
    margin: 0 0 18px;
    border: 1px solid var(--accent-orange);
    border-radius: 999px;
    background: transparent;
    color: var(--accent-orange);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.abrir-modo-cocina:hover {
    background: var(--accent-orange);
    color: var(--text-inverse);
}

body.con-modo-cocina { overflow: hidden; }

.modo-cocina {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: flex;
    flex-direction: column;
    background: var(--bg-primary, #faf7f2);
    padding: 16px;
    gap: 14px;
}

.cocina-cabecera {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.cocina-contador {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
}

.cocina-cerrar {
    font: inherit;
    font-size: 0.95rem;
    padding: 10px 18px;
    min-height: 44px;
    border: 1px solid var(--border-soft, rgba(0, 0, 0, 0.15));
    border-radius: 999px;
    background: transparent;
    color: var(--text-primary);
    cursor: pointer;
}

.cocina-barra {
    height: 4px;
    border-radius: 2px;
    background: rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.cocina-barra span {
    display: block;
    height: 100%;
    background: var(--accent-orange);
    transition: width 0.25s ease;
}

.cocina-cuerpo {
    flex: 1;
    /* Sin min-height:0 un hijo de flex no encoge por debajo de su contenido y
       el paso largo empuja los botones fuera de la pantalla. */
    min-height: 0;
    display: flex;
    /* "safe" centra el paso cuando cabe y lo alinea arriba cuando no: con
       center a secas, un paso largo en pantalla baja queda cortado por los dos
       extremos y el principio no se alcanza. */
    align-items: center;
    align-items: safe center;
    overflow-y: auto;
}

.cocina-paso {
    margin: 0;
    font-size: clamp(1.3rem, 4.2vw, 2rem);
    line-height: 1.5;
    max-width: 34ch;
    margin-inline: auto;
}

.cocina-ingredientes {
    border-top: 1px solid var(--border-soft, rgba(0, 0, 0, 0.1));
    padding-top: 10px;
    max-height: 34vh;
    overflow-y: auto;
}

.cocina-ingredientes summary {
    cursor: pointer;
    font-weight: 600;
    padding: 8px 0;
}

.cocina-ingredientes ul {
    margin: 6px 0 0;
    padding-left: 20px;
    font-size: 0.98rem;
    line-height: 1.7;
}

.cocina-pies {
    display: flex;
    gap: 10px;
}

.cocina-pies button {
    flex: 1;
    font: inherit;
    font-size: 1.02rem;
    font-weight: 600;
    min-height: 56px;
    border-radius: 14px;
    border: 1px solid var(--border-soft, rgba(0, 0, 0, 0.15));
    background: transparent;
    color: var(--text-primary);
    cursor: pointer;
}

.cocina-pies button.principal {
    background: var(--accent-orange);
    border-color: var(--accent-orange);
    color: var(--text-inverse);
}

.cocina-pies button:disabled {
    opacity: 0.4;
    cursor: default;
}

@media (min-width: 760px) {
    .modo-cocina { padding: 28px clamp(28px, 10vw, 140px); }
}
