/* Estilos generales y variables */
@font-face {
    font-family: 'Poppins';
    src: url('fonts/Poppins-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
}

:root {
    --primary-red: #BB0B2F;
    --primary-red-hover: #900824;
    --bg-dark: #000000;
    --bg-card: #0a0a0a;
    --text-light: #ffffff;
    --text-muted: #cccccc;
    --gold: #FFC107;
    --border-color: #222;
    --spacing-unit: 1rem;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    font-weight: 300;
}

h1, h2, h3, h4, .btn-text {
    font-family: 'Poppins', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

h1 {
    font-weight: 600;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

h2 {
    font-weight: 600;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--primary-red);
}

h3 {
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Header Styles (User provided) */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--bg-dark);
    padding: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.files-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

/* Navbar Overlay - Oculto para evitar duplicación con la imagen de cabecera */
.navbar-overlay {
    display: none;
}

/* Recipe Header (New section for title) */
.recipe-header {
    text-align: center;
    padding: 3rem 0 2rem 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 3rem;
    margin-top: 2rem; /* Añadido margen superior para separar de la cabecera */
}

.recipe-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.recipe-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    font-size: 1rem;
    color: var(--text-muted);
}

.recipe-meta i {
    color: var(--primary-red);
    margin-right: 0.5rem;
}


.recipe-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    font-size: 1rem;
    color: var(--text-muted);
}

.recipe-meta i {
    color: var(--primary-red);
    margin-right: 0.5rem;
}

/* Featured Image */
.recipe-featured-image {
    margin-bottom: 3rem;
    text-align: center;
}

.recipe-featured-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    max-height: 500px;
    object-fit: cover;
    width: 100%;
}

/* Recipe Layout */
.recipe-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

/* Recipe Instructions */
.recipe-instructions ol {
    list-style: none;
    counter-reset: recipe-step;
    padding-left: 0;
}

.recipe-instructions li {
    counter-increment: recipe-step;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
}

.recipe-instructions li::before {
    content: counter(recipe-step);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-red);
    margin-right: 1rem;
    background-color: var(--bg-card);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.recipe-tips {
    background-color: var(--bg-card);
    border-left: 4px solid var(--primary-red);
    padding: 1.5rem;
    margin-top: 2rem;
}

.recipe-tips h3 {
    color: var(--primary-red);
}

.recipe-tips i {
    margin-right: 0.5rem;
}

/* Sidebar */
.recipe-sidebar {
    position: sticky;
    top: 2rem;
}

.ingredients-card {
    background-color: var(--bg-card);
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.ingredients-card ul {
    padding-left: 0;
}

.ingredients-card li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.ingredients-card li::before {
    content: '\f00c'; /* FontAwesome check icon */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--primary-red);
    margin-right: 1rem;
}

.btn-primary {
    display: block;
    background-color: var(--primary-red);
    color: var(--text-light);
    text-align: center;
    padding: 1rem;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 600;
    transition: background-color 0.3s;
    margin-bottom: 2rem;
}

.btn-primary:hover {
    background-color: var(--primary-red-hover);
}

.btn-primary i {
    margin-right: 0.5rem;
}

/* Related Recipes */
.related-recipes h3 {
    color: var(--primary-red);
}

.related-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.related-item img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    transition: transform 0.3s;
}

.related-item:hover img {
    transform: scale(1.05);
}

/* Responsive */
@media (max-width: 992px) {
    .recipe-layout {
        grid-template-columns: 1fr;
    }
    .main-nav .nav-links {
        display: none; /* Ocultar menú en móviles por ahora o implementar menú hamburguesa */
    }
    .search-form {
        display: none;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    .hero-section {
        padding: 4rem 1rem;
    }
    .container {
        padding: 1rem;
    }
    .header-container {
        padding: 0 1rem;
    }
}
