:root {
    --primary-orange: #ea580c;
    --primary-red: #d32027;
    --title-black: #111827;
    --bg-recipe: #ffffff;
    --border-recipe: #fdba74;
}

.recipe-detail-section {
    margin-top: 20px;
    margin-bottom: 40px;
    align-items: start;
}

/* COLUMNA PRINCIPAL (Columnas 1-10) */
.recipe-detail-main {
    grid-column: 1 / span 10;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* BREADCRUMB */
.recipe-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #64748b;
    flex-wrap: wrap;
}

.recipe-breadcrumb a {
    color: #475569;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.recipe-breadcrumb a:hover {
    color: var(--primary-orange);
}

.recipe-breadcrumb .separator {
    color: #94a3b8;
}

.recipe-breadcrumb .current {
    color: #0f172a;
    font-weight: 700;
}

/* TOOLBAR SUPERIOR */
.recipe-top-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    background: #ffffff;
    padding: 12px 18px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.btn-back-recipes {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #475569;
    text-decoration: none;
    transition: color 0.2s ease;
}

.btn-back-recipes:hover {
    color: var(--primary-orange);
}

.recipe-images-counter {
    font-size: 13px;
    font-weight: 700;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* TARJETA DE CABECERA DE LA RECETA */
.recipe-header-card {
    background: #ffffff;
    border: 2px solid #fed7aa;
    border-radius: 16px;
    padding: 30px 36px;
    box-shadow: 0 8px 24px rgba(234, 88, 12, 0.06);
    position: relative;
}

.recipe-category-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffedd5;
    color: #c2410c;
    font-size: 12px;
    font-weight: 100;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 5px 14px;
    border-radius: 9999px;
    margin-bottom: 12px;
}

.recipe-pill-dot {
    width: 8px;
    height: 8px;
    background: var(--primary-orange);
    border-radius: 50%;
    display: inline-block;
}

.recipe-headline {
    font-family: "Anton", Impact, sans-serif;
    font-size: 2.3rem;
    line-height: 1.15;
    color: var(--title-black);
    letter-spacing: 0.5px;
    margin-bottom: 14px;
    text-transform: uppercase;
}

.recipe-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px dashed #fed7aa;
    margin-bottom: 14px;
}

.recipe-author-badge {
    background: #fff7ed;
    color: #c2410c;
    font-size: 14px;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 20px;
    border: 1px solid #fdba74;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.recipe-step-badge {
    font-size: 13px;
    font-weight: 700;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.recipe-description-text {
    font-size: 15px;
    line-height: 1.7;
    color: #475569;
}

/* =======================================================
   GRILLA DE IMÁGENES / PASOS ILUSTRADOS (GRID MODE)
   ======================================================= */
.recipe-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 22px;
}

.recipe-grid-card {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
    display: flex;
    flex-direction: column;
}

.recipe-grid-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-orange);
    box-shadow: 0 12px 28px rgba(234, 88, 12, 0.14);
}

.recipe-card-header {
    background: #fff7ed;
    padding: 10px 16px;
    border-bottom: 1.5px solid #fed7aa;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 100;
    font-size: 13px;
    color: #c2410c;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.recipe-card-header .zoom-hint {
    font-size: 11px;
    font-weight: 600;
    color: #9a3412;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.recipe-card-body {
    position: relative;
    background: #1c1917;
    cursor: zoom-in;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 380px;
    padding: 8px;
    overflow: hidden;
}

.recipe-card-img {
    max-width: 100%;
    max-height: 480px;
    height: auto;
    display: block;
    object-fit: contain;
    border-radius: 6px;
    transition: transform 0.25s ease;
}

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

.recipe-zoom-badge {
    position: absolute;
    bottom: 14px;
    right: 14px;
    background: rgba(194, 65, 12, 0.9);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: background 0.2s ease;
}

.recipe-grid-card:hover .recipe-zoom-badge {
    background: var(--primary-orange);
}

/* OTRAS RECETAS / NAVEGACIÓN */
.other-recipes-section {
    background: #ffffff;
    border-radius: 16px;
    border: 2px solid #e2e8f0;
    padding: 24px 28px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    margin-top: 10px;
}

.other-recipes-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    flex-wrap: wrap;
    gap: 10px;
}

.other-recipes-title {
    font-family: "Anton", sans-serif;
    font-weight: 100;
    font-size: 1.4rem;
    color: var(--title-black);
    text-transform: uppercase;
    margin: 0;
}

.other-recipes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.other-recipe-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
}

.other-recipe-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary-orange);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.other-recipe-thumb {
    height: 150px;
    background: #1c1917;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.other-recipe-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.other-recipe-info {
    padding: 14px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.other-recipe-title {
    font-weight: 100;
    font-size: 14px;
    color: #0f172a;
    line-height: 1.3;
    margin-bottom: 8px;
}

.other-recipe-link {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary-orange);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* COLUMNA LATERAL DE PUBLICIDAD (Columnas 11-12) */
.recipe-detail-sidebar {
    grid-column: 11 / span 2;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.recipe-side-ad-card {
    display: block;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid var(--border, #d8d8d8);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.recipe-side-ad-card:hover {
    transform: scale(1.015);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.recipe-side-ad-card img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

/* LIGHTBOX MODAL */
.lightbox-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.94);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.lightbox-content {
    position: relative;
    max-width: 96vw;
    max-height: 94vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    margin-top: 12px;
    text-align: center;
}

.lightbox-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.4);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 10000;
}

.lightbox-nav-btn:hover {
    background: var(--primary-orange);
    border-color: var(--primary-orange);
    color: #ffffff;
}

.lightbox-prev {
    left: -64px;
}

.lightbox-next {
    right: -64px;
}

.lightbox-close {
    position: absolute;
    top: -42px;
    right: 0;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 32px;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.lightbox-close:hover {
    color: #ff4444;
}

/* RESPONSIVE */
@media (max-width: 1199px) {
    .recipe-detail-section {
        display: flex !important;
        flex-direction: column !important;
        gap: 24px;
    }

    .recipe-detail-main {
        grid-column: auto !important;
        width: 100% !important;
    }

    .recipe-detail-sidebar {
        display: none !important;
    }
}

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

    .recipe-headline {
        font-size: 1.8rem;
    }

    .recipe-header-card {
        padding: 20px 18px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }
}

@media (max-width: 767px) {
    .recipe-detail-sidebar {
        display: none !important;
    }
}
