@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@300;700&display=swap');

/* Estilos generales */
.omi-manual-container,
.omi-encuesta-container {
    max-width: 1200px;
    background: #ffffff;
    border-radius: 12px;
}

/* Estilos para el carrusel de manuales */
.swiper-wrapper{
    align-items: start!important;
    height: 1000px!important;
}
.omi-manual-carousel {
    position: relative;
    margin: 2rem 0;
    padding: 0 40px;
}

.omi-manual-slide {
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.omi-manual-slide:hover {
    transform: translateY(-5px);
}

.omi-manual-slide img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.omi-manual-slide h3 {
    color: #2c3e50;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.omi-manual-slide p {
    color: #666;
    line-height: 1.6;
}

/* Navegación del carrusel */
.omi-manual-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: #ffffff;
    border: none;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.omi-manual-nav:hover {
    background: #f8f9fa;
    transform: translateY(-50%) scale(1.1);
}

.omi-manual-prev {
    left: 0;
}

.omi-manual-next {
    right: 0;
}

/* Estilos para el sistema de calificación */
.omi-rating-container {
    margin: 2rem 0;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
}

.omi-rating-title {
    color: #2c3e50;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.omi-rating-options {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.omi-rating-option {
    border: none !important;
    background: transparent !important;
    font-size: 2.5rem !important;
    box-shadow: none !important;
    outline: none !important;
    cursor: pointer;
    padding: 0.5rem 1rem;
    transition: transform 0.2s;
}

.omi-rating-option:hover, .omi-rating-option.selected {
    transform: scale(1.2);
    background: transparent !important;
    border: none !important;
}

/* Estilos para la encuesta */
.omi-encuesta-container {
    background: #ffffff;
}

.omi-encuesta-title {
    font: normal normal bold 23px/34px Heebo, Arial, sans-serif;
    color: #2c3e50;
    margin-bottom: 2rem;
    text-align: center;
}

.omi-encuesta-subtitle {
    font: normal normal 300 10px/14px Heebo, Arial, sans-serif;
    color: #666;
    text-align: center;
    margin-bottom: 1.5rem;
}

.omi-pregunta-container {
    margin-bottom: 2rem;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.omi-pregunta-texto {
    font: normal normal bold 10px/14px Heebo, Arial, sans-serif;
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

.omi-pregunta-required {
    color: #dc3545;
    margin-left: 0.5rem;
}

/* Estilos para opciones de respuesta */
.omi-opciones-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.omi-opcion-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: #ffffff;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.omi-opcion-item:hover {
    background: #f8f9fa;
    transform: translateX(5px);
}

.omi-opcion-item input[type="radio"],
.omi-opcion-item input[type="checkbox"] {
    margin-right: 1rem;
    width: 20px;
    height: 20px;
}

.omi-opcion-item label {
    color: #2c3e50;
    font-size: 1.1rem;
    cursor: pointer;
}

/* Estilos para campos de texto */
.omi-texto-respuesta {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.omi-texto-respuesta:focus {
    border-color: #da291c;
    outline: none;
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.1);
}

/* Botones de navegación */
.omi-navegacion-container {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
}

.omi-prev-pregunta,
.omi-next-pregunta,
.omi-submit-encuesta {
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.omi-prev-pregunta {
    background: #e9ecef;
    color: #2c3e50;
}

.omi-next-pregunta,
.omi-submit-encuesta {
    background: #da291c;
    color: #ffffff;
}

.omi-prev-pregunta:hover,
.omi-next-pregunta:hover,
.omi-submit-encuesta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.omi-prev-pregunta:hover {
    background: #dee2e6;
}

.omi-next-pregunta:hover,
.omi-submit-encuesta:hover {
    background: #1a5f8a;
}

/* Mensajes de error y éxito */
.omi-mensaje {
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 8px;
    font-weight: 600;
}

.omi-mensaje-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.omi-mensaje-exito {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Estilos para validación de encuestas */
.omi-pregunta-container.error {
    border: 2px solid #dc3545;
    animation: shake 0.5s ease-in-out;
}

.omi-pregunta-container.error .omi-pregunta-texto {
    color: #dc3545;
}

.omi-texto-respuesta.error {
    border-color: #dc3545;
    background-color: #fff8f8;
}

.omi-contador-caracteres {
    display: block;
    text-align: right;
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.5rem;
}

.omi-contador-caracteres.error {
    color: #dc3545;
}

.omi-opcion-item.error {
    border-color: #dc3545;
    background-color: #fff8f8;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Estilos para mensajes de validación */
.omi-mensaje {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    min-width: 300px;
    max-width: 400px;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    animation: slideIn 0.3s ease-out;
}

.omi-mensaje-error {
    background: #fff;
    border-left: 4px solid #dc3545;
    color: #dc3545;
}

.omi-mensaje-exito {
    background: #fff;
    border-left: 4px solid #28a745;
    color: #28a745;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Estilos para campos requeridos */
.omi-pregunta-required {
    color: #dc3545;
    margin-left: 0.5rem;
    font-weight: bold;
}

.omi-pregunta-container .omi-pregunta-texto::after {
    content: attr(data-required-text);
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.5rem;
    font-weight: normal;
}

/* Estilos para campos de texto con validación */
.omi-texto-respuesta {
    transition: all 0.3s ease;
}

.omi-texto-respuesta:focus {
    border-color: #da291c;
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.1);
}

.omi-texto-respuesta.error:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

/* Estilos para opciones con validación */
.omi-opcion-item {
    transition: all 0.3s ease;
}

.omi-opcion-item.selected {
    background-color: #f8f9fa;
    border-color: #da291c;
}

.omi-opcion-item.error {
    animation: pulse 1s ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

/* Estilos para el contenedor de navegación */
.omi-navegacion-container {
    position: relative;
}

.omi-navegacion-container::before {
    content: '';
    position: absolute;
    top: -1rem;
    left: 0;
    right: 0;
    height: 1px;
    background: #e9ecef;
}

/* Estilos para botones de navegación */
.omi-prev-pregunta,
.omi-next-pregunta,
.omi-submit-encuesta {
    position: relative;
    overflow: hidden;
}

.omi-prev-pregunta::after,
.omi-next-pregunta::after,
.omi-submit-encuesta::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

.omi-prev-pregunta:active::after,
.omi-next-pregunta:active::after,
.omi-submit-encuesta:active::after {
    width: 200%;
    height: 200%;
}

/* Estilos para el estado de carga */
.omi-submit-encuesta.loading {
    position: relative;
    color: transparent;
}

.omi-submit-encuesta.loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Estilos para el estado de éxito */
.omi-pregunta-container.completed {
    border-left: 4px solid #28a745;
}

.omi-pregunta-container.completed .omi-pregunta-texto::before {
    content: '✓';
    color: #28a745;
    margin-right: 0.5rem;
}

/* Estilos para el estado de error */
.omi-pregunta-container.error .omi-pregunta-texto::before {
    content: '!';
    color: #dc3545;
    margin-right: 0.5rem;
    font-weight: bold;
}

/* Estilos para el estado de foco */
.omi-pregunta-container.focused {
    border-color: #da291c;
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.1);
}

/* Estilos para el estado de hover */
.omi-opcion-item:hover {
    background-color: #f8f9fa;
    transform: translateX(5px);
}

.omi-opcion-item.selected:hover {
    background-color: #e9ecef;
}

/* Estilos para el estado de disabled */
.omi-submit-encuesta:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* Estilos para el estado de error en el formulario */
.omi-encuesta-container.error {
    border: 2px solid #dc3545;
}

/* Estilos para el estado de éxito en el formulario */
.omi-encuesta-container.success {
    border: 2px solid #28a745;
}

/* Estilos para el estado de carga en el formulario */
.omi-encuesta-container.loading {
    position: relative;
}

.omi-encuesta-container.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #da291c;
}

/* Estilos para el estado de error en el formulario */
.omi-encuesta-container.error::after {
    content: 'Ha ocurrido un error. Por favor, intenta nuevamente.';
    color: #dc3545;
}

/* Estilos para el estado de éxito en el formulario */
.omi-encuesta-container.success::after {
    content: '¡Gracias por completar la encuesta!';
    color: #28a745;
}

/* Responsive */
@media (max-width: 768px) {

    .omi-manual-nav {
        width: 30px;
        height: 30px;
    }

    .omi-rating-options {
        flex-wrap: wrap;
    }

    .omi-rating-option {
        padding: 0.6rem 1rem;
    }

    .omi-navegacion-container {
        flex-direction: column;
        gap: 1rem;
    }

    .omi-prev-pregunta,
    .omi-next-pregunta,
    .omi-submit-encuesta {
        width: 100%;
    }
} 