/**
 * PREMIUM RECIPES STYLES
 * Diseño con colores dorados sobre tema oscuro futurista
 */

/* ═══════════════════════════════════════════════════════════
   🌟 VARIABLES DE COLOR PREMIUM
   ═══════════════════════════════════════════════════════════ */
:root {
    --gold-primary: #FFD700;
    --gold-dark: #DAA520;
    --gold-light: rgba(255, 215, 0, 0.1);
    --gold-accent: #F4C430;
    --premium-black: #000000;
    --premium-gray: #a0a0a0;
    --premium-bg: #0a0a0a;
    --premium-card: rgba(15, 15, 15, 0.8);
    --gold-glow: 0 0 20px rgba(255, 215, 0, 0.3), 0 0 40px rgba(255, 215, 0, 0.1);
}

/* ═══════════════════════════════════════════════════════════
   👑 BADGE PREMIUM
   ═══════════════════════════════════════════════════════════ */
.premium-badge {
    position: fixed;
    top: 70px;
    right: 20px;
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-dark) 100%);
    color: var(--premium-black);
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    z-index: 999;
    animation: goldShine 3s infinite;
}

.premium-icon {
    font-size: 1.2rem;
    animation: pulse 2s infinite;
}

@keyframes goldShine {
    0%, 100% { box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4); }
    50% { box-shadow: 0 6px 25px rgba(255, 215, 0, 0.6); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* ═══════════════════════════════════════════════════════════
   📱 CONTENEDOR PRINCIPAL
   ═══════════════════════════════════════════════════════════ */
.premium-recipes-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 30px;
    max-width: 1800px;
    margin: 0 auto;
    min-height: calc(100vh - 120px);
    overflow-x: hidden;
    box-sizing: border-box;
}

.recipes-form,
.recipes-preview {
    background: var(--premium-card);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 215, 0, 0.1);
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--gold-glow), 0 8px 32px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    max-width: 100%;
    box-sizing: border-box;
}

/* ═══════════════════════════════════════════════════════════
   ✨ TÍTULOS PREMIUM
   ═══════════════════════════════════════════════════════════ */
.premium-title {
    position: relative;
    margin-bottom: 8px;
}

.gold-gradient {
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-dark) 50%, var(--gold-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    display: inline-block;
}

.premium-subtitle {
    color: var(--premium-gray);
    font-size: 0.95rem;
    margin-bottom: 30px;
    font-weight: 500;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
}

/* ═══════════════════════════════════════════════════════════
   📑 TABS DE RECETAS
   ═══════════════════════════════════════════════════════════ */
.recipe-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--gold-light);
}

.recipe-tab {
    background: rgba(20, 20, 20, 0.6);
    border: 2px solid rgba(255, 215, 0, 0.2);
    padding: 12px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--premium-gray);
    backdrop-filter: blur(10px);
}

.recipe-tab:hover {
    border-color: var(--gold-accent);
    transform: translateY(-2px);
}

.recipe-tab.active {
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-accent) 100%);
    border-color: var(--gold-dark);
    color: #000;
    box-shadow: var(--gold-glow), 0 4px 12px rgba(255, 215, 0, 0.5);
}

/* ═══════════════════════════════════════════════════════════
   📦 SECCIONES PREMIUM
   ═══════════════════════════════════════════════════════════ */
.premium-section {
    background: linear-gradient(135deg, rgba(15, 15, 15, 0.9) 0%, rgba(255, 215, 0, 0.05) 100%);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.premium-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold-primary) 0%, var(--gold-dark) 50%, var(--gold-primary) 100%);
}

/* ═══════════════════════════════════════════════════════════
   🖼️ SUBIDA DE IMÁGENES
   ═══════════════════════════════════════════════════════════ */
.image-upload-container {
    margin-top: 15px;
}

.image-upload-placeholder {
    border: 3px dashed var(--gold-accent);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.8) 0%, rgba(255, 215, 0, 0.05) 100%);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    color: var(--premium-gray);
}

.image-upload-placeholder:hover {
    border-color: var(--gold-primary);
    transform: scale(1.02);
}

.upload-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 15px;
}

.image-preview {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 3px solid var(--gold-primary);
}

.image-preview img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 400px;
    object-fit: cover;
}

.btn-remove-image {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 0, 0, 0.9);
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-weight: bold;
}

.btn-remove-image:hover {
    background: red;
    transform: scale(1.1);
}

/* ═══════════════════════════════════════════════════════════
   🖼️ GALERÍA DE IMÁGENES ADICIONALES
   ═══════════════════════════════════════════════════════════ */
.additional-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.additional-image-card {
    position: relative;
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid var(--gold-accent);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.additional-image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.add-image-card {
    aspect-ratio: 1;
    border: 3px dashed var(--gold-accent);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.8) 0%, rgba(255, 215, 0, 0.05) 100%);
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.add-image-card:hover {
    border-color: var(--gold-primary);
    transform: scale(1.05);
}

.btn-add-image {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--gold-dark);
    font-weight: 600;
    font-size: 0.9rem;
}

.add-icon {
    font-size: 2rem;
    color: var(--gold-primary);
}

/* ═══════════════════════════════════════════════════════════
   📝 ITEMS DE PASOS Y EXTRAS
   ═══════════════════════════════════════════════════════════ */
.step-item,
.extra-item {
    background: rgba(20, 20, 20, 0.6);
    border: 2px solid rgba(255, 215, 0, 0.2);
    border-left: 4px solid var(--gold-primary);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    color: var(--text-primary);
}

.step-item:hover,
.extra-item:hover {
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.2);
    transform: translateX(5px);
}

.step-header,
.extra-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.step-number {
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-accent) 100%);
    color: var(--premium-black);
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
}

.extra-title-input {
    flex: 1;
    border: none;
    border-bottom: 2px solid var(--gold-accent);
    padding: 8px 12px;
    font-size: 1rem;
    font-weight: 600;
    background: transparent;
    color: var(--text-primary);
}

.extra-title-input:focus {
    outline: none;
    border-bottom-color: var(--gold-primary);
}

.btn-remove {
    background: #ff4444;
    color: white;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-remove:hover {
    background: #cc0000;
    transform: rotate(90deg);
}

.empty-message {
    text-align: center;
    color: #999;
    padding: 30px;
    font-style: italic;
}

/* ═══════════════════════════════════════════════════════════
   🔘 BOTONES PREMIUM
   ═══════════════════════════════════════════════════════════ */
.btn-premium {
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-dark) 100%);
    color: var(--premium-black);
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5);
}

.btn-premium-primary {
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-dark) 100%);
    color: var(--premium-black);
    border: none;
    padding: 14px 32px;
    border-radius: 10px;
    font-weight: 800;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
    flex: 1;
}

.btn-premium-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.6);
}

.btn-add {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 10px;
}

.btn-add:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.btn-danger {
    background: linear-gradient(135deg, #ff4444 0%, #cc0000 100%);
    color: white;
}

.btn-danger:hover {
    box-shadow: 0 4px 12px rgba(255, 68, 68, 0.3);
}

/* ═══════════════════════════════════════════════════════════
   🎨 VISTA PREVIA PREMIUM
   ═══════════════════════════════════════════════════════════ */
.recipes-preview {
    position: sticky;
    top: 0px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    background: linear-gradient(135deg, rgba(15, 15, 15, 0.9) 0%, rgba(255, 215, 0, 0.05) 100%);
    border: 3px solid var(--gold-primary);
    box-shadow: var(--gold-glow);
}

.premium-preview-content {
    margin-top: 20px;
}

.empty-preview {
    text-align: center;
    padding: 60px 20px;
    color: var(--premium-gray);
}

.empty-preview .premium-icon {
    font-size: 4rem;
    display: block;
    margin-bottom: 20px;
    opacity: 0.5;
}

/* ═══════════════════════════════════════════════════════════
   �️ VISTA PREVIA EN VIVO — PREMIUM CARD
   ═══════════════════════════════════════════════════════════ */
.prev-premium-card {
    background: linear-gradient(165deg, rgba(20,18,12,0.95) 0%, rgba(30,25,15,0.92) 100%);
    border: 1px solid rgba(212,175,55,0.25);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 30px rgba(0,0,0,0.5), inset 0 1px 0 rgba(212,175,55,0.1);
}

/* Header con imagen */
.prev-header {
    position: relative;
    min-height: 160px;
    background: linear-gradient(135deg, rgba(212,175,55,0.15) 0%, rgba(30,25,15,1) 100%);
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.prev-header-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35;
    filter: blur(1px);
}

.prev-header-overlay {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 24px 20px 16px;
    background: linear-gradient(to top, rgba(20,18,12,0.95) 0%, transparent 100%);
}

.prev-recipe-icon {
    font-size: 2.2rem;
    display: block;
    margin-bottom: 6px;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5));
}

.prev-recipe-name {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 800;
    background: linear-gradient(135deg, #d4af37, #f5d060, #d4af37);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.3;
}

.prev-recipe-meta {
    display: flex;
    gap: 12px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.prev-recipe-meta span {
    font-size: 0.72rem;
    color: rgba(212,175,55,0.7);
    background: rgba(212,175,55,0.08);
    padding: 3px 10px;
    border-radius: 20px;
    border: 1px solid rgba(212,175,55,0.15);
    white-space: nowrap;
}

/* Macros */
.prev-macros {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 14px 16px;
    background: rgba(0,0,0,0.3);
    border-top: 1px solid rgba(212,175,55,0.1);
    border-bottom: 1px solid rgba(212,175,55,0.1);
}

.prev-macro-item {
    text-align: center;
    padding: 8px 4px;
    border-radius: 8px;
    background: rgba(255,255,255,0.03);
}

.prev-macro-val {
    display: block;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.2;
}

.prev-macro-label {
    display: block;
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.7;
    margin-top: 2px;
}

.prev-macro-cal .prev-macro-val { color: #d4af37; }
.prev-macro-prot .prev-macro-val { color: #ef4444; }
.prev-macro-carb .prev-macro-val { color: #f59e0b; }
.prev-macro-fat .prev-macro-val { color: #3b82f6; }
.prev-macro-cal .prev-macro-label { color: #d4af37; }
.prev-macro-prot .prev-macro-label { color: #ef4444; }
.prev-macro-carb .prev-macro-label { color: #f59e0b; }
.prev-macro-fat .prev-macro-label { color: #3b82f6; }

.prev-macro-bar {
    height: 3px;
    background: rgba(255,255,255,0.08);
    border-radius: 3px;
    margin-top: 6px;
    overflow: hidden;
}

.prev-macro-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.5s ease;
}

.prev-macro-fill.prot { background: #ef4444; }
.prev-macro-fill.carb { background: #f59e0b; }
.prev-macro-fill.fat  { background: #3b82f6; }

/* Secciones del preview */
.prev-section {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(212,175,55,0.08);
}

.prev-section:last-of-type {
    border-bottom: none;
}

.prev-section-title {
    margin: 0 0 12px 0;
    font-size: 0.82rem;
    font-weight: 700;
    color: #d4af37;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Ingredientes */
.prev-ingredients-list {
    list-style: none;
    padding: 0;
    margin: 0;
    columns: 2;
    column-gap: 16px;
}

.prev-ingredients-list li {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.8);
    padding: 4px 0 4px 18px;
    position: relative;
    break-inside: avoid;
    line-height: 1.5;
}

.prev-ingredients-list li::before {
    content: '◆';
    position: absolute;
    left: 0;
    color: #d4af37;
    font-size: 0.5rem;
    top: 8px;
}

/* Pasos */
.prev-steps-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.prev-step {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.prev-step-num {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d4af37, #b8941f);
    color: #0f0d08;
    font-size: 0.72rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(212,175,55,0.3);
}

.prev-step-text {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.8);
    line-height: 1.6;
    padding-top: 3px;
}

/* Extras */
.prev-extra {
    background: rgba(212,175,55,0.05);
    border: 1px solid rgba(212,175,55,0.1);
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 8px;
}

.prev-extra:last-child {
    margin-bottom: 0;
}

.prev-extra-name {
    font-size: 0.78rem;
    font-weight: 700;
    color: #d4af37;
    margin-bottom: 4px;
}

.prev-extra-content {
    font-size: 0.74rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.5;
}

/* Tips */
.prev-tips {
    background: rgba(212,175,55,0.04);
    border-left: 3px solid rgba(212,175,55,0.3);
    border-radius: 0 8px 8px 0;
}

.prev-tips p {
    font-size: 0.76rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
    margin: 0;
    white-space: pre-line;
}

/* Galería */
.prev-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 8px;
    padding: 14px 20px;
}

.prev-gallery-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(212,175,55,0.15);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.prev-gallery-img:hover {
    transform: scale(1.05);
    border-color: rgba(212,175,55,0.5);
}

/* Footer */
.prev-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: rgba(0,0,0,0.3);
    border-top: 1px solid rgba(212,175,55,0.1);
    font-size: 0.65rem;
    color: rgba(212,175,55,0.5);
    letter-spacing: 0.5px;
}

/* ═══════════════════════════════════════════════════════════
   �📱 RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 1400px) {
    .premium-recipes-container {
        grid-template-columns: 1fr;
    }

    .recipes-preview {
        position: relative;
        top: 0;
        max-height: none;
    }

    .premium-badge {
        position: static;
        margin: 0 auto 20px;
        width: fit-content;
    }
}

@media (max-width: 768px) {
    .premium-recipes-container {
        padding: 15px;
        gap: 20px;
    }

    .recipes-form,
    .recipes-preview {
        padding: 20px;
    }

    .recipe-tabs {
        gap: 8px;
    }

    .recipe-tab {
        padding: 10px 15px;
        font-size: 0.9rem;
    }

    .additional-images-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .form-row-4 {
        grid-template-columns: 1fr 1fr;
    }
}

/* ═══════════════════════════════════════════════════════════
   🎯 UTILIDADES
   ═══════════════════════════════════════════════════════════ */
.form-row-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.action-buttons {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid var(--gold-light);
}

/* Scrollbar personalizado para la vista previa */
.recipes-preview::-webkit-scrollbar {
    width: 8px;
}

.recipes-preview::-webkit-scrollbar-track {
    background: rgba(20, 20, 20, 0.5);
    border-radius: 10px;
}

.recipes-preview::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-dark) 100%);
    border-radius: 10px;
}

.recipes-preview::-webkit-scrollbar-thumb:hover {
    background: var(--gold-dark);
}

/* ═══════════════════════════════════════════════════════════
   📝 INPUTS Y TEXTAREAS CON TEMA OSCURO
   ═══════════════════════════════════════════════════════════ */
.premium-section input[type="text"],
.premium-section input[type="number"],
.premium-section select,
.premium-section textarea {
    background: rgba(20, 20, 20, 0.8);
    border: 2px solid rgba(255, 215, 0, 0.2);
    color: var(--text-primary);
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    width: 100%;
}

.premium-section input[type="text"]:focus,
.premium-section input[type="number"]:focus,
.premium-section select:focus,
.premium-section textarea:focus {
    outline: none;
    border-color: var(--gold-primary);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.premium-section input::placeholder,
.premium-section textarea::placeholder {
    color: rgba(160, 160, 160, 0.6);
}

.premium-section label {
    color: var(--text-secondary);
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.step-item textarea,
.extra-item textarea {
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid rgba(255, 215, 0, 0.1);
    color: var(--text-primary);
    padding: 10px;
    border-radius: 6px;
    resize: vertical;
    min-height: 80px;
    width: 100%;
    margin-top: 8px;
}

.step-item textarea:focus,
.extra-item textarea:focus {
    outline: none;
    border-color: var(--gold-accent);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
}

/* ═══════════════════════════════════════════════════════════════
   👑 PRESETS PREMIUM
   ═══════════════════════════════════════════════════════════════ */

.premium-presets {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.05), rgba(218, 165, 32, 0.05));
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(255, 215, 0, 0.1);
}

.presets-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
    text-align: center;
}

.presets-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

.premium-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    margin-top: 15px;
}

.premium-preset-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px 10px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(20, 20, 20, 0.8));
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    min-height: 130px;
    position: relative;
    overflow: hidden;
}

.premium-preset-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.2), transparent);
    transition: left 0.5s ease;
}

.premium-preset-btn:hover::before {
    left: 100%;
}

.premium-preset-btn:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3),
                0 0 30px rgba(255, 215, 0, 0.2);
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(218, 165, 32, 0.1));
}

.premium-preset-btn:active {
    transform: translateY(-2px);
}

.premium-preset-btn .preset-icon {
    font-size: 2.5rem;
    margin-bottom: 8px;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
}

.premium-preset-btn .preset-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    line-height: 1.2;
}

.premium-preset-btn .preset-category {
    font-size: 0.7rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    font-weight: 500;
}

.premium-preset-btn .preset-difficulty {
    font-size: 0.65rem;
    color: var(--text-secondary);
    padding: 2px 8px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 8px;
    margin-top: 4px;
}

.premium-preset-btn .preset-time {
    font-size: 0.6rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ═══════════════════════════════════════════════════════════════
   🔍 BUSCADOR Y FILTROS DE RECETAS
   ═══════════════════════════════════════════════════════════════ */

.recipe-search-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-bottom: 15px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    border: 1px solid rgba(255, 215, 0, 0.15);
}

.search-box {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 25px;
    padding: 8px 15px;
    flex: 1;
    min-width: 200px;
    max-width: 300px;
    transition: all 0.3s ease;
}

.search-box:focus-within {
    border-color: var(--gold-accent);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
}

.search-box .search-icon {
    margin-right: 8px;
    font-size: 0.9rem;
}

.search-box input {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 0.85rem;
    flex: 1;
    outline: none;
}

.search-box input::placeholder {
    color: var(--text-muted);
}

.clear-search {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 2px 6px;
    font-size: 0.8rem;
    transition: color 0.2s;
}

.clear-search:hover {
    color: var(--gold-accent);
}

.filter-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-chip {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    color: var(--text-secondary);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.filter-chip:hover {
    background: rgba(255, 215, 0, 0.2);
    color: var(--text-primary);
}

.filter-chip.active {
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-accent));
    color: #000;
    font-weight: 600;
    border-color: var(--gold-primary);
}

.difficulty-filter select {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 215, 0, 0.2);
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    cursor: pointer;
}

.difficulty-filter select:focus {
    outline: none;
    border-color: var(--gold-accent);
}

.recipes-counter {
    text-align: right;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.recipes-counter span {
    color: var(--gold-accent);
    font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════════
   🎠 CARRUSEL DE RECETAS
   ═══════════════════════════════════════════════════════════════ */

.recipes-carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-accent));
    border: none;
    border-radius: 50%;
    color: #000;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.carousel-prev {
    left: -15px;
}

.carousel-next {
    right: -15px;
}

.carousel-nav:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 25px rgba(255, 215, 0, 0.5);
}

.recipes-carousel {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 10px 5px 20px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--gold-accent) rgba(0, 0, 0, 0.3);
}

.recipes-carousel::-webkit-scrollbar {
    height: 6px;
}

.recipes-carousel::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 3px;
}

.recipes-carousel::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, var(--gold-primary), var(--gold-accent));
    border-radius: 3px;
}

.recipe-card-wrapper {
    scroll-snap-align: start;
    flex: 0 0 auto;
}

.recipe-carousel-card {
    width: 160px;
    min-height: 150px;
}

/* Dificultad con colores */
.difficulty-facil {
    background: rgba(34, 197, 94, 0.2) !important;
    color: #22c55e !important;
}

.difficulty-intermedio {
    background: rgba(251, 191, 36, 0.2) !important;
    color: #fbbf24 !important;
}

.difficulty-avanzado, .difficulty-dificil {
    background: rgba(239, 68, 68, 0.2) !important;
    color: #ef4444 !important;
}

.difficulty-experto {
    background: rgba(168, 85, 247, 0.2) !important;
    color: #a855f7 !important;
}

/* Responsive para carrusel */
@media (max-width: 768px) {
    .recipe-search-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-box {
        max-width: 100%;
    }
    
    .filter-chips {
        justify-content: center;
    }
    
    .carousel-nav {
        width: 32px;
        height: 32px;
        font-size: 1.2rem;
    }
    
    .carousel-prev {
        left: -5px;
    }
    
    .carousel-next {
        right: -5px;
    }
    
    .recipe-carousel-card {
        width: 140px;
        min-height: 130px;
    }
}

@media (max-width: 480px) {
    .filter-chips {
        gap: 6px;
    }
    
    .filter-chip {
        padding: 4px 10px;
        font-size: 0.7rem;
    }
    
    .recipe-carousel-card {
        width: 130px;
        min-height: 120px;
    }
}

/* Responsive para presets (original) */
@media (max-width: 768px) {
    .premium-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 10px;
    }

    .premium-preset-btn {
        min-height: 110px;
        padding: 12px 8px;
    }

    .premium-preset-btn .preset-icon {
        font-size: 2rem;
    }

    .premium-preset-btn .preset-name {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .premium-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
