/* public/assets/auth/css/registro.css - Versión Definitiva sin Scroll */

:root {
    --primary-color: #3A86FF;
    --dark-color: #2A2A2A;
    --text-muted: #6c757d;
    --bg-light: #f8f9fa;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f5f5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ---------- HEADER (Idéntico al Login) ---------- */
header {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 100;
    background: white;
}

.header-container {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-logo {
    height: 80px;
    width: auto;
    transition: var(--transition);
}

/* ---------- MAIN & CONTAINER ---------- */
main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.custom-container {
    display: flex;
    width: 100%;
    max-width: 1200px;
    height: 85vh; /* Altura relativa a la ventana */
    max-height: 800px; /* Límite máximo */
    min-height: 650px; /* Altura mínima */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-radius: 24px;
    overflow: hidden;
    background-color: white;
}

/* ---------- COLUMNA IZQUIERDA: FORMULARIO ---------- */
#registro {
    flex: 1.2;
    padding: 30px 40px;
    display: flex;
    flex-direction: column;
    overflow-y: auto; /* Scroll SOLO si es necesario */
    scrollbar-width: thin; /* Scroll más elegante en Firefox */
    scrollbar-color: var(--primary-color) #e9ecef;
}

/* Estilizar scrollbar para Chrome/Safari */
#registro::-webkit-scrollbar {
    width: 6px;
}

#registro::-webkit-scrollbar-track {
    background: #e9ecef;
    border-radius: 10px;
}

#registro::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

#registro h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.25rem;
    text-align: center;
}

#registro .registro-header p {
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

/* Estilo de los Pasos del Wizard */
.wizard-step {
    animation: fadeIn 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.titulo-paso {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 1rem;
    padding-bottom: 5px;
    border-bottom: 3px solid var(--primary-color);
    display: inline-block;
    width: 50%;
}

/* ---------- INPUTS Y FORM GROUP (más compactos) ---------- */
.form-group {
    margin-bottom: 0.9rem;
    padding: 5px 5px; /* Más compacto verticalmente */
}

.form-group label {
    display: block;
    margin-bottom: 0.3rem;
    font-weight: 600;
    color: var(--dark-color);
    font-size: 0.85rem;
}

#registro-wizard input,
#registro-wizard .form-select-custom,
#registro-wizard .form-control {
    width: 100%;
    padding: 10px 14px; /* Más compacto */
    border: 1.5px solid #e9ecef;
    border-radius: 10px;
    font-size: 0.9rem;
    background-color: var(--bg-light);
    transition: var(--transition);
}

#registro-wizard input:focus,
#registro-wizard .form-select-custom:focus {
    border-color: var(--primary-color);
    outline: none;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(58, 134, 255, 0.1);
}

/* Inputs de archivo más pequeños */
#registro-wizard .form-control-sm {
    padding: 8px 12px;
    font-size: 0.85rem;
}

/* Texto de ayuda más pequeño */
.text-muted.small {
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

/* ---------- BOTONES MEJORADOS (Atrás con mismo estilo que Siguiente) ---------- */
.btn-login {
    background: linear-gradient(135deg, var(--primary-color), var(--dark-color));
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 8px 20px rgba(58, 134, 255, 0.3);
    
    /* Para botones individuales (como en paso 1) */
    width: 40%;
    display: block;
    margin: 30px auto 0 auto;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(58, 134, 255, 0.4);
    background: linear-gradient(135deg, var(--dark-color), var(--primary-color));
}

/* Botón Atrás - EXACTAMENTE igual al de siguiente pero con colores invertidos */
.btn-prev {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(58, 134, 255, 0.15);
    
    /* Para botones individuales (aunque atrás siempre va acompañado) */
    width: 100%;
}

.btn-prev:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(58, 134, 255, 0.25);
    background: #f0f7ff; /* Un azul muy clarito al hacer hover */
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

/* Cuando los botones van juntos en un flex (pasos 2,3,4,5) */
.d-flex.gap-2 .btn-login,
.d-flex.gap-2 .btn-prev {
    flex: 1; /* Mismo ancho para ambos */
    margin: 0; /* Reseteamos el margin del btn-login individual */
    width: auto; /* Ancho automático para que flex funcione */
}

/* Clase .btn-outline-custom la mantenemos pero no es necesaria para atrás */
.btn-outline-custom {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 600;
    transition: var(--transition);
    font-size: 0.95rem;
}

.btn-outline-custom:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(58, 134, 255, 0.3);
}

.register-link {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.85rem;
}

.register-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
}

.register-link a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* ---------- COLUMNA DERECHA: CARRUSEL (Igual al Login) ---------- */
.info-section {
    flex: 1;
    position: relative;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    overflow: hidden;
}

#infoCarousel {
    height: 100%;
    width: 100%;
}

.carousel-inner,
.carousel-item {
    height: 100%;
}

.carousel-item {
    background-size: cover;
    background-position: center;
    position: relative;
}

.carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 1;
}

.carousel-caption-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 350px;
    text-align: center;
    color: white;
    z-index: 2;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.carousel-caption-content h2 {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease;
}

.carousel-caption-content p {
    font-size: 1rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease;
}

/* Animación para el texto */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- MEJORAS PARA EL WIZARD ---------- */
/* Hacer que los pasos ocupen todo el espacio disponible */
.wizard-step {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* El último elemento (botones) se empuja hacia abajo */
.wizard-step .d-flex:last-child,
.wizard-step > button:last-child {
    margin-top: auto;
}

/* Para los pasos que tienen botones al final */
#paso-1,
#paso-2,
#paso-3,
#paso-4,
#paso-5 {
    display: flex;
    flex-direction: column;
    padding-top: 30px;
}

/* Contenedor de tags más compacto */
#contenedor-tags {
    min-height: 35px;
    margin-bottom: 0.5rem;
}

#contenedor-tags .badge {
    background: var(--primary-color);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Resumen final más compacto */
#resumen-registro {
    font-size: 0.85rem;
    padding: 0.8rem !important;
    margin-bottom: 0.8rem !important;
}

/* ---------- RESPONSIVE (Idéntico al Login) ---------- */
@media (max-width: 992px) {
    main {
        padding: 10px;
    }
    
    .custom-container {
        flex-direction: column;
        height: auto;
        min-height: auto;
        max-height: none;
    }
    
    /* En tablets, el carrusel se muestra pero más pequeño */
    .info-section {
        height: 250px;
        order: -1; /* Carrusel arriba */
    }
    
    #registro {
        padding: 25px;
        max-height: none;
        overflow-y: visible; /* Sin scroll en móviles */
    }
    
    .carousel-caption-content h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 576px) {
    #registro {
        padding: 20px;
    }
    
    #registro h1 {
        font-size: 1.8rem;
    }
    
    .titulo-paso {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }
    
    .form-group {
        margin-bottom: 0.7rem;
    }
    
    .form-group label {
        font-size: 0.8rem;
    }
    
    #registro-wizard input,
    #registro-wizard .form-select-custom {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
    
    .btn-login,
    .btn-outline-custom {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .info-section {
        height: 200px;
    }
    
    .carousel-caption-content h2 {
        font-size: 1.5rem;
    }
    
    .carousel-caption-content p {
        font-size: 0.9rem;
    }
}

/* Para pantallas muy pequeñas, ocultar carrusel (como en login) */
@media (max-width: 480px) {
    .info-section {
        display: none;
    }
}