/*ESTILOS GENERALES Y CONTENEDOR PRINCIPAL*/
body {
    font-family: sans-serif;
    margin: 0;
    min-height: 100vh;
    background-color: #fcfcfc; /* Fondo para la página del calendario */
}

/* El contenedor principal que alinea la barra lateral y el contenido */
.web-container {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

/*ESTILOS DE LA BARRA LATERAL (SIDEBAR)*/
.sidebar {
    width: 300px;
    background-color: #00bcd4;
    color: white;
    display: flex;
    flex-direction: column;
    padding: 20px;
    box-sizing: border-box;
}

.sidebar-header {
    text-align: center;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.close-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    margin: 0 auto 10px;
    background-color: white;
    border-radius: 50%;
    overflow: hidden;
}

.close-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-title {
    font-size: 28px;
    margin: 0;
}

/* Sección de navegación */
.sidebar-nav {
    flex-grow: 1;
}

.sidebar-nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav li {
    margin-bottom: 5px;
}

.sidebar-nav li a {
    display: flex;
    align-items: center;
    color: white;
    text-decoration: none;
    padding: 15px 20px;
    font-size: 18px;
    transition: background-color 0.3s ease;
    border-radius: 5px;
}

.sidebar-nav li a i {
    width: 30px;
    text-align: center;
}

.sidebar-nav li a.active {
    background-color: white;
    color: #00bcd4;
    font-weight: bold;
}

.sidebar-nav li a:not(.active):hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Pie de página de la barra lateral */
.sidebar-footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.sidebar-footer a {
    color: white;
    font-size: 24px;
    margin: 0 10px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.sidebar-footer a:hover {
    color: #f1f1f1;
}

/*ESTILOS DEL CONTENIDO PRINCIPAL (CALENDARIO)*/
.main-content {
    flex-grow: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.calendar-title {
    font-family: cursive;
    font-size: 48px;
    text-align: center;
    color: #555;
    margin-bottom: 40px;
    position: relative;
    padding: 0 20px;
}

.calendar-title::before, .calendar-title::after {
    content: "🌸";
    font-size: 32px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.calendar-title::before {
    left: -50px;
}

.calendar-title::after {
    right: -50px;
}


/* Diseño de la cuadrícula de meses */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
}

@media (max-width: 1200px) {
    .calendar-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .calendar-grid {
        grid-template-columns: 1fr;
    }
}

/* Estilo de cada tarjeta de mes */
.month-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #ddd;
}

.month-header {
    text-align: center;
    padding: 10px;
    font-weight: bold;
    color: white;
    font-size: 1.2em;
    border-radius: 10px 10px 0 0;
    position: relative;
}

/* Colores de los encabezados de los meses */
.month-jan .month-header { background-color: #ff99a9; }
.month-feb .month-header { background-color: #99c2ff; }
.month-mar .month-header { background-color: #99e6ff; }
.month-apr .month-header { background-color: #ffb380; }
.month-may .month-header { background-color: #cc99ff; }
.month-jun .month-header { background-color: #b3ffb3; }
.month-jul .month-header { background-color: #ffcc99; }
.month-aug .month-header { background-color: #99d6ff; }
.month-sep .month-header { background-color: #80e6b3; }
.month-oct .month-header { background-color: #ff9999; }
.month-nov .month-header { background-color: #d6b3ff; }
.month-dec .month-header { background-color: #b3d6ff; }


/* Diseño del calendario */
.days-grid {
    list-style: none;
    padding: 10px;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
}

.days-grid li {
    padding: 8px 0;
    font-size: 14px;
    color: #555;
}

.days-grid li:nth-child(-n+7) {
    font-weight: bold;
    color: #333;
    padding-bottom: 5px;
}

.days-grid .empty {
    visibility: hidden;
}
