/* ==========================================
   ESTILOS GENERALES
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #fff8f2;
    font-family: 'Quicksand', sans-serif;
    margin: 0;
}

/* ==========================================
   ENCABEZADO Y CABECERA
   ========================================== */
header {
    width: 100%;
    background: #ffffff;
}

.header-top {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 22px 18px;
}

.logo img {
    width: 130px;
    display: block;
}

.header-icons {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 12px;
    align-items: center;
}

.user-icon {
    color: #6b4f4f;
    font-size: 20px;
    text-decoration: none;
}

.menu-btn {
    background: none;
    border: none;
    color: #6b4f4f;
    font-size: 22px;
    cursor: pointer;
    padding: 0;
}

.seo-title {
    position: absolute;
    left: -9999px;
}

/* ==========================================
   MENÚ LATERAL DESPLEGABLE (SIDEBAR)
   ========================================== */
.side-menu {
    position: fixed;
    top: 0;
    left: -250px; /* Escondido a la izquierda */
    width: 250px;
    height: 100%;
    background-color: #ffffff;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
    transition: left 0.3s ease;
    display: flex;
    flex-direction: column;
    padding: 20px;
    box-sizing: border-box;
    gap: 15px;
    z-index: 1000;
}

.side-menu.open {
    left: 0 !important; /* Corregido el punto y coma rebelde */
}

.side-menu a {
    text-decoration: none;
    color: #6b4f4f;
    font-size: 16px;
    font-weight: bold;
}

.close-menu {
    background: none;
    border: none;
    color: #6b4f4f;
    font-size: 30px;
    cursor: pointer;
    align-self: flex-end;
}

.green-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: #8fbc8f;
    border-radius: 50%;
    margin-right: 5px;
}

/* Fondo oscuro transparente */
#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    display: none;
    z-index: 999;
}

#overlay.show {
    display: block !important;
}

/* ==========================================
   SECCIÓN HERO (FOTO DEL MES)
   ========================================== */
.hero-container {
    width: 100%;
    display: block;
}

.hero-image-block {
    width: 100%;
    height: 450px;
    position: relative;
    overflow: hidden;
}

.hero-image-block img {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    object-fit: cover !important;
    object-position: center !important;
}

.hero-label {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: #e5a9a9;
    color: #ffffff;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 1px;
    border-radius: 4px;
    z-index: 10;
}

.hero-text-block {
    width: 90%;
    max-width: 700px;
    margin: 40px auto;
    text-align: center;
}

.hero-title {
    color: #000000 !important;
    font-family: 'Playball', 'Pacifico', 'Dancing Script', cursive !important; 
    font-size: 46px !important; 
    margin: 0 0 15px 0 !important;
    font-weight: normal !important;
}

.hero-description {
    color: #6b4f4f !important; 
    font-family: 'Quicksand', sans-serif !important;
    font-size: 18px !important;
    line-height: 1.6 !important;
    margin: 0 !important;
}

/* ==========================================
   CUADRÍCULA DE RECETAS (¡Arreglado!)
   ========================================== */
.recetas-section {
    font-family: 'Quicksand', sans-serif;
    color: #6b4f4f;
    font-size: 24px;
    text-align: center; 
    margin: 40px auto 60px auto;
    width: 90%;
    max-width: 1100px;
}

.recetas-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.receta-card {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.receta-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(107, 79, 79, 0.15);
}

.receta-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.receta-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.receta-card:hover .receta-image img {
    transform: scale(1.05);
}

.receta-info {
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

.receta-info h4 {
    font-family: 'Quicksand', sans-serif;
    color: #000000;
    font-size: 18px;
    margin: 0 0 10px 0;
    font-weight: 600;
}

.read-more {
    font-family: 'Quicksand', sans-serif;
    color: #e5a9a9;
    font-size: 14px;
    font-weight: bold;
}

/* Responsive Móviles */
@media (max-width: 768px) {
    .recetas-grid {
        grid-template-columns: 1fr; 
        gap: 20px;
    }
}

/* ==========================================
   VENTANA EMERGENTE (MODAL) SOBRE MÍ - LIMPIO
   ========================================== */
.about-modal {
    display: none; /* Oculto por defecto */
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: #fff8f2 !important;
    overflow-y: auto;
    z-index: 99999 !important; /* Por encima de todo */
    padding: 80px 20px 40px 20px;
}

.close-about {
    position: fixed !important;
    top: 20px;
    right: 30px;
    font-size: 55px;
    background: none;
    border: none;
    color: #6b4f4f;
    cursor: pointer;
    z-index: 100000 !important;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 35px;
}

.about-image {
    width: 100%;
    max-width: 450px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

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

.about-text {
    text-align: left;
    color: #4a3a3a;
    line-height: 1.8;
    font-family: 'Quicksand', sans-serif;
}

.about-text h2 {
    font-family: 'Playball', cursive;
    font-size: 40px;
    color: #000000;
    margin-bottom: 15px;
}

.about-text h3 {
    font-family: 'Quicksand', sans-serif;
    color: #6b4f4f;
    font-size: 22px;
    margin: 25px 0 10px 0;
    font-weight: 600;
}

.about-text p {
    font-size: 17px;
    margin-bottom: 15px;
}

.about-text .brand {
    color: #e5a9a9;
}

/* Regla de apertura activa */
.about-modal.active {
    display: block !important;
}

.side-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.side-menu li {
    margin-bottom: 15px;
}