/* ===== MODAL PASO A PASO PARA INSCRIPCIONES ===== */

/* Modal paso a paso - solo visible en móviles */
.step-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 1rem;
    box-sizing: border-box;
}

.step-modal.active {
    opacity: 1;
}

.step-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateY(20px);
    width: 90%;
    max-width: 360px;
    height: auto;
    min-height: 240px;
    max-height: 70vh;
    background: white;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.step-modal.active .step-modal-content {
    transform: translate(-50%, -50%);
}

/* Header del modal paso a paso */
.step-modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 16px 16px 0 0;
    position: relative;
    z-index: 2;
    height: 60px;
    box-sizing: border-box;
}

.step-header-info {
    flex: 1;
    color: white;
}

.step-event-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
    opacity: 0.9;
}

.step-form-title {
    font-size: 0.75rem;
    margin: 0;
    opacity: 0.7;
    font-weight: 400;
}

.step-header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Botón para alternar vista */
.toggle-view-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.toggle-view-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.close-step-modal {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-step-modal:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Contador de progreso */
.step-progress {
    background: #f8fafc;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 500;
    border-bottom: 1px solid #e2e8f0;
    height: 40px;
    box-sizing: border-box;
}

.progress-counter {
    background: #667eea;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.75rem;
}

.progress-bar {
    flex: 1;
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    margin: 0 0.5rem;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
    transition: width 0.4s ease;
    width: 0%;
}

/* Contenedor de pasos */
.step-container {
    flex: 1;
    position: relative;
    overflow: hidden;
    background: white;
    min-height: 120px;
}

.step-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.step-slide {
    min-width: 100%;
    padding: 0.75rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    min-height: 120px;
}

/* Contenido del paso */
.step-content {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
}

.step-field-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.4rem;
    display: block;
}

.step-field-required {
    color: #ef4444;
    font-size: 0.9rem;
    margin-left: 0.25rem;
}

.step-field-description {
    font-size: 0.8rem;
    color: #6b7280;
    margin-bottom: 1rem;
    line-height: 1.3;
}

/* Inputs del paso a paso */
.step-input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 0.9rem;
    background: #f9fafb;
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
}

.step-input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.step-textarea {
    min-height: 120px;
    resize: vertical;
}

.step-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

/* Rating especial para paso a paso */
.step-rating {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 1rem 0;
}

.step-rating-star {
    font-size: 2rem;
    color: #d1d5db;
    cursor: pointer;
    transition: all 0.2s ease;
}

.step-rating-star.active,
.step-rating-star.hover {
    color: #fbbf24;
    transform: scale(1.1);
}

/* Navegación inferior */
.step-navigation {
    background: white;
    padding: 0.75rem 1rem;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    border-radius: 0 0 16px 16px;
    height: 60px;
    box-sizing: border-box;
}

.step-nav-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 100px;
    justify-content: center;
}

.step-prev-btn {
    background: #f3f4f6;
    color: #6b7280;
}

.step-prev-btn:hover:not(:disabled) {
    background: #e5e7eb;
    color: #374151;
}

.step-prev-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.step-next-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.step-next-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.step-next-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.step-submit-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.step-submit-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Animaciones */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.step-slide.entering {
    animation: fadeInUp 0.4s ease-out;
}

/* Indicador de campo válido */
.step-input.valid {
    border-color: #10b981;
    background: #f0fdf4;
}

.step-input.invalid {
    border-color: #ef4444;
    background: #fef2f2;
}

/* Mensaje de validación */
.step-validation-message {
    font-size: 0.8rem;
    margin-top: 0.5rem;
    padding: 0.5rem;
    border-radius: 6px;
    display: none;
}

.step-validation-message.error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.step-validation-message.success {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

/* Solo mostrar en móviles */
@media (min-width: 769px) {
    .step-modal {
        display: none !important;
    }
}

/* Ajustes para pantallas muy pequeñas */
@media (max-width: 360px) {
    .step-slide {
        padding: 1rem;
        min-height: 160px;
    }
    
    .step-content {
        max-width: 280px;
    }
    
    .step-navigation {
        padding: 0.75rem 1rem;
    }
    
    .step-nav-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
        min-width: 80px;
    }
}

/* Estados de carga */
.step-loading {
    position: relative;
    overflow: hidden;
}

.step-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Estilos para archivos */
.step-file-input {
    position: relative;
    display: block;
    width: 100%;
}

.step-file-input input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.step-file-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    background: #f9fafb;
    cursor: pointer;
    transition: all 0.3s ease;
}

.step-file-label:hover {
    border-color: #667eea;
    background: #f0f4ff;
}

.step-file-icon {
    font-size: 2rem;
    color: #9ca3af;
    margin-bottom: 0.5rem;
}

.step-file-text {
    font-size: 0.9rem;
    color: #6b7280;
    text-align: center;
}

.step-file-selected {
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 6px;
    font-size: 0.8rem;
    color: #16a34a;
}
/* Oc
ultar modal original en móviles cuando el paso a paso está activo */
@media (max-width: 768px) {
    .step-modal.active ~ .inscripcion-modal {
        display: none !important;
    }
}

/* Mejoras adicionales para la experiencia móvil */
.step-modal-content {
    /* Asegurar que el modal ocupe toda la pantalla en móviles */
    min-height: 100vh;
    min-height: 100dvh; /* Para navegadores que soportan dvh */
}

/* Animación suave para el progreso */
.progress-fill {
    background: linear-gradient(90deg, rgba(255,255,255,0.8) 0%, rgba(255,255,255,1) 100%);
    box-shadow: 0 0 10px rgba(255,255,255,0.3);
}

/* Efecto de pulsación para botones */
.step-nav-btn:active {
    transform: scale(0.98);
}

.toggle-view-btn:active,
.close-step-modal:active {
    transform: scale(0.95);
}

/* Indicador visual para campos completados */
.step-input.valid::after {
    content: '✓';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #10b981;
    font-weight: bold;
    pointer-events: none;
}

/* Mejorar la visualización de archivos seleccionados */
.step-file-selected {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.step-file-selected i {
    color: #16a34a;
}

/* Animación para las estrellas de rating */
.step-rating-star {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-rating-star:hover {
    transform: scale(1.2);
}

/* Efecto de vibración para errores de validación */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.step-input.invalid {
    animation: shake 0.5s ease-in-out;
}

/* Mejora para pantallas muy altas */
@media (min-height: 800px) {
    .step-slide {
        justify-content: flex-start;
        padding-top: 3rem;
    }
}

/* Mejora para pantallas muy anchas en orientación horizontal */
@media (max-height: 500px) and (orientation: landscape) {
    .step-modal-header {
        padding: 0.75rem 1rem;
    }
    
    .step-progress {
        padding: 0.5rem 1rem;
    }
    
    .step-slide {
        padding: 1rem 1.5rem;
        justify-content: center;
    }
    
    .step-navigation {
        padding: 0.75rem 1.5rem;
    }
}

/* Accesibilidad: mejor contraste para usuarios con problemas de visión */
@media (prefers-contrast: high) {
    .step-modal-content {
        background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    }
    
    .step-input {
        border-width: 3px;
    }
    
    .step-input:focus {
        border-width: 3px;
        box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.2);
    }
}

/* Reducir movimiento para usuarios sensibles */
@media (prefers-reduced-motion: reduce) {
    .step-wrapper,
    .progress-fill,
    .step-nav-btn,
    .step-rating-star {
        transition: none;
    }
    
    .step-slide.entering {
        animation: none;
    }
    
    .step-input.invalid {
        animation: none;
    }
}
/*
 Estilos para el botón de alternar en el modal tradicional */
.toggle-to-step-modal:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    transform: scale(1.1);
}

/* Ajustes para el modal paso a paso en diferentes tamaños */
@media (max-width: 480px) {
    .step-modal-content {
        width: 95%;
        max-width: 340px;
        height: 380px;
    }
    
    .step-container {
        min-height: 160px;
    }
    
    .step-slide {
        padding: 0.75rem;
        min-height: 150px;
    }
}

@media (max-width: 360px) {
    .step-modal-content {
        width: 98%;
        max-width: 320px;
        height: 360px;
    }
    
    .step-modal-header {
        padding: 0.6rem 0.8rem;
        height: 55px;
    }
    
    .step-container {
        min-height: 150px;
    }
    
    .step-slide {
        padding: 0.75rem;
        min-height: 140px;
    }
    
    .step-navigation {
        padding: 0.6rem 0.8rem;
        height: 55px;
    }
    
    .step-progress {
        padding: 0.4rem 0.8rem;
        height: 35px;
    }
}

/* Mejoras para la transición entre modales */
.step-modal {
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.step-modal:not(.active) {
    visibility: hidden;
}

/* Asegurar que el modal tradicional se vea bien cuando se alterna */
.inscripcion-modal {
    transition: opacity 0.3s ease;
}

/* Indicador visual de que se puede alternar vista */
@media (max-width: 768px) {
    .toggle-to-step-modal {
        position: relative;
    }
    
    .toggle-to-step-modal::after {
        content: '';
        position: absolute;
        top: -2px;
        right: -2px;
        width: 8px;
        height: 8px;
        background: #10b981;
        border-radius: 50%;
        border: 2px solid white;
    }
}

/* Animación sutil para llamar la atención al botón de alternar */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.toggle-to-step-modal {
    animation: pulse 2s infinite;
}

.toggle-to-step-modal:hover {
    animation: none;
}/* Estilo
s adicionales para modal más compacto */
.step-event-title {
    font-size: 0.85rem;
    line-height: 1.2;
}

.step-form-title {
    font-size: 0.7rem;
    line-height: 1.2;
}

.step-field-label {
    font-size: 1rem;
    line-height: 1.3;
}

.step-content {
    max-width: 280px;
}

/* Mejorar el espaciado en pantallas pequeñas */
@media (max-height: 600px) {
    .step-modal-content {
        height: 350px;
    }
    
    .step-container {
        min-height: 140px;
    }
    
    .step-slide {
        padding: 0.75rem;
        justify-content: flex-start;
        min-height: 120px;
    }
}

/* Asegurar que el modal se vea bien en orientación horizontal */
@media (orientation: landscape) and (max-height: 500px) {
    .step-modal-content {
        height: 320px;
        width: 85%;
        max-width: 400px;
    }
    
    .step-container {
        min-height: 120px;
    }
    
    .step-slide {
        padding: 0.75rem;
        justify-content: flex-start;
        min-height: 110px;
    }
    
    .step-modal-header {
        padding: 0.5rem 1rem;
        height: 50px;
    }
    
    .step-navigation {
        padding: 0.5rem 1rem;
        height: 50px;
    }
    
    .step-progress {
        height: 30px;
        padding: 0.3rem 1rem;
    }
}

/* Mejorar la visibilidad del progreso */
.step-progress {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid #e2e8f0;
}

/* Efecto de enfoque mejorado para inputs */
.step-input:focus {
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

/* Animación suave para el cambio de pasos */
.step-wrapper {
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Indicador visual de progreso completado */
.progress-fill {
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #10b981 100%);
    box-shadow: 0 0 8px rgba(102, 126, 234, 0.3);
}

/* Mejorar la apariencia de los botones de navegación */
.step-nav-btn {
    font-size: 0.85rem;
    padding: 0.65rem 1.25rem;
    border-radius: 20px;
    font-weight: 500;
}

/* Efecto de carga para el botón de envío */
.step-submit-btn:disabled {
    background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%);
    cursor: not-allowed;
}

/* Mejorar la legibilidad en el header */
.step-header-info {
    min-width: 0; /* Permite que el texto se trunque si es necesario */
}

.step-event-title,
.step-form-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Asegurar que los iconos se vean bien */
.toggle-view-btn i,
.close-step-modal i {
    font-size: 16px;
}

/* Mejorar el contraste en el contador de progreso */
.progress-counter {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.2);
}/* Hace
r el modal más compacto eliminando espacios innecesarios */
.step-modal-content {
    min-height: auto !important;
}

.step-container {
    flex-shrink: 0;
}

.step-slide {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}

/* Ajustar el contenido para que sea más compacto */
.step-content {
    margin: 0;
    padding: 0;
}

.step-field-label {
    margin-bottom: 0.5rem;
}

.step-input {
    margin-bottom: 0.5rem;
}

.step-field-description {
    margin-bottom: 1rem;
}

/* Eliminar espacios extra en pantallas pequeñas */
@media (max-width: 768px) {
    .step-modal-content {
        min-height: 220px;
        max-height: 65vh;
    }
    
    .step-container {
        min-height: 100px;
    }
    
    .step-slide {
        padding: 0.5rem !important;
        min-height: 100px !important;
        justify-content: center !important;
    }
    
    .step-navigation {
        padding: 0.6rem 1rem;
    }
}

/* Para pantallas muy pequeñas, hacer aún más compacto */
@media (max-width: 400px) {
    .step-modal-content {
        min-height: 200px;
        max-height: 70vh;
    }
    
    .step-container {
        min-height: 90px;
    }
    
    .step-slide {
        padding: 0.4rem !important;
        min-height: 90px !important;
    }
    
    .step-modal-header {
        padding: 0.5rem 0.8rem;
    }
    
    .step-navigation {
        padding: 0.5rem 0.8rem;
    }
}/*
 Centrar perfectamente el contenido y eliminar espacios */
.step-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: 0;
    margin: 0;
}

.step-field-label {
    margin-bottom: 0.4rem;
    margin-top: 0;
}

.step-input {
    margin-bottom: 0.3rem;
    margin-top: 0;
}

.step-field-description {
    margin-bottom: 0.8rem;
    margin-top: 0;
}

/* Hacer el modal súper compacto */
.step-modal-content {
    min-height: 200px !important;
}

.step-container {
    min-height: 90px !important;
}

.step-slide {
    min-height: 90px !important;
    padding: 0.5rem 1rem !important;
}

/* Ajuste específico para el contenido del campo */
.step-slide .step-content {
    min-height: auto;
    gap: 0.3rem;
}

/* Reducir espaciado en elementos específicos */
.step-validation-message {
    margin-top: 0.3rem;
    margin-bottom: 0;
}

/* Hacer los botones de navegación más compactos */
.step-navigation {
    padding: 0.5rem 1rem !important;
    min-height: auto;
}

.step-nav-btn {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}