:root {
    --bg-dark: #1a0b2e; /* Fondo morado muy oscuro y elegante */
    --bg-card: rgba(255, 255, 255, 0.03); /* Transparencia muy sutil */
    --accent-neon: #ff007f; /* Rosa/Fucsia original */
    --accent-glow: #9b59b6; /* Morado/Púrpura (sin naranja/dorado) */
    --text-primary: #e2e8f0; /* Blanco roto/grisáceo para leer bien */
    --text-muted: #94a3b8; /* Gris azulado neutro */
    --glass-border: rgba(255, 255, 255, 0.05); /* Borde súper sutil */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(26, 11, 46, 0.8);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border-radius: 4px;
    box-shadow: none;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-neon);
}

/* Glassmorphism utility */
.glass {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: transparent;
    -webkit-text-stroke: 1.5px var(--text-primary);
    animation: neonStroke 3s infinite alternate;
}

@keyframes neonStroke {
    0% { -webkit-text-stroke-color: var(--accent-neon); }
    100% { -webkit-text-stroke-color: var(--accent-glow); }
}



.nav-logo {
    height: 35px;
    width: auto;
    border-radius: 5px; /* In case the logo has hard edges */
}

.logo span {
    color: var(--accent-neon);
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    margin: 0 1rem;
    font-weight: 600;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent-neon);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    cursor: pointer;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 220px;
    border-radius: 12px;
    padding: 10px 0;
    z-index: 2000;
    flex-direction: column;
}

.dropdown:hover .dropdown-content {
    display: flex;
}

.dropdown-content a {
    margin: 0;
    padding: 15px 20px;
    display: block;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background: rgba(255, 0, 127, 0.2);
}

/* Buttons */
button {
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    padding: 0.8rem 1.5rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #1e1e24;
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

.btn-primary::after {
    content: '→';
    position: absolute;
    right: -30px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 1.2rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    padding-right: 2.8rem;
    border-color: var(--accent-neon);
}

.btn-primary:hover::after {
    right: 15px;
    opacity: 1;
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--text-muted);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-primary);
}

.neon-btn {
    box-shadow: none;
    border: 1px solid var(--accent-neon);
    animation: none;
}

.neon-btn::after {
    content: '→';
}

.neon-btn:hover {
    box-shadow: 0 0 10px rgba(255, 0, 127, 0.2);
}

/* Sections */
.section {
    min-height: calc(100vh - 80px);
    padding: 40px 5%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 80px; /* Offset for navbar */
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 10px;
    background: linear-gradient(45deg, var(--text-primary), var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 40px;
}

/* Hero Section */
.hero {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    background: radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.02) 0%, transparent 50%);
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.glow-text {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: transparent;
    -webkit-text-stroke: 2px var(--accent-neon);
    animation: neonStroke 3s infinite alternate;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Recipe Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.category-card {
    padding: 2.5rem 1.5rem;
    text-align: center;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 0, 127, 0.1), transparent);
    transition: left 0.5s;
}

.category-card:hover::before {
    left: 100%;
}

.category-card:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 15px 40px rgba(255, 0, 85, 0.3), 0 0 20px rgba(255, 0, 0, 0.2);
    border-color: rgba(255, 0, 85, 0.5);
}

/* Floating emoji on hover */
.category-card::after {
    content: '❤️‍🔥';
    position: absolute;
    bottom: -20px;
    right: 20px;
    font-size: 2rem;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: scale(0) rotate(-20deg);
}

.category-card:hover::after {
    bottom: 20px;
    opacity: 1;
    transform: scale(1) rotate(10deg);
}

.cat-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.category-card:hover .cat-icon {
    transform: scale(1.2) translateY(-5px);
    text-shadow: 0 10px 20px rgba(255, 0, 85, 0.4);
}

.category-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

/* Horno Privado */
.horno-privado {
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 30px;
    margin: 40px 5%;
    padding: 40px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.horno-grid {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 4rem;
    align-items: center;
    width: 100%;
}

.horno-text {
    flex: 1;
}

.badge {
    background: rgba(255, 0, 127, 0.1);
    color: var(--accent-neon);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: inline-block;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 0, 127, 0.3);
}

.horno-text h2 {
    font-size: 3.5rem;
    margin: 0.5rem 0 1.5rem 0;
    color: var(--text-primary);
    text-shadow: none;
}

.horno-text p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.horno-image {
    flex: 1;
    border-radius: 20px;
    overflow: hidden;
    height: 400px;
}

.horno-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Shop */
.shop {
    flex-direction: column;
}

/* Work In Progress Container */
.wip-container {
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
    padding: 3rem 2rem;
    text-align: center;
    border-radius: 20px;
    border: 1px dashed rgba(255, 0, 127, 0.4);
    background: rgba(15, 17, 26, 0.6);
}

.wip-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    display: block;
    animation: pulse 2s infinite;
}

.wip-container h3 {
    font-size: 1.8rem;
    color: var(--accent-neon);
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.wip-container p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Footer */
.footer {
    text-align: center;
    padding: 3rem;
    border-top: 1px solid var(--glass-border);
    margin-top: 50px;
}

.footer h2 {
    font-weight: 800;
    letter-spacing: 2px;
}

/* --- Herramientas VIP --- */
.vip-tools {
    padding-top: 100px;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.tool-card {
    padding: 2rem;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    /* Efecto Glass más agresivo */
    background: rgba(20, 22, 33, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 0, 127, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(255, 0, 127, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,0,127,0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 0;
}

.tool-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--accent-neon);
    box-shadow: 0 15px 40px rgba(255, 0, 127, 0.2), inset 0 0 20px rgba(255, 0, 127, 0.15);
}

.tool-card:hover::before {
    opacity: 1;
}

.tool-card > * {
    position: relative;
    z-index: 1;
}

.tool-card h3 {
    color: var(--accent-neon);
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
    text-shadow: 0 0 10px rgba(255,0,127,0.4);
}

.tool-card p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 1.8rem;
    line-height: 1.5;
}

.tool-result {
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    box-shadow: inset 0 0 15px rgba(0,0,0,0.8);
    font-size: 1.1rem;
}
.tool-result p strong {
    color: var(--accent-glow);
    font-size: 1.2rem;
}

.shopping-list {
    list-style: none;
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 1rem;
}

.shopping-list li {
    padding: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.shopping-list li:hover {
    background: rgba(255,255,255,0.02);
}

.shopping-list li.done {
    text-decoration: line-through;
    opacity: 0.5;
}

.empty-list {
    color: var(--text-muted);
    text-align: center;
    font-style: italic;
    border: none !important;
}

.timer-btn {
    padding: 0.5rem 1rem;
    font-size: 1.1rem;
}

/* --- Recipe Modal --- */
.recipe-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(26, 11, 46, 0.9);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.recipe-modal.active {
    display: flex;
    opacity: 1;
}

.recipe-modal-content {
    width: 90%;
    max-width: 1200px;
    height: 80vh;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 25px;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s;
}

.close-btn:hover {
    color: var(--accent-neon);
}

.recipe-layout {
    display: flex;
    height: 100%;
}

.recipe-sidebar {
    width: 300px;
    background: rgba(45, 27, 78, 0.95);
    border-right: 1px solid var(--glass-border);
    padding: 2rem 1rem;
    overflow-y: auto;
}

.category-title {
    color: var(--accent-neon);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.recipe-list {
    list-style: none;
}

.recipe-list li {
    padding: 10px;
    margin-bottom: 5px;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.3s, color 0.3s;
    font-size: 0.95rem;
}

.recipe-list li:hover, .recipe-list li.active {
    background: rgba(255, 0, 127, 0.15);
    color: var(--accent-neon);
}

.recipe-main {
    flex: 1;
    padding: 2rem 3rem;
    overflow-y: auto;
    background: #1a0b2e;
}

.empty-state {
    display: flex;
    height: 100%;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    color: var(--text-muted);
}

/* Markdown Styles inside Recipe */
.recipe-content-html h1 {
    color: var(--accent-neon);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.recipe-content-html h2 {
    color: var(--text-primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 0.5rem;
}

.recipe-content-html p {
    line-height: 1.6;
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.recipe-content-html ul {
    margin-left: 20px;
    margin-bottom: 1.5rem;
}

.recipe-content-html li {
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.recipe-content-html blockquote {
    border-left: 4px solid var(--accent-glow);
    padding-left: 15px;
    margin: 1.5rem 0;
    font-style: italic;
    background: rgba(255,127,0,0.1);
    padding: 10px 15px;
    border-radius: 0 5px 5px 0;
}

.recipe-content-html img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: block;
}

.category-link {
    cursor: pointer;
    transition: color 0.3s, transform 0.3s;
}
.category-link:hover {
    color: var(--accent-glow);
    transform: translateX(5px);
}

/* Responsive */
@media (max-width: 768px) {
    .hero, .horno-grid, .video-gallery {
        flex-direction: column;
    }
    
    .ranking-grid {
        flex-wrap: wrap;
    }

    .recipe-layout {
        flex-direction: column;
    }

    .recipe-sidebar {
        width: 100%;
        height: 250px;
        border-right: none;
        border-bottom: 1px solid var(--glass-border);
    }

    .recipe-main {
        padding: 1.5rem;
    }
    
    .glow-text {
        font-size: 2.5rem;
    }

    .book-container {
        margin-top: 3rem;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-card);
        backdrop-filter: blur(12px);
        padding: 1rem 0;
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
        z-index: 1001;
    }
    
    .nav-links.mobile-open {
        display: flex;
    }

    .nav-links a {
        margin: 10px 0;
        text-align: center;
        width: 100%;
    }

    .dropdown-content {
        position: static;
        transform: none;
        min-width: 100%;
        background: rgba(0,0,0,0.02);
        box-shadow: none;
        border: none;
    }

    .navbar .btn-primary {
        display: none; /* Hide 'Únete' button to make space for hamburger */
    }
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0 10px;
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: block;
    }
}

/* Buscador de Ingredientes */
.buscador {
    flex-direction: column;
    padding-top: 100px;
}

.ingredients-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    padding: 2rem;
    border-radius: 20px;
    max-width: 900px;
    margin-bottom: 3rem;
}

.ingredient-chip {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.ingredient-chip:hover {
    background: rgba(255, 0, 127, 0.2);
    border-color: var(--accent-neon);
    transform: translateY(-2px);
}

.ingredient-chip.active {
    background: linear-gradient(45deg, var(--accent-neon), var(--accent-glow));
    color: white;
    border-color: transparent;
    box-shadow: 0 5px 15px rgba(255, 0, 127, 0.4);
}

.search-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    width: 100%;
    max-width: 1200px;
}

.search-result-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-result-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-neon);
    box-shadow: 0 10px 20px rgba(255, 0, 127, 0.15);
}

.search-result-card h4 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.search-result-card span {
    font-size: 0.9rem;
    color: var(--accent-neon);
}

/* Calculadora de Calorías */
.calc-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    border-radius: 20px;
}

.calc-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.input-group {
    display: flex;
    flex-direction: column;
}

.input-group label {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: bold;
}

.glass-input {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 0, 127, 0.3);
    color: var(--text-primary);
    padding: 1rem;
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Space Grotesk', 'Outfit', sans-serif;
    transition: all 0.3s ease;
}

.glass-input:focus {
    outline: none;
    border-color: var(--accent-neon);
    box-shadow: 0 0 15px rgba(255, 0, 127, 0.4), inset 0 0 10px rgba(255,0,127,0.1);
    background: rgba(0, 0, 0, 0.7);
}

/* Fix select inputs for glass effect */
select.glass-input {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23ff007f%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem top 50%;
    background-size: 0.65rem auto;
}
select.glass-input option {
    background: var(--bg-dark);
    color: var(--text-primary);
}

.calc-resultados {
    margin-top: 3rem;
    text-align: center;
}

.calc-resultados h3 {
    margin-bottom: 1.5rem;
    color: var(--accent-neon);
    font-size: 1.5rem;
}

.cal-card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.cal-card h4 {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.cal-card p {
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-primary);
}

.cal-card.deficit {
    border-color: var(--accent-neon);
    box-shadow: 0 5px 20px rgba(255, 0, 127, 0.2);
}

.cal-card.deficit p {
    color: var(--accent-glow);
}

.macros-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Botón de Favoritos */
.fav-btn {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.fav-btn:hover {
    background: rgba(255, 0, 127, 0.2);
    border-color: var(--accent-neon);
}

.fav-btn.fav-active {
    background: rgba(255, 0, 127, 0.1);
    border-color: var(--accent-glow);
    color: var(--accent-glow);
    box-shadow: 0 0 10px rgba(255, 0, 127, 0.3);
}

/* Herramientas VIP y Rutinas */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.tool-card {
    padding: 2rem;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tool-card h3 {
    color: var(--accent-neon);
    margin-bottom: 0.5rem;
}

.tool-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.shopping-list {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
    max-height: 200px;
    overflow-y: auto;
    background: rgba(0,0,0,0.3);
    border-radius: 10px;
    padding: 10px;
    border: 1px solid var(--glass-border);
}

.shopping-list li {
    padding: 8px 10px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.shopping-list li:last-child {
    border-bottom: none;
}

.shopping-list .empty-list {
    color: var(--text-muted);
    font-style: italic;
    justify-content: center;
}

.tool-result {
    background: rgba(0,0,0,0.5);
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid var(--accent-glow);
    color: var(--text-primary);
}

.timer-btn {
    flex: 1;
    padding: 10px;
    font-size: 1.1rem;
}

/* Rankings y Counters */
.top-ranking-container {
    padding: 2rem;
    border-radius: 20px;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.ranking-grid {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 1.5rem;
    padding-top: 2rem;
}

.ranking-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 15px;
    padding: 1.5rem 1rem;
    text-align: center;
    width: 200px;
    position: relative;
    transition: transform 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.ranking-card:hover {
    transform: translateY(-10px) !important;
    background: rgba(255, 0, 127, 0.1);
    border-color: var(--accent-neon);
}

.ranking-card img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 10px auto;
    border: 2px solid var(--accent-neon);
}

.ranking-card h4 {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.views-counter {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
}

.medal {
    font-size: 2.5rem;
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    filter: drop-shadow(0 5px 10px rgba(0,0,0,0.5));
}

/* Patrocinios y Wishlist */
.sponsorship-grid, .wishlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.sponsor-card, .wishlist-card {
    padding: 2rem;
    text-align: center;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.sponsor-img-placeholder, .wishlist-img {
    height: 150px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-weight: bold;
    margin-bottom: 1rem;
    border: 1px dashed rgba(255,255,255,0.3);
}

.wishlist-card .price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent-glow);
    margin: 10px 0;
}

/* Visitor Counter Footer */
.visitor-counter {
    background: rgba(255,0,127,0.1);
    border: 1px solid var(--accent-neon);
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    display: inline-block;
    margin-top: 15px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 0 15px rgba(255,0,127,0.3);
}

.visitor-number {
    color: var(--accent-glow);
    font-size: 1.1rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}


/* ==========================================================================
   MOBILE & TABLET RESPONSIVENESS (Consolidated)
   ========================================================================== */

@media (max-width: 768px) {
    /* Layouts generales */
    .section {
        padding: 20px 5%;
        margin-top: 60px;
    }
    .section-title {
        font-size: 2.2rem;
    }
    .glow-text {
        font-size: 2.5rem;
    }
    .logo {
        font-size: 1.2rem;
    }

    /* Grids a columnas */
    .hero, .horno-grid, .video-gallery, .search-results-grid, .tools-grid, .sponsorship-grid, .wishlist-grid {
        flex-direction: column;
        grid-template-columns: 1fr;
    }

    /* Horno Privado */
    .horno-privado {
        padding: 20px;
        margin: 20px 5%;
    }
    .horno-image {
        height: 250px;
    }
    .horno-text h2 {
        font-size: 2.5rem;
    }

    /* Navbar y Menú Hamburguesa */
    .mobile-toggle {
        display: block;
    }
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(26, 11, 46, 0.98);
        backdrop-filter: blur(12px);
        padding: 1rem 0;
        box-shadow: 0 10px 20px rgba(0,0,0,0.5);
        z-index: 1001;
    }
    .nav-links.mobile-open {
        display: flex;
    }
    .nav-links a {
        margin: 10px 0;
        text-align: center;
        width: 100%;
        padding: 10px;
    }
    .dropdown-content {
        position: static;
        transform: none;
        min-width: 100%;
        background: rgba(0,0,0,0.2);
        box-shadow: none;
        border: none;
    }
    .navbar .btn-primary {
        display: none; /* Ocultar para dar espacio en móvil */
    }

    /* Top Ranking */
    .ranking-grid {
        flex-wrap: wrap;
    }
    .top-ranking-container {
        padding: 1rem;
    }

    /* Recipe Modal */
    .recipe-layout {
        flex-direction: column;
    }
    .recipe-sidebar {
        width: 100%;
        height: 200px;
        border-right: none;
        border-bottom: 1px solid var(--glass-border);
        padding: 1rem;
    }
    .recipe-main {
        padding: 1rem;
    }
    .recipe-modal-content {
        width: 95%;
        height: 90vh;
    }

    /* WIP Containers */
    .wip-container, .tool-card, .wishlist-card {
        padding: 1.5rem;
    }
    
    /* Buscador e inputs */
    .ingredients-container {
        padding: 1rem;
    }
    .calc-form {
        grid-template-columns: 1fr;
    }
    .macros-grid {
        grid-template-columns: 1fr;
    }
}

/* Teléfonos muy pequeños */
@media (max-width: 480px) {
    .section-title {
        font-size: 1.8rem;
    }
    .glow-text {
        font-size: 2rem;
    }
    .logo {
        font-size: 1rem;
        -webkit-text-stroke: 0.5px #000;
    }
    .btn-primary {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    .horno-text h2 {
        font-size: 2rem;
    }
}
