/* REGISTER WIDGET - Estilos modernos */
.formulario-registro {
    max-width: 500px;
    margin: 2rem auto;
    padding: 0 1rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.form-container {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 8px 24px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

/* Efecto de partículas de fondo */
.form-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    animation: float 20s infinite linear;
    z-index: 0;
}

@keyframes float {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(-20px, -20px) rotate(360deg); }
}

.form-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    position: relative;
    z-index: 1;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 600;
    color: white;
    font-size: 1rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.95);
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 1);
    box-shadow: 
        0 0 0 3px rgba(255, 255, 255, 0.2),
        0 8px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.form-group input::placeholder {
    color: #a0aec0;
}

/* Estilos para el select de suscripción */
.select-rol {
    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 1rem center;
    background-repeat: no-repeat;
    background-size: 1.2em 1.2em;
    padding-right: 2.5rem;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Estilos específicos para el captcha */
.captcha-group {
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    padding: 1.5rem;
    border-radius: 12px;
    margin: 1.5rem 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.imagen-captcha {
    max-width: 200px;
    height: auto;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    margin: 0.5rem 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.captcha-piezas {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0 0;
    text-align: left;
}

.pieza-rotacion {
    margin-bottom: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.pieza-rotacion label {
    display: inline-block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2d3748;
}

.pieza-rotacion select {
    width: 140px;
    margin-left: 0.5rem;
    padding: 0.6rem;
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 8px;
    background: white;
}

/* Botones modernizados */
.btn-submit {
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-width: 140px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    padding: 1rem 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn-submit:hover::before {
    left: 100%;
}

.btn-submit:focus {
    outline: none;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.btn-submit:active {
    transform: translateY(0);
}

/* Botón Anterior */
.btn-submit.anterior {
    background: linear-gradient(135deg, #6c757d, #5a6268);
    color: white;
    border: 2px solid transparent;
}

.btn-submit.anterior:hover {
    background: linear-gradient(135deg, #5a6268, #495056);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.4);
}

/* Botón Siguiente */
.btn-submit.siguiente {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: 2px solid transparent;
}

.btn-submit.siguiente:hover {
    background: linear-gradient(135deg, #5a6fd8, #6a4190);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* Estilo para el último paso (botón registrar) */
.btn-submit[type="submit"]:last-child {
    background: linear-gradient(135deg, #48bb78, #38a169);
    width: 100%;
    border: 2px solid transparent;
}

.btn-submit[type="submit"]:last-child:hover {
    background: linear-gradient(135deg, #38a169, #2f855a);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(72, 187, 120, 0.4);
}

/* Contenedor para los botones */
.botones-container {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 2rem;
    position: relative;
    z-index: 1;
}

.botones-container.espaciado {
    justify-content: space-between;
}

.botones-container.final-step .siguiente {
    background: linear-gradient(135deg, #28a745, #218838);
    border-color: #28a745;
}

.botones-container.final-step .siguiente:hover {
    background: linear-gradient(135deg, #218838, #1e7e34);
    border-color: #1e7e34;
}

/* Progress Bar Modernizado */
.progressbar {
    position: relative;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progressbar-fill-0,
.progressbar-fill-25,
.progressbar-fill-50,
.progressbar-fill-75,
.progressbar-fill-100 {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 10px;
    transition: width 0.6s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}

.progressbar-fill-0 { width: 0%; }
.progressbar-fill-25 { width: 25%; }
.progressbar-fill-50 { width: 50%; }
.progressbar-fill-75 { width: 75%; }
.progressbar-fill-100 { width: 100%; }

/* Step Indicators Modernizados */
.step-indicators {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    margin-bottom: 1rem;
}

.step-indicator {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: 3px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    color: #667eea;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.step-indicator.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-color: rgba(255, 255, 255, 0.6);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.step-indicator.completed {
    background: #48bb78;
    border-color: rgba(255, 255, 255, 0.6);
    color: white;
}

/* Línea conectadora entre indicadores */
.step-indicators::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 20px;
    right: 20px;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%);
    z-index: 1;
    border-radius: 2px;
}

/* Notification Widget Modernizado */
.notification-widget {
    position: relative;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9), rgba(118, 75, 162, 0.9));
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 400px;
    margin: 20px auto;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    backdrop-filter: blur(10px);
    color: white;
    text-align: center;
}

.notification-widget p {
    margin: 0.5rem 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.notification-widget hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    margin: 1rem 0;
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-group {
    animation: fadeInUp 0.5s ease-out;
}

.form-group:nth-child(1) { animation-delay: 0.1s; }
.form-group:nth-child(2) { animation-delay: 0.2s; }
.form-group:nth-child(3) { animation-delay: 0.3s; }
.form-group:nth-child(4) { animation-delay: 0.4s; }

/* Efecto de onda al hacer clic */
.btn-submit::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.btn-submit:active::after {
    animation: ripple 0.6s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(20, 20);
        opacity: 0;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .formulario-registro {
        margin: 1rem auto;
        padding: 0 0.5rem;
    }
    
    .form-container {
        padding: 2rem 1.5rem;
        border-radius: 16px;
    }
    
    .form-group {
        margin-bottom: 1.2rem;
    }
    
    .botones-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-submit {
        width: 100%;
        min-width: auto;
    }
    
    .captcha-piezas {
        text-align: center;
    }
    
    .step-indicator {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .form-container {
        padding: 1.5rem 1rem;
    }
    
    .form-group input,
    .form-group select {
        padding: 0.8rem 1rem;
    }
    
    .notification-widget {
        padding: 1rem;
        margin: 1rem auto;
    }
}

/* Modo oscuro opcional */
@media (prefers-color-scheme: dark) {
    .form-container {
        background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
    }
    
    .form-group input,
    .form-group select {
        background: rgba(45, 55, 72, 0.95);
        color: white;
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    .form-group input::placeholder {
        color: #a0aec0;
    }
    
    .captcha-group {
        background: rgba(45, 55, 72, 0.95);
    }
    
    .pieza-rotacion label {
        color: #e2e8f0;
    }
}