/* Estilos generales */
:root {
    --primary-color: #e52e71;
    --secondary-color: #ff8a00;
    --dark-color: #2f3a46;
    --light-color: #f8f9fa;
    --text-color: #333;
    --text-light: #666;
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-heading: 'Playfair Display', serif;
    --transition: all 0.3s ease;
}

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

body {
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.6;
    background-color: #fff;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}




/* Main content */
main {
    margin-top: 80px; /* Para evitar que el contenido se oculte detrás del header fijo */
    min-height: calc(100vh - 200px);
}

/* Sección Comida Sana */
#comida-sana {
    background: linear-gradient(180deg, #fff9f0 0%, #fff 100%);
    padding: 60px 0;
    font-family: var(--font-main);
}

/* Estilos para el menú móvil */
.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--dark-color);
}

/* Footer */
footer {
    background-color: #2f3a46;
    color: #fff;
    padding: 60px 0 0;
    font-family: var(--font-main);
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-about {
    flex: 1;
    min-width: 300px;
    margin-bottom: 30px;
    padding-right: 20px;
}

.footer-about h4 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #fff;
    font-family: var(--font-heading);
}

.footer-about p {
    color: #b3b3b3;
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-links {
    flex: 1;
    min-width: 200px;
    margin-bottom: 30px;
    padding: 0 20px;
}

.footer-links h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #fff;
    font-family: var(--font-heading);
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: #b3b3b3;
    transition: var(--transition);
    display: block;
    padding: 5px 0;
}

.footer-links ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-social {
    flex: 1;
    min-width: 200px;
    margin-bottom: 30px;
    padding-left: 20px;
}

.footer-social h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #fff;
    font-family: var(--font-heading);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 50%;
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: #b3b3b3;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 992px) {
    .footer-container {
        flex-direction: column;
    }
    
    .footer-about,
    .footer-links,
    .footer-social {
        padding: 0 0 30px;
        min-width: 100%;
    }
}


/* Animaciones */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

/* Título principal */
#comida-sana h2 {
    text-align: center;
    font-size: 2.5em;
    color: #e52e71;
    margin-bottom: 40px;
    font-family: 'Playfair Display', serif;
    position: relative;
    padding-bottom: 15px;
}

#comida-sana h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #ff8a00, #e52e71);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* Filtros y búsqueda */
.recipe-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
}

.filter-btn {
    background: white;
    border: 2px solid #e52e71;
    color: #e52e71;
    padding: 8px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-btn i {
    font-size: 0.9em;
}

.filter-btn:hover, .filter-btn.active {
    background: #e52e71;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(229, 46, 113, 0.2);
}

/* Grid de recetas */
.recipes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    padding: 20px 0;
}

/* Tarjeta de receta */
.plato-sano {
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.plato-sano:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

/* Contenedor de la imagen */
.plato-sano a {
    display: block;
    width: 100%;
    height: 200px; /* Altura fija para todas las imágenes */
    overflow: hidden;
}

/* Estilos para las imágenes de las recetas */
.plato-sano img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
    display: block;
}

.plato-sano:hover img {
    transform: scale(1.1);
}

/* Contenido de la tarjeta */
.plato-sano .recipe-content {
    padding: 20px 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.plato-sano h3 {
    color: #2f3a46;
    margin: 0 0 8px 0;
    font-size: 1.1em;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
}

.recipe-meta {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 0.8em;
    color: #666;
}

.recipe-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.recipe-meta i {
    color: #e52e71;
}

.plato-sano p {
    color: #555;
    line-height: 1.4;
    margin: 0 0 10px 0;
    font-size: 0.9em;
    flex-grow: 1;
}

.recipe-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.tag {
    background: #f0f0f0;
    color: #666;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.8em;
    font-weight: 500;
}

/* Botón de ver receta - Estilos específicos para sobrescribir otros */
.plato-sano .recipe-actions {
    display: flex !important;
    justify-content: flex-end !important;
    margin: 5px 0 0 0 !important;
    padding: 0 !important;
    width: auto !important;
    float: right;
}

.plato-sano .view-recipe {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(135deg, #e52e71 0%, #ff8a00 100%) !important;
    color: white !important;
    border: none !important;
    border-radius: 15px !important;
    padding: 6px 18px !important;
    font-size: 0.85em !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    height: 39px !important;
    line-height: 1.3 !important;
    white-space: nowrap !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15) !important;
    transform: none !important;
    margin: 0 !important;
    letter-spacing: 0.4px;
}

.plato-sano .view-recipe:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 5px rgba(229, 46, 113, 0.3) !important;
    background: linear-gradient(135deg, #e52e71 0%, #ff8a00 80%) !important;
}

.plato-sano .view-recipe i {
    margin-left: 7px !important;
    font-size: 0.8em !important;
    transition: transform 0.2s ease !important;
}

.plato-sano .view-recipe:hover i {
    transform: translateX(2px) !important;
}

/* Responsive */
@media (max-width: 768px) {
    .recipes-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
    }
    
    #comida-sana h2 {
        font-size: 2em;
    }
    
    .recipe-filters {
        gap: 10px;
    }
    
    .filter-btn {
        padding: 6px 15px;
        font-size: 0.9em;
    }
}

/* Animaciones */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.plato-sano {
    animation: fadeIn 0.5s ease-out forwards;
    opacity: 0;
}

/* Retraso para la animación de cada tarjeta */
.plato-sano:nth-child(1) { animation-delay: 0.1s; }
.plato-sano:nth-child(2) { animation-delay: 0.2s; }
.plato-sano:nth-child(3) { animation-delay: 0.3s; }
.plato-sano:nth-child(4) { animation-delay: 0.4s; }
.plato-sano:nth-child(5) { animation-delay: 0.5s; }
.plato-sano:nth-child(6) { animation-delay: 0.6s; }