/* Estilos específicos para Fases Lunares (Calendario Lunar) */

/* NOTA: H1, H2, párrafos, etc. están en contenidos-base.css */
/* Este archivo contiene SOLO estilos únicos del calendario lunar */

/* Reducción de espacios verticales para minimizar scroll */
#contenido-fases-lunares h2 {
    margin-bottom: 1rem;
    margin-top: 1.5rem;
}

#contenido-fases-lunares p {
    margin-bottom: 0.8rem;
}

#contenido-fases-lunares .lead {
    margin-bottom: 1rem;
}

#contenido-fases-lunares section {
    margin-bottom: 1.5rem;
}

/* Reducir espacio de las filas de la tabla de pronósticos */
.tabla-pronosticos tbody td br {
    line-height: 0.8;
}

/* ========================================
   NAVEGACIÓN DE MESES - ELEGANTE MINIMALISTA
   ======================================== */

.navegacion-meses {
    background: transparent;
    padding: 0.5rem 0;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.navegacion-meses .btn {
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.15);
    color: #374151;
    font-size: 1.1rem;
    padding: 0.4rem 1.2rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.navegacion-meses .btn:hover {
    background: #000000;
    border-color: #000000;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.navegacion-meses .btn i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.navegacion-meses .btn:hover .fa-chevron-left {
    transform: translateX(-3px);
}

.navegacion-meses .btn:hover .fa-chevron-right {
    transform: translateX(3px);
}

.navegacion-meses .mx-3 {
    font-weight: 400;
    letter-spacing: 0.08em;
    font-size: 1.3rem;
    color: #111827;
    text-transform: uppercase;
}

/* ========================================
   TABLA DEL CALENDARIO - DISEÑO ELEGANTE MINIMALISTA
   ======================================== */

.calendario-lunar {
    background: #000000;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tabla-calendario {
    width: 100%;
    border-collapse: collapse;
}

.tabla-calendario thead th {
    background: #000000;
    color: #ffffff;
    padding: 0.8rem 0.5rem;
    font-size: 1.1rem;
    font-weight: 400;
    text-align: center;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tabla-calendario thead th.fin-semana {
    background: #000000;
    color: #a78bfa;
}

.tabla-calendario tbody td {
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.05);
    vertical-align: top;
    height: 80px;
    text-align: center;
    background: #000000;
}

.tabla-calendario tbody td.dia-vacio {
    background: #000000;
    opacity: 0.3;
}

.tabla-calendario tbody td.fin-semana {
    background: #000000;
}

.tabla-calendario tbody td.dia-hoy {
    background: #000000;
    border: 1px solid #a78bfa;
    box-shadow: inset 0 0 20px rgba(167, 139, 250, 0.1);
}

/* Celda del día */
.dia-celda {
    position: relative;
    height: 100%;
    padding: 0.1rem 0.3rem;
}

.dia-numero {
    font-size: 1.1rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.05rem;
    letter-spacing: 0.05em;
}

.dia-hoy .dia-numero {
    color: #a78bfa;
    font-weight: 400;
}

.fin-semana .dia-numero {
    color: rgba(167, 139, 250, 0.7);
}

.dia-fase {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
}

/* Imágenes de fases lunares - elegantes y grandes */
#contenido-fases-lunares .img-fase-lunar {
    width: 40px;
    height: 40px;
    object-fit: contain;
    background: transparent;
    opacity: 0.95;
    margin: 15px 0;
}

.nombre-fase {
    font-size: 0.85rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.1;
    text-align: center;
    letter-spacing: 0.05em;
    max-width: 50px;
    word-wrap: break-word;
}

.etiqueta-hoy {
    background: transparent;
    color: #a78bfa;
    font-size: 1rem;
    font-weight: 300;
    padding: 0.4rem 1rem;
    border: 1px solid rgba(167, 139, 250, 0.3);
    border-radius: 20px;
    margin-top: 0.5rem;
    letter-spacing: 0.1em;
}

/* Footer del calendario */
.tabla-calendario tfoot td {
    background: #000000;
    padding: 0.8rem;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.4);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 300;
    letter-spacing: 0.05em;
}

/* ========================================
   TABLA DE PRONÓSTICOS - ELEGANTE MINIMALISTA
   ======================================== */

#contenido-fases-lunares .table-responsive {
    margin-bottom: 0.5rem;
    background: transparent;
    background-color: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

.tabla-pronosticos {
    width: 100%;
    margin-top: 0.75rem;
    border-collapse: collapse;
    background: #000000;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tabla-pronosticos thead th {
    background: #000000;
    color: #ffffff;
    padding: 0.4rem 0.8rem;
    font-size: 1rem;
    text-align: center;
    font-weight: 300;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tabla-pronosticos tbody td {
    padding: 0.4rem 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    font-size: 1.2rem;
    background: #000000;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 300;
}

/* Celda de referencia con imagen de fases lunares - posicionar abajo derecha */
.tabla-pronosticos tbody td[rowspan] {
    vertical-align: bottom;
    text-align: right;
    padding: 0.4rem 1rem 0.8rem 0.8rem;
}

/* Eliminar margen de la imagen de referencia para posicionamiento correcto */
#contenido-fases-lunares .tabla-pronosticos tbody td[rowspan] img {
    margin: 0;
}

#contenido-fases-lunares .img-fase-tabla {
    width: 40px;
    height: 40px;
    object-fit: contain;
    margin: 0 0 0.15rem 0;
    background: transparent;
    opacity: 0.95;
}

/* Clases de pronóstico - colores intensos y vibrantes */
.pronostico_muy_bueno {
    background: rgba(34, 197, 94, 0.35);
    color: #4ade80;
    font-weight: 500;
    border-left: 3px solid rgba(34, 197, 94, 0.8);
}

.pronostico_bueno {
    background: rgba(59, 130, 246, 0.35);
    color: #60a5fa;
    font-weight: 500;
    border-left: 3px solid rgba(59, 130, 246, 0.8);
}

.pronostico_regular {
    background: rgba(234, 179, 8, 0.35);
    color: #facc15;
    font-weight: 500;
    border-left: 3px solid rgba(234, 179, 8, 0.8);
}

.pronostico_malo {
    background: rgba(239, 68, 68, 0.35);
    color: #f87171;
    font-weight: 500;
    border-left: 3px solid rgba(239, 68, 68, 0.8);
}

/* ========================================
   SECCIONES DE FASES - ELEGANTE MINIMALISTA
   ======================================== */

.fase-seccion {
    background: #000000;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    margin-bottom: 3rem;
}

.fase-seccion:last-of-type {
    margin-bottom: 4.5rem;
}

.fase-header {
    background: #000000;
    padding: 0.3rem 0.8rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.fase-header span {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 300;
    letter-spacing: 0.05em;
}

#contenido-fases-lunares .img-fase-seccion {
    width: 50px;
    height: 50px;
    object-fit: contain;
    background: transparent;
    opacity: 0.95;
    margin: 10px 0px 10px 0px;
}

/* ========================================
   TABLA DE HORARIOS - ELEGANTE MINIMALISTA
   ======================================== */

.tabla-horarios {
    width: 100%;
    border-collapse: collapse;
    background: #000000;
}

.tabla-horarios thead th {
    background: #000000;
    padding: 0.6rem 0.6rem;
    font-size: 1rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.6);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.tabla-horarios tbody td {
    padding: 0.5rem 0.4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 1.1rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 300;
}

.tabla-horarios tbody td:first-child {
    font-weight: 400;
    width: 80px;
    color: rgba(255, 255, 255, 0.8);
}

.tabla-horarios tbody tr:last-child td {
    border-bottom: none;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    .navegacion-meses {
        padding: 1rem;
    }

    .navegacion-meses .btn {
        font-size: 1.4rem;
        padding: 0.8rem 1.5rem;
        margin: 0.5rem;
    }

    .navegacion-meses .mx-3 {
        display: block;
        margin: 1rem 0 !important;
    }

    .tabla-calendario thead th {
        font-size: 1.3rem;
        padding: 1rem 0.3rem;
    }

    .tabla-calendario tbody td {
        height: 100px;
        padding: 0.3rem;
    }

    .dia-numero {
        font-size: 1.5rem;
    }

    .img-fase-lunar {
        width: 35px;
        height: 35px;
    }

    .nombre-fase {
        font-size: 1rem;
    }

    .etiqueta-hoy {
        font-size: 1rem;
        padding: 0.2rem 0.5rem;
    }

    .tabla-pronosticos tbody td {
        padding: 1.5rem 1rem;
        font-size: 1.4rem;
    }

    .img-fase-accordion {
        width: 30px;
        height: 30px;
    }

    .accordion-button {
        font-size: 1.5rem;
    }

    .tabla-horarios thead th,
    .tabla-horarios tbody td {
        padding: 0.8rem;
        font-size: 1.3rem;
    }
}

@media (max-width: 576px) {
    .tabla-calendario tbody td {
        height: 80px;
    }

    .dia-numero {
        font-size: 1.3rem;
    }

    .img-fase-lunar {
        width: 30px;
        height: 30px;
    }

    .nombre-fase {
        font-size: 0.9rem;
    }
}

/* Pantallas muy pequeñas - 360px (Galaxy S8, etc.) */
@media (max-width: 375px) {
    .tabla-calendario thead th {
        font-size: 1rem;
        padding: 0.6rem 0.1rem;
        letter-spacing: 0.02em;
    }

    .tabla-calendario tbody td {
        height: 70px;
        padding: 0.2rem;
    }

    .dia-celda {
        padding: 0.1rem 0.1rem;
    }

    .dia-numero {
        font-size: 1.1rem;
    }

    .img-fase-lunar {
        width: 25px;
        height: 25px;
        margin: 5px 0;
    }

    .nombre-fase {
        font-size: 0.7rem;
        max-width: 40px;
    }
}