/* Modal de calendario */
.calendar-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.calendar-content {
    position: relative;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    margin: 5% auto;
    padding: 15px;
    border-radius: 15px;
    width: 80%;
    max-width: 900px;
    max-height: 80vh;
    overflow-y: auto;
    border: 2px solid #333;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.calendar-content h2 {
    color: #fff;
    text-align: center;
    margin-bottom: 5px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 18px;
}

/* Botón de cerrar */
#close-calendar {
    position: absolute;
    top: 15px;
    right: 25px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

#close-calendar:hover {
    color: #fff;
}

/* Eventos astronómicos */
.astronomy-events {
    margin-bottom: 8px;
}

.astronomy-events h3 {
    color: #fff;
    margin-bottom: 4px;
    font-family: 'Space Grotesk', sans-serif;
    border-bottom: 1px solid #333;
    padding-bottom: 2px;
    font-size: 14px;
}

.event-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    padding: 6px;
    margin-bottom: 4px;
    border-left: 2px solid #4285f4;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.event-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(3px);
}

.event-date {
    color: #4285f4;
    font-weight: 600;
    font-size: 12px;
    margin-bottom: 1px;
}

.event-desc {
    color: #fff;
    font-size: 13px;
    margin-bottom: 2px;
    line-height: 1.1;
}

.event-type {
    font-size: 10px;
    color: #aaa;
    font-style: italic;
    margin-bottom: 0;
}

/* Enlaces externos */
.external-links {
    margin-bottom: 8px;
}

.external-links h3 {
    color: #fff;
    margin-bottom: 4px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px;
}

.link-btn {
    display: inline-block;
    margin: 2px 6px 2px 0;
    padding: 4px 8px;
    background: rgba(66, 133, 244, 0.2);
    color: #4285f4;
    text-decoration: none;
    border-radius: 12px;
    font-size: 11px;
    border: 1px solid #4285f4;
    transition: all 0.3s ease;
}

.link-btn:hover {
    background: #4285f4;
    color: white;
    transform: translateY(-2px);
}

/* Botón de Google Calendar */
#addGoogleEvent {
    display: block;
    margin: 8px auto 0;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid #555;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

#addGoogleEvent:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #777;
}
