* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #2c3e50, #1a252f, #34495e);
    color: white;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.header {
    text-align: center;
    margin-bottom: 30px;
}

.header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    color: #FFD700;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.today-section {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}

.today-date {
    font-size: 1.3em;
    margin-bottom: 20px;
    color: #FFD700;
    font-weight: 600;
}

.today-moon {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.moon-display {
    font-size: 3em;
    animation: moonPulse 3s ease-in-out infinite;
}

@keyframes moonPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.today-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.info-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.info-card h4 {
    color: #FFD700;
    margin-bottom: 8px;
    font-size: 0.9em;
}

.fishing-activity {
    font-size: 1.5em;
    margin: 10px 0;
}

.fishing-activity.excellent { filter: drop-shadow(0 0 10px #00ff00); }
.fishing-activity.high { filter: drop-shadow(0 0 8px #ffff00); }
.fishing-activity.medium { filter: drop-shadow(0 0 6px #ffa500); }
.fishing-activity.low { filter: drop-shadow(0 0 4px #ff6666); }

.species-selectors {
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.species-selector {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    color: white;
    padding: 8px 15px;
    font-size: 0.9em;
    cursor: pointer;
}

.species-selector:hover {
    background: rgba(255, 255, 255, 0.2);
}

.calendar-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.month-nav {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    border: none;
    color: #333;
    padding: 10px 15px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1em;
}

.month-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

.current-month {
    font-size: 1.5em;
    font-weight: 700;
    color: #FFD700;
    min-width: 200px;
    text-align: center;
    transition: all 0.3s ease;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 12px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.calendar-header {
    text-align: center;
    font-weight: bold;
    color: #FFD700;
    padding: 10px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 8px;
    font-size: 0.9em;
}

.day-cell {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.08));
    border-radius: 12px;
    padding: 12px 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.15);
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    opacity: 0;
    animation: fadeInUp 0.5s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.day-cell:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
}

.day-cell.today {
    border: 2px solid #FFD700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 215, 0, 0.1));
}

/* MEJORAS PARA DÍAS DE OTROS MESES */
.day-cell.other-month {
    opacity: 0.3 !important; /* Reducido de 0.4 para mayor diferenciación */
    background: linear-gradient(135deg, rgba(100, 100, 100, 0.08), rgba(80, 80, 80, 0.05)) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    color: rgba(255, 255, 255, 0.4);
    pointer-events: none; /* Desactivar clics en días de otros meses */
    cursor: default !important;
}

/* Texto específico en días de otros meses */
.day-cell.other-month .day-number {
    color: rgba(255, 215, 0, 0.3) !important; /* Dorado muy tenue */
}

.day-cell.other-month .moon-phase {
    color: rgba(184, 212, 234, 0.3) !important; /* Azul muy tenue */
}

.day-cell.other-month .illumination {
    color: rgba(255, 255, 255, 0.2) !important; /* Blanco muy tenue */
}

/* Efecto hover desactivado para días de otros meses */
.day-cell.other-month:hover {
    transform: none !important;
    box-shadow: none !important;
    background: linear-gradient(135deg, rgba(100, 100, 100, 0.08), rgba(80, 80, 80, 0.05)) !important;
}

/* Días del mes actual - reforzar visibilidad */
.day-cell:not(.other-month) {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.10));
    border: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 1;
}

/* Día actual - mantener destacado */
.day-cell.today {
    border: 2px solid #FFD700 !important;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5) !important;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.25), rgba(255, 215, 0, 0.15)) !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    cursor: pointer !important;
}

.day-number {
    font-weight: bold;
    font-size: 1.1em;
    color: #FFD700;
}

.moon-icon {
    font-size: 1.8em;
    margin: 5px 0;
}

.moon-phase {
    font-size: 0.7em;
    color: #B8D4EA;
    margin-bottom: 5px;
}

.fish-activity {
    font-size: 1.2em;
    margin: 5px 0;
}

.illumination {
    font-size: 0.7em;
    color: #FFFFFF;
    font-weight: 600;
}

.location-status {
    text-align: center;
    margin-bottom: 15px;
    font-size: 0.9em;
    opacity: 0.8;
    cursor: pointer;
    transition: all 0.3s ease;
}

.location-status:hover {
    opacity: 1;
    transform: scale(1.02);
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
    box-sizing: border-box;
}

.modal-content {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 25px;
    max-width: 450px;
    width: 95%;
    text-align: center;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-height: 90vh;
    overflow-y: auto;
}

.close-btn {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    border: none;
    color: #333;
    padding: 8px 18px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
}

.close-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    .calendar-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        padding: 15px;
    }

    .day-cell {
        min-height: 100px;
        padding: 8px 6px;
    }

    .moon-icon {
        font-size: 1.5em;
    }

    .fish-activity {
        font-size: 1em;
    }

    .today-info {
        grid-template-columns: 1fr;
    }

    .species-selectors {
        flex-direction: column;
        gap: 10px;
    }

    .calendar-controls {
        flex-wrap: wrap;
        gap: 10px;
    }

    .current-month {
        font-size: 1.2em;
        min-width: auto;
    }

    /* Días de otros meses en móviles */
    .day-cell.other-month {
        opacity: 0.25 !important;
        background: linear-gradient(135deg, rgba(80, 80, 80, 0.06), rgba(60, 60, 60, 0.03)) !important;
    }
}

/* Skip link para accesibilidad */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #FFD700;
    color: #333;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1001;
    font-weight: bold;
}

.skip-link:focus {
    top: 6px;
}

/* Texto oculto visualmente pero accesible para lectores de pantalla */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Subtítulo en header */
.subtitle {
    font-size: 1.1em;
    color: #B8D4EA;
    margin-bottom: 15px;
    font-weight: 300;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.4;
}

/* Mejorar headings para SEO */
.info-card h3 {
    color: #FFD700;
    margin-bottom: 8px;
    font-size: 0.95em;
    font-weight: 600;
}

/* Footer */
.footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85em;
    line-height: 1.5;
}

.footer p {
    margin-bottom: 8px;
}

/* Mejorar focus para accesibilidad */
button:focus,
select:focus,
.day-cell:focus {
    outline: 2px solid #FFD700;
    outline-offset: 2px;
}

/* Mejorar contraste en modo alto contraste */
@media (prefers-contrast: high) {
    .day-cell.other-month {
        opacity: 0.2 !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        background: rgba(0, 0, 0, 0.3) !important;
    }
    
    .day-cell:not(.other-month) {
        border: 2px solid rgba(255, 255, 255, 0.4) !important;
    }
    
    .today-section {
        border: 2px solid rgba(255, 255, 255, 0.4);
    }
}

/* Respeto por preferencias de movimiento reducido */
@media (prefers-reduced-motion: reduce) {
    .day-cell {
        animation: none;
    }
    
    .moon-display {
        animation: none;
    }
    
    * {
        transition: none !important;
    }
}

/* Mejoras para pantallas pequeñas en SEO */
@media (max-width: 480px) {
    .subtitle {
        font-size: 1em;
        padding: 0 10px;
    }
    
    .footer {
        font-size: 0.8em;
        padding: 15px 10px;
    }
}