body {
    font-family: 'Arial', sans-serif;
    background-color: #f9f9f9;
    margin: 0;
    padding: 20px;
}

h1 {
    font-size: 28px;
    text-align: center;
    color: #333;
    margin-bottom: 20px;
}

.calendar-container {
    max-width: 900px;
    margin: 0 auto;
}

.calendar {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 24px;
    margin-bottom: 10px;
}

.nav-button {
    text-decoration: none;
    color: #007bff;
    font-weight: bold;
}

.month-year {
    font-weight: bold;
}

.weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: bold;
    background-color: #007bff;
    color: white;
    padding: 10px 0;
    border-radius: 5px;
}

.weekdays div {
    padding: 5px;
}

.days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.day {
    border: 1px solid #ddd;
    padding: 5px;
    text-align: center;
    min-height: 100px;
    background-color: #f4f4f4;
    transition: background-color 0.3s;
    display: flex;
    flex-direction: column;
}

.day:hover {
    background-color: #e7f3fe;
}

.date {
    font-weight: bold;
    margin-bottom: 5px;
}

.event {
    background-color: #e7f3fe;
    border-radius: 5px;
    padding: 2px;
    margin: 2px 0;
    font-size: 12px;
    text-align: left;
}

.event:hover {
    background-color: #d3eafc;
}

.back-button {
    display: inline-block;
    margin-top: 20px;
    font-size: 18px;
    text-decoration: none;
    color: blue;
}

/* Estilos Responsivos */
@media (max-width: 600px) {
    .day {
        min-height: 80px;
    }
    .event {
        font-size: 10px;
    }
}
