.calendar-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.calendar-header {
    background: #039;
    color: #FC0;
    padding: 20px;
    text-align: center;
}

.calendar-header h2 {
    margin: 0;
    font-size: 24px;
}

.calendar-nav {
    display: flex;
    justify-content: space-between;
    padding: 10px 20px;
    background: #f1f1f1;
}

.calendar-nav button {
    background: #039;
    color: #FC0;
    border: none;
    padding: 5px 15px;
    border-radius: 5px;
    cursor: pointer;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: #e0e0e0;
    text-align: center;
    font-weight: bold;
    padding: 10px 0;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: #e0e0e0;
}

.day {
    background: white;
    min-height: 80px;
    padding: 5px;
    position: relative;
}

.day-number {
    font-weight: bold;
    margin-bottom: 5px;
}

.day.today {
    background: rgba(255, 204, 0, 0.6);
}

.day.today .day-number {
    color: #039;
    font-weight: bold;
}

.current-week .day {
    background: #f0f7ff;
}

.day-link {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: block;
    text-decoration: none;
    color: inherit;
    padding: 5px;
}

.day-link:hover {
    background: rgba(66, 133, 244, 0.1);
}

.day.other-month {
    color: #aaa;
    background: #f9f9f9;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh !important;  /* 80% del alto de la pantalla */
    height: auto !important;
    /*max-height: 400px;*/
    position: relative;
    overflow:auto;

}

.close-modal {
    position: absolute;
    color: #dc3545;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
}

.modal-title {
    margin-top: 0;
    color: #039;
}

/* Estilos para el layout de columnas de meses */
.calendar-months-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 20px;
}

.months-column {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Estilos para filas de meses */
.calendar-months-rows {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 20px;
}

.months-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.month-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.month-title {
    background: #039;
    color: #FC0;
    padding: 15px;
    margin: 0;
    text-align: center;
    font-size: 18px;
    /*font-family: subtitulo;*/
}

/* Responsive para columnas */
@media (max-width: 1200px) {
    .calendar-months-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .calendar-months-container {
        grid-template-columns: 1fr;
    }

    .months-row {
        grid-template-columns: 1fr;
    }
    
    .calendar-months-rows {
        gap: 20px;
        padding: 10px;
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .months-row {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* Mejoras para los días del calendario */
.day {
    background: white;
    min-height: 60px;
    padding: 0;
    position: relative;
    border: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.day-number {
    font-weight: bold;
    font-size: 14px;
}

.day-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: #333;
    font-weight: bold;
    transition: all 0.2s ease;
}

.day-link:hover {
    background: rgba(3, 51, 153, 0.1);
    color: #039;
}

.day.today .day-link {
    background: rgba(255, 204, 0, 0.3);
    color: #039;
}

.day.other-month {
    background: #f9f9f9;
    color: #ccc;
}

.day.other-month .day-link {
    color: #ccc;
    cursor: default;
}

.day.other-month .day-link:hover {
    background: transparent;
}


/* Encabezado más discreto */
.calendar-header {
    background: #039;
    color: #FC0;
    padding: 15px 20px;
    text-align: center;
}

.calendar-header h2 {
    margin: 0;
    font-size: 24px;
    font-family: titulo;
}

/* Recordatorio debajo del calendario */
.calendar-reminder {
    text-align: center;
    padding: 10px 20px;
    color: #666;
    font-size: 14px;
    border-top: 1px solid #e0e0e0;
    background: #f9f9f9;
}

.calendar-reminder a {
    color: #0066cc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.calendar-reminder a:focus,
.calendar-reminder a:hover {
    color: #003399;
    text-decoration: none;
}


/* Calendario más ancho */
.calendar-container {
    max-width: 1400px; /* Más ancho que los 800px originales */
    margin: 0 auto;
    background: white;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Meses más anchos */
.months-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px; /* Más espacio entre meses */
}

.month-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    min-height: 300px; /* Altura mínima para consistencia */
}

/* Días más grandes */
.day {
    background: white;
    min-height: 70px; /* Más alto */
    padding: 0;
    position: relative;
    border: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.day-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: #333;
    font-weight: bold;
    font-size: 16px; /* Texto más grande */
    transition: all 0.2s ease;
}

/* Responsive - UN mes por fila en móviles */
@media (max-width: 768px) {
    .months-row {
        grid-template-columns: 1fr; /* Solo 1 columna */
        gap: 20px;
    }
    
    .calendar-container {
        width: 98%;
        margin: 0 auto;
    }
    
    .month-container {
        min-height: auto;
    }
}

/* Para tablets medianas (768px - 1024px) podemos mantener 2 columnas si querés */
@media (min-width: 769px) and (max-width: 1024px) {
    .months-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Estilo para el día actual - más específico */
.day.today {
    background: #039 !important;
    /*border: 2px solid #FC0 !important;*/
}

.day.today .day-link {
    background: #039 !important;
    color: #FC0 !important;
    font-weight: bold;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline{
    border: 1px solid #039;
    border-radius: 6px;
    padding: 4px;
}

@media (max-width: 1024px) {
    .timeline {
        display: none;
    }
}
.day.today .day-link:hover {
    background: #027 !important;
    color: #FFD700 !important;
}

/* Estructura del Modal */
.modal-header {
    background: #039;
    color: white;
    padding: 15px 20px;
    margin: -20px -20px 20px -20px;
    border-radius: 8px 8px 0 0;
}

.modal-header h3 {
    margin: 0;
    /*font-family: titulo;*/
    font-size: 24px;
}

.modal-sections {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Estilos generales para secciones */
.section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 0;
    overflow: hidden;
}

.section-title {
    background: #039;
    color: #FC0;
    padding: 12px 15px;
    margin: 0;
    /*font-family: subtitulo;*/
    font-size: 18px;
}

.section-content {
    padding: 15px;
}

/* Tablas responsive con divs */
.data-table {
    display: table;
    width: 100%;
    border-collapse: collapse;
}

.data-row {
    display: table-row;
    border-bottom: 1px solid #e0e0e0;
}

.data-row:last-child {
    border-bottom: none;
}

.data-cell {
    display: table-cell;
    padding: 10px 8px;
    vertical-align: top;
}

/* Sección NACIMIENTOS */
.nacimientos .data-row {
    background: white;
}

.nacimientos .data-cell:first-child {
    font-weight: bold;
    color: #039;
    width: 80px;
}

.nacimientos .data-cell:last-child {
    color: #333;
}

/* Sección DISCOS */
.discos .data-row {
    background: white;
}

.disco-image {
    width: 150px;
    height: 150px;
    background: #ddd;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #666;
    text-align: center;
}

.disco-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
}

.disco-info {
    padding-left: 10px;
}

.disco-name {
    font-weight: bold;
    color: #039;
}

.disco-artist {
    color: #666;
    font-size: 14px;
}

.disco-audio {
    width: 40px;
    text-align: center;
}

.audio-btn {
    background: #039;
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.audio-btn:hover {
    background: #027;
    transform: scale(1.1);
}

.audio-btn.playing {
    background: #FC0 !important;
    color: #039 !important;
}

/* Sección EVENTOS */
.eventos .data-row {
    background: white;
}

.eventos .data-cell:first-child {
    font-weight: bold;
    color: #039;
    width: 80px;
}

.eventos .data-cell:last-child {
    color: #333;
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
}

/* Sección FALLECIMIENTOS */
.fallecimientos .data-row {
    background: white;
}

.fallecimientos .data-cell:first-child {
    font-weight: bold;
    color: #039;
    width: 80px;
}

.fallecimientos .data-cell:last-child {
    color: #333;
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 10px;
    }
    
    .data-table {
        display: block;
    }
    
    .data-row {
        display: block;
        margin-bottom: 10px;
        padding: 10px;
        background: white;
        border-radius: 5px;
        border: 1px solid #e0e0e0;
    }
    
    .data-cell {
        display: block;
        padding: 5px 0;
    }
    
    .data-cell:first-child {
        font-weight: bold;
        color: #039;
    }
    
    /* Para discos en móvil */
    .discos .data-row {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .discos .data-cell {
        display: flex;
        align-items: center;
        gap: 10px;
    }
    
    .disco-audio {
        align-self: flex-start;
    }
}

/* Estados hover */
.data-row:hover {
    background: #f0f7ff !important;
}

/* Estilo para el icono de cruz */
.cruz-icon {
    width: 16px;
    height: 16px;
    margin-left: 8px;
    vertical-align: middle;
    filter: invert(25%) sepia(90%) saturate(5000%) hue-rotate(350deg);
}

/* Opcional: si no tenés imagen, usar emoji con estilo */
.cruz-emoji {
    margin-left: 8px;
    font-size: 14px;
    color: #dc3545;
}

@media (max-width: 480px) {
    .eventos .data-cell:last-child {
        text-align: left;
    }

}