/* ============================================
   CALCULADORA DE OVULACIÓN - CSS
   ============================================ */

/* Resultado Destacado - Ovulación */
.resultado-destacado.ovulacion {
    background: linear-gradient(135deg, #fecaca 0%, #fca5a5 100%);
}

.resultado-destacado.ovulacion .resultado-destacado-label,
.resultado-destacado.ovulacion .resultado-destacado-subtitle {
    color: #7f1d1d;
}

.resultado-destacado.ovulacion .resultado-destacado-value {
    color: #991b1b;
}

/* Resultado Destacado - Fértil */
.resultado-destacado.fertil {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
}

.resultado-destacado.fertil .resultado-destacado-label,
.resultado-destacado.fertil .resultado-destacado-subtitle {
    color: #065f46;
}

.resultado-destacado.fertil .resultado-destacado-value {
    color: #047857;
}

/* Calendario Visual */
.calendario-container {
    margin: 2rem 0;
}

.calendario-container h3 {
    font-size: 1.25rem;
    color: #1f2937;
    margin-bottom: 1.5rem;
    text-align: center;
}

.calendario-visual {
    display: grid;
    gap: 2rem;
}

.mes-calendario {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: 1.5rem;
}

.mes-header {
    text-align: center;
    font-size: 1.125rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f3f4f6;
}

.dias-semana {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.dia-semana {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    padding: 0.5rem 0;
    text-transform: uppercase;
}

.dias-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
}

.dia {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    background: #f9fafb;
    color: #6b7280;
    position: relative;
    transition: all 0.3s ease;
    cursor: default;
}

.dia.empty {
    background: transparent;
}

.dia.hoy {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    transform: scale(1.1);
}

.dia.menstruacion {
    background: linear-gradient(135deg, #fca5a5 0%, #f87171 100%);
    color: white;
}

.dia.ovulacion {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
    transform: scale(1.05);
}

.dia.fertil {
    background: linear-gradient(135deg, #86efac 0%, #4ade80 100%);
    color: white;
}

.dia:not(.empty):hover {
    transform: scale(1.1);
    z-index: 1;
}

/* Leyenda */
.leyenda {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding: 1.5rem;
    background: #f9fafb;
    border-radius: 12px;
    margin: 2rem 0;
}

.leyenda-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #4b5563;
}

.leyenda-color {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    border: 2px solid #e5e7eb;
}

.leyenda-color.menstruacion {
    background: linear-gradient(135deg, #fca5a5 0%, #f87171 100%);
}

.leyenda-color.ovulacion {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.leyenda-color.fertil {
    background: linear-gradient(135deg, #86efac 0%, #4ade80 100%);
}

.leyenda-color.hoy {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

/* Próximos Ciclos */
.proximos-ciclos {
    padding: 2rem;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 16px;
    margin: 2rem 0;
}

.proximos-ciclos h3 {
    font-size: 1.25rem;
    color: #78350f;
    margin-bottom: 1.5rem;
    text-align: center;
}

.ciclos-list {
    display: grid;
    gap: 1rem;
}

.ciclo-item {
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.ciclo-numero {
    font-weight: 700;
    color: #92400e;
    font-size: 1rem;
}

.ciclo-info {
    flex: 1;
    margin: 0 1.5rem;
}

.ciclo-label {
    font-size: 0.8125rem;
    color: #78350f;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ciclo-fechas {
    font-size: 0.9375rem;
    color: #92400e;
    font-weight: 500;
    margin-top: 0.25rem;
}

.ciclo-ovulacion {
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #fca5a5 0%, #f87171 100%);
    color: white;
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 600;
    white-space: nowrap;
}

/* Consejos */
.consejos {
    margin: 2rem 0;
}

.consejos h3 {
    font-size: 1.25rem;
    color: #1f2937;
    margin-bottom: 1.5rem;
    text-align: center;
}

.consejos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.consejo-card {
    padding: 1.5rem;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
}

.consejo-card:hover {
    border-color: #f59e0b;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.consejo-icon {
    font-size: 3rem;
    margin-bottom: 0.75rem;
}

.consejo-titulo {
    font-size: 1rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.consejo-texto {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .dias-grid {
        gap: 0.25rem;
    }

    .dia {
        font-size: 0.75rem;
    }

    .dia-semana {
        font-size: 0.625rem;
        padding: 0.375rem 0;
    }

    .mes-calendario {
        padding: 1rem;
    }

    .leyenda {
        gap: 1rem;
    }

    .leyenda-item {
        font-size: 0.75rem;
    }

    .leyenda-color {
        width: 20px;
        height: 20px;
    }

    .ciclo-item {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }

    .ciclo-info {
        margin: 0;
    }

    .consejos-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .resultado-destacado {
        padding: 1.25rem;
    }

    .resultado-destacado-value {
        font-size: 1.25rem;
    }

    .calendario-container h3 {
        font-size: 1rem;
    }

    .mes-header {
        font-size: 1rem;
    }

    .dia {
        font-size: 0.6875rem;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .breadcrumb,
    .calculator-header,
    .calc-form,
    .resultado-acciones,
    .consejos {
        display: none !important;
    }

    .calendario-visual {
        gap: 1rem;
    }

    .mes-calendario {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}