body {
    margin: 0;
    font-family: "Manrope", sans-serif;
    background: #f6efe6;
    color: #3d3128;
}

.page-shell {
    min-height: 100vh;
}

.hero-band {
    background: #6c4c3a;
    color: #fff7ef;
    position: relative;
    overflow: hidden;
}

.hero-band::after {
    display: none;
}

.topbar,
.recipe-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.recipe-toolbar-left,
.recipe-toolbar-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.recipe-toolbar-right form {
    margin: 0;
}

.brand-mark {
    font-family: "Fraunces", serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff7ef;
    letter-spacing: 0.02em;
}

.topbar-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.admin-chip {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 247, 239, 0.14);
    border: 1px solid rgba(255, 247, 239, 0.22);
    color: #fff7ef;
    font-size: 0.82rem;
    font-weight: 700;
}

.eyebrow,
.section-label,
.panel-kicker {
    margin: 0 0 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.78rem;
    font-weight: 700;
}

.recipe-title {
    font-family: "Fraunces", serif;
    font-size: clamp(2.4rem, 5vw, 4.6rem);
    line-height: 0.95;
    margin: 0 0 1rem;
    max-width: 12ch;
}

.recipe-intro {
    max-width: 62ch;
    font-size: 1.02rem;
    color: rgba(255, 247, 239, 0.86);
}

.recipe-admin-note {
    max-width: 62ch;
    margin-top: 1rem;
    margin-bottom: 0;
    color: rgba(255, 247, 239, 0.92);
}

.recipe-menu-note {
    color: #fff7ef;
}

.recipe-admin-note a {
    color: #fff7ef;
    font-weight: 700;
}

.recipe-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 34px rgba(67, 38, 20, 0.14);
}

.recipe-card h4,
.content-card h2,
.section-title,
.category-title {
    display: block;
    font-family: "Fraunces", serif;
}

.recipe-card h4 {
    font-size: 1.12rem;
    margin: 0;
}

.finder-card,
.content-card {
    background: rgba(255, 251, 246, 0.92);
    border: 1px solid rgba(104, 79, 61, 0.1);
    border-radius: 1.5rem;
    padding: 1.5rem;
    box-shadow: 0 18px 40px rgba(77, 57, 43, 0.08);
}

.finder-card {
    margin-top: 1rem;
    position: relative;
    z-index: 2;
    padding: 1rem;
}

.admin-banner {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
}

.admin-banner-actions {
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.finder-head,
.section-head,
.content-card-head {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 0.75rem;
}

.section-title,
.category-title,
.content-card h2 {
    margin: 0;
    font-size: clamp(1.35rem, 2vw, 1.8rem);
    color: #433128;
}

.finder-note,
.section-jump {
    color: #7a675a;
    font-size: 0.92rem;
}

.section-jump {
    text-decoration: none;
}

.finder-input {
    border-radius: 1rem;
    border: 1px solid rgba(101, 77, 59, 0.15);
    padding: 0.95rem 1rem;
    background: #fffdf9;
    font-size: 1.08rem;
    font-weight: 600;
}

#sugerencias {
    position: absolute;
    width: 100%;
    z-index: 20;
    margin-top: 0.35rem;
    border-radius: 1rem;
    overflow: hidden;
}

.sugerencia {
    padding: 0.85rem 1rem;
    background: #fff;
    border-bottom: 1px solid #f0e6db;
    color: #4b392f;
}

.sugerencia:hover {
    background: #fbf5ed;
}

.category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 0.85rem;
}

.pill {
    border: 1px solid rgba(93, 65, 48, 0.14);
    background: #fffaf4;
    color: #543f33;
    border-radius: 999px;
    padding: 0.7rem 0.95rem;
    font-size: 0.92rem;
    font-weight: 700;
    transition: all 0.18s ease;
    min-height: 2.75rem;
    white-space: nowrap;
}

.pill.active,
.pill:hover {
    background: #5a3e30;
    color: #fff8f0;
    border-color: #5a3e30;
}

.finder-count {
    margin-top: 0.65rem;
    color: #7b6759;
    font-weight: 700;
    font-size: 0.92rem;
}

.card-section {
    padding-top: 1rem;
}

.planner-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
    padding-top: 1rem;
}

.planner-pane {
    display: grid;
    gap: 1rem;
    position: sticky;
    top: 1rem;
}

.recipe-list-card {
    padding: 0.75rem 0.85rem;
}

.recipe-list {
    display: flex;
    flex-direction: column;
}

.recipe-list-item {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 0.35rem;
    text-decoration: none;
    color: #3f3027;
    border-bottom: 1px solid rgba(96, 74, 58, 0.1);
}

.recipe-list-item:hover {
    background: rgba(255, 252, 247, 0.75);
}

.recipe-list .recipe-card-wrapper:last-child .recipe-list-item {
    border-bottom: none;
}

.recipe-list-name {
    font-family: "Fraunces", serif;
    font-size: 1.2rem;
    line-height: 1.2;
}

.planner-card {
    min-height: 14rem;
}

.planner-empty {
    margin: 0;
    color: #7a675a;
    font-size: 0.98rem;
    line-height: 1.7;
}

.planner-list,
.shopping-list {
    display: grid;
    gap: 0.75rem;
}

.planner-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 0.95rem;
    border-radius: 1rem;
    background: #fffdf9;
    border: 1px solid rgba(96, 74, 58, 0.1);
}

.planner-item-link {
    color: #3f3027;
    text-decoration: none;
    font-weight: 700;
}

.planner-item-link:hover {
    text-decoration: underline;
}

.planner-remove {
    border: 1px solid rgba(96, 74, 58, 0.14);
    background: #fff6ee;
    color: #61493a;
    border-radius: 999px;
    padding: 0.35rem 0.7rem;
    font-size: 0.86rem;
    font-weight: 700;
}

.shopping-items {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.65rem;
}

.shopping-item {
    margin: 0;
}

.shopping-check {
    display: flex;
    align-items: start;
    gap: 0.75rem;
    padding: 0.8rem 0.9rem;
    border-radius: 1rem;
    background: #fffdf9;
    border: 1px solid rgba(96, 74, 58, 0.08);
    color: #4a3a30;
    line-height: 1.5;
}

.shopping-check input {
    margin-top: 0.22rem;
    flex-shrink: 0;
}

.recipe-grid,
.recipe-content-grid {
    display: grid;
    gap: 1rem;
}

.recipe-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.recipe-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: #403026;
    background: rgba(255, 252, 247, 0.96);
    border-radius: 1rem;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(85, 62, 49, 0.08);
    box-shadow: 0 6px 18px rgba(70, 43, 24, 0.05);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.recipe-card-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 0.75rem;
}

.recipe-meta-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    justify-content: flex-end;
    flex-shrink: 0;
}

.recipe-meta-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.22rem 0.55rem;
    border-radius: 999px;
    background: rgba(86, 62, 46, 0.08);
    color: #6a5445;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.recipe-hero {
    color: #fffaf5;
    background: linear-gradient(135deg, #5d4538 0%, #785645 100%);
}

.recipe-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
    gap: 1.2rem;
    align-items: center;
}

.recipe-hero-grid-single {
    grid-template-columns: 1fr;
}

.recipe-quicklinks {
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.recipe-hero-card {
    display: flex;
    justify-content: end;
}

.recipe-image,
.recipe-placeholder {
    width: min(100%, 24rem);
    min-height: 18rem;
    border-radius: 1.6rem;
    background: rgba(255, 249, 241, 0.16);
    border: 1px solid rgba(255, 250, 245, 0.18);
    box-shadow: 0 20px 50px rgba(28, 16, 10, 0.18);
}

.recipe-image {
    object-fit: cover;
}

.recipe-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.5rem;
    backdrop-filter: blur(8px);
}

.recipe-placeholder span {
    font-family: "Fraunces", serif;
    font-size: 4.2rem;
    line-height: 1;
}

.recipe-placeholder small {
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.8;
}

.recipe-content-grid {
    grid-template-columns: 1fr;
    align-items: start;
}

.recipe-text {
    margin: 0;
    font-size: clamp(1.14rem, 1.02rem + 0.45vw, 1.34rem);
    line-height: 2;
    color: #48372d;
}

.recipe-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.recipe-gallery-item {
    display: grid;
    gap: 0.6rem;
    text-decoration: none;
    color: #3f3027;
}

.recipe-gallery-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 1rem;
    border: 1px solid rgba(85, 62, 49, 0.08);
    box-shadow: 0 10px 24px rgba(70, 43, 24, 0.08);
    background: #fff8f2;
}

.recipe-gallery-caption {
    font-size: 0.95rem;
    line-height: 1.45;
    color: #6a5445;
}

.theme-olive {
    border-top: 5px solid #7f8d4e;
}

.theme-coral {
    border-top: 5px solid #d16956;
}

.theme-sky {
    border-top: 5px solid #5f8fb2;
}

.theme-amber {
    border-top: 5px solid #d09a42;
}

.theme-rust {
    border-top: 5px solid #ba6445;
}

.theme-bronze {
    border-top: 5px solid #9b6d41;
}

.theme-honey {
    border-top: 5px solid #d2a24a;
}

.theme-herb {
    border-top: 5px solid #6f9f5a;
}

.theme-earth {
    border-top: 5px solid #8b6d50;
}

.theme-wheat {
    border-top: 5px solid #c6a670;
}

.theme-tide {
    border-top: 5px solid #4e8a91;
}

.theme-ocean {
    border-top: 5px solid #3f84a5;
}

.theme-lime {
    border-top: 5px solid #86a148;
}

.theme-rose {
    border-top: 5px solid #d48498;
}

.theme-clay {
    border-top: 5px solid #b96952;
}

.theme-meadow {
    border-top: 5px solid #87a35c;
}

.theme-classic {
    border-top: 5px solid #8b6d58;
}

.modo-cocina {
    background: #fbf6ea;
}

.modo-cocina .recipe-page .content-card,
.modo-cocina .content-card {
    background: #fffdf8;
}

.modo-cocina .recipe-text {
    font-size: clamp(1.26rem, 1.12rem + 0.55vw, 1.5rem);
    line-height: 2.12;
}

@media (min-width: 1200px) {
    .recipe-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .recipe-content-grid {
        grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
    }
}

@media (max-width: 1199.98px) {
    .recipe-hero-grid {
        grid-template-columns: 1fr;
    }

    .recipe-hero-card {
        justify-content: start;
    }

    .category-pills {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 0.35rem;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 991.98px) {
    .planner-layout,
    .recipe-hero-grid,
    .recipe-content-grid {
        grid-template-columns: 1fr;
    }

    .planner-pane {
        position: static;
    }

    .finder-head,
    .section-head,
    .content-card-head {
        flex-direction: column;
        align-items: start;
    }

    .admin-banner {
        align-items: start;
        flex-direction: column;
    }
}

@media (max-width: 767.98px) {
    .topbar,
    .recipe-toolbar {
        flex-direction: column;
        align-items: start;
    }

    .recipe-toolbar-left,
    .recipe-toolbar-right {
        width: 100%;
    }

    .topbar-actions {
        width: 100%;
    }

    .topbar-actions .btn {
        flex: 1;
    }

    .admin-banner-actions {
        width: 100%;
    }

    .admin-banner-actions .btn {
        width: 100%;
    }

    .recipe-grid {
        grid-template-columns: 1fr;
    }

    .recipe-list-item {
        flex-direction: column;
        align-items: start;
    }

    .planner-item {
        flex-direction: column;
        align-items: start;
    }

    .recipe-card-head {
        flex-direction: column;
        align-items: start;
    }

    .recipe-meta-tags {
        justify-content: flex-start;
    }

    .finder-card {
        margin-top: 0.85rem;
        padding: 1.2rem;
    }

    .recipe-title {
        max-width: none;
    }
}
