/* --- MODAL ESTILOS --- */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 90%;
    max-width: 600px;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.close-button {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-button:hover {
    color: #000;
}

#videoLinkWrapper {
    margin-top: 10px;
}

label {
    display: block;
    margin-top: 10px;
    font-weight: bold;
}

input, select, textarea {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    margin-bottom: 10px;
    box-sizing: border-box;
}

button[type="submit"] {
    margin-top: 10px;
    padding: 10px;
    font-size: 16px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

button[type="submit"]:hover {
    background-color: #0056b3;
}

.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
    padding: 0 10px;
    margin-top: 20px;
}

.card {
    background-color: #fff;
    padding: 12px 16px;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    font-family: Arial, sans-serif;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    word-wrap: break-word;
}

.card h3 {
    margin: 0 0 8px;
    font-size: 1.1em;
    color: #333;
}

.card p {
    margin: 4px 0;
    font-size: 0.95em;
    color: #444;
}

.card a {
    color: #007BFF;
    text-decoration: none;
}

.card a:hover {
    text-decoration: underline;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
.card-today {
    background-color: #f8d7da; /* rojo claro */
}

.card-tomorrow {
    background-color: #fff3cd; /* amarillo claro */
}

.card-upcoming {
    background-color: #cce5ff; /* azul claro */
}

.action-btn {
    margin-top: 10px;
    padding: 10px 14px;
    font-size: 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    display: inline-block;
    margin-right: 10px;
    transition: background-color 0.3s ease;
}

.action-btn.primary {
    background-color: #007BFF;
    color: white;
}

.action-btn.primary:hover {
    background-color: #0056b3;
}

.action-btn.danger {
    background-color: #dc3545;
    color: white;
}

.action-btn.danger:hover {
    background-color: #a71d2a;
}

.action-btn:not(.primary):not(.danger) {
    background-color: #6c757d;
    color: white;
}

.action-btn:not(.primary):not(.danger):hover {
    background-color: #5a6268;
}
.legend {
    display: flex;
    gap: 15px;
    margin: 10px 20px;
    font-family: Arial, sans-serif;
    font-size: 0.95em;
    font-weight: bold;
}

.legend-item {
    padding: 6px 12px;
    border-radius: 20px;
    color: #333;
    background-color: #eee;
}

.legend-item.today {
    background-color: #f8d7da;
}

.legend-item.tomorrow {
    background-color: #fff3cd;
}

.legend-item.upcoming {
    background-color: #cce5ff;
}
