/* Correcciones de contraste específicas para modales de productos */

/* Modal principal - asegurar fondo con buen contraste */
.product-modal__dialog {
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.98)) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

/* Header del modal */
.product-modal__header {
    background: linear-gradient(135deg, rgba(0, 86, 210, 0.15), rgba(59, 130, 246, 0.1)) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.modal-title {
    color: #ffffff !important;
    font-weight: 700 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
}

.modal-description {
    color: rgba(255, 255, 255, 0.95) !important;
    font-weight: 500 !important;
}

/* Botón de cerrar mejorado */
.product-modal__close {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.product-modal__close:hover {
    background: rgba(255, 255, 255, 0.25) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
}

/* Tarjetas de solución con mejor contraste */
.solution-card {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

.solution-card:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: var(--color-primary) !important;
    box-shadow: 0 8px 25px rgba(0, 86, 210, 0.3) !important;
}

/* Títulos de soluciones */
.solution-title {
    color: #ffffff !important;
    font-weight: 700 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
}

/* Descripciones de soluciones */
.solution-description {
    color: rgba(255, 255, 255, 0.95) !important;
    font-weight: 400 !important;
    line-height: 1.6 !important;
}

/* Feature badges mejorados */
.feature-badge {
    background: var(--color-primary) !important;
    color: #ffffff !important;
    border: 1px solid var(--color-primary-light) !important;
    font-weight: 600 !important;
    text-shadow: none !important;
}

.feature-badge:hover {
    background: var(--color-primary-light) !important;
    transform: scale(1.05) !important;
}

/* Iconos de solución */
.solution-icon {
    background: linear-gradient(135deg, rgba(0, 86, 210, 0.3), rgba(59, 130, 246, 0.2)) !important;
    border: 2px solid rgba(0, 86, 210, 0.4) !important;
    margin: 0 auto 16px auto !important;
    align-self: center !important;
}

.solution-icon svg {
    color: var(--color-primary-light) !important;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3)) !important;
}

/* Botones de acción mejorados */
.solution-btn {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light)) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    border: 1px solid var(--color-primary-light) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
}

.solution-btn:hover {
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary)) !important;
    box-shadow: 0 8px 25px rgba(0, 86, 210, 0.5) !important;
}

/* Footer del modal */
.product-modal__footer {
    background: rgba(0, 0, 0, 0.3) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.15) !important;
}

/* Botones del footer */
.btn-secondary {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    font-weight: 600 !important;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light)) !important;
    color: #ffffff !important;
    border: 1px solid var(--color-primary-light) !important;
    font-weight: 700 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary)) !important;
    box-shadow: 0 8px 25px rgba(0, 86, 210, 0.5) !important;
}

/* Contenido dinámico del modal */
#modal-dynamic-content {
    color: rgba(255, 255, 255, 0.95) !important;
    text-align: center !important;
    width: 100% !important;
}

#modal-dynamic-content h1,
#modal-dynamic-content h2,
#modal-dynamic-content h3,
#modal-dynamic-content h4,
#modal-dynamic-content h5,
#modal-dynamic-content h6 {
    color: #ffffff !important;
    font-weight: 700 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
}

#modal-dynamic-content p {
    color: rgba(255, 255, 255, 0.95) !important;
    line-height: 1.6 !important;
}

#modal-dynamic-content .reveal-item {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Contenido dinámico */
.dynamic-content-placeholder {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

.dynamic-content-placeholder p {
    color: rgba(255, 255, 255, 0.95) !important;
    font-weight: 400 !important;
}

/* Estilos específicos para el contenido de categorías */
.modal-section {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    padding: 20px !important;
    margin-bottom: 20px !important;
    text-align: center !important;
}

.modal-section h3 {
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 1.3rem !important;
    margin-bottom: 12px !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
}

.modal-section p {
    color: rgba(255, 255, 255, 0.95) !important;
    line-height: 1.6 !important;
    margin-bottom: 8px !important;
}

.help-block {
    background: rgba(0, 86, 210, 0.1) !important;
    border-left: 3px solid var(--color-primary) !important;
    padding: 12px 16px !important;
    margin: 12px 0 !important;
    border-radius: 4px !important;
}

.help-block strong {
    color: var(--color-primary-light) !important;
    font-weight: 700 !important;
}

.modal-footer {
    background: rgba(0, 0, 0, 0.2) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.15) !important;
    padding: 20px !important;
    margin-top: 20px !important;
    border-radius: 8px !important;
    text-align: center !important;
}

.modal-footer p {
    color: rgba(255, 255, 255, 0.95) !important;
    margin-bottom: 16px !important;
}

.modal-footer strong {
    color: var(--color-primary-light) !important;
    font-weight: 700 !important;
}

.modal-cta {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light)) !important;
    color: #ffffff !important;
    border: 1px solid var(--color-primary-light) !important;
    padding: 12px 24px !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
    display: block !important;
    margin: 0 auto !important;
    max-width: 200px !important;
}

.modal-cta:hover {
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary)) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(0, 86, 210, 0.4) !important;
}

/* Mejorar la legibilidad en pantallas pequeñas */
@media (max-width: 768px) {
    .modal-title {
        font-size: 1.4rem !important;
    }
    
    .modal-description {
        font-size: 1rem !important;
    }
    
    .solution-title {
        font-size: 1.2rem !important;
    }
    
    .solution-description {
        font-size: 0.95rem !important;
    }
    
    .feature-badge {
        font-size: 0.8rem !important;
        padding: 6px 12px !important;
    }
}

/* Estados de accesibilidad */
.product-modal__dialog:focus-within {
    outline: 2px solid var(--color-primary) !important;
    outline-offset: 2px !important;
}

/* Mejor contraste para usuarios con problemas de visión */
@media (prefers-contrast: high) {
    .product-modal__dialog {
        background: rgba(0, 0, 0, 0.95) !important;
        border: 2px solid #ffffff !important;
    }
    
    .solution-card {
        background: rgba(255, 255, 255, 0.15) !important;
        border: 2px solid rgba(255, 255, 255, 0.3) !important;
    }
    
    .modal-title,
    .solution-title {
        color: #ffffff !important;
        font-weight: 800 !important;
    }
    
    .modal-description,
    .solution-description {
        color: #ffffff !important;
        font-weight: 600 !important;
    }
    
    .feature-badge {
        background: #ffffff !important;
        color: #000000 !important;
        font-weight: 700 !important;
    }
}