/* =============================================
   REGISTRO WIZARD - BOTIA 360
   ============================================= */

.registro-page {
    min-height: 100vh;
    padding: 30px 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.registro-container {
    width: 100%;
    max-width: 780px;
    margin: 0 auto;
}

.registro-box.glass {
    background: rgba(15, 15, 35, 0.85);
    border: 1px solid rgba(147, 51, 234, 0.27);
    box-shadow: 0 8px 40px rgba(147, 51, 234, 0.2);
    border-radius: 18px;
    padding: 35px 35px 30px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.registro-header { margin-bottom: 25px; }
.registro-logo { max-width: 220px; height: auto; margin-bottom: 15px; }
.registro-title {
    color: #fff;
    font-weight: 700;
    font-size: 1.8rem;
    margin: 0 0 6px;
}
.registro-subtitle {
    color: rgba(255,255,255,0.7);
    margin: 0;
    font-size: 0.98rem;
}

/* ========== BARRA DE PROGRESO ========== */
.progress-wrapper { margin: 10px 0 30px; }
.progress-steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
}
.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 0 0 auto;
    position: relative;
    z-index: 2;
}
.step-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    border: 2px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.35s ease;
}
.progress-step.active .step-circle,
.progress-step.completed .step-circle {
    background: linear-gradient(135deg, #9333EA, #7C3AED);
    border-color: #9333EA;
    color: #fff;
    box-shadow: 0 0 0 4px rgba(147, 51, 234, 0.18);
}
.progress-step.completed .step-circle::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    font-size: 0.9rem;
}
.progress-step.completed .step-circle i { display: none; }
.step-label {
    color: rgba(255,255,255,0.6);
    font-size: 0.78rem;
    margin-top: 8px;
    font-weight: 500;
    text-align: center;
}
.progress-step.active .step-label,
.progress-step.completed .step-label { color: #fff; }
.progress-line {
    flex: 1 1 auto;
    height: 3px;
    background: rgba(255,255,255,0.1);
    margin: 0 4px;
    position: relative;
    overflow: hidden;
    margin-top: -22px;
    border-radius: 3px;
}
.progress-line-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #9333EA, #7C3AED);
    transition: width 0.4s ease;
}

/* ========== PANELES DE PASO ========== */
.step-panel { display: none; animation: fadeIn 0.35s ease; }
.step-panel.active { display: block; }
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.step-intro { margin-bottom: 22px; text-align: center; }
.step-intro h3 {
    color: #fff;
    font-weight: 700;
    margin: 0 0 8px;
    font-size: 1.35rem;
}
.step-intro p {
    color: rgba(255,255,255,0.75);
    margin: 0;
    font-size: 0.98rem;
}
.wave { display: inline-block; animation: wave 1.8s ease-in-out infinite; transform-origin: 70% 70%; }
@keyframes wave {
    0%, 60%, 100% { transform: rotate(0deg); }
    10%, 30% { transform: rotate(14deg); }
    20% { transform: rotate(-8deg); }
    40% { transform: rotate(14deg); }
    50% { transform: rotate(-4deg); }
}

.form-group label {
    color: #fff;
    font-weight: 500;
    margin-bottom: 6px;
}
.req { color: #ff6b6b; }
.hint {
    display: block;
    color: rgba(255,255,255,0.55);
    margin-top: 6px;
    font-size: 0.85rem;
}

/* ========== SLIDER DE PAQUETES ========== */
.paquetes-slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}
.paquetes-slider {
    flex: 1;
    display: flex;
    gap: 18px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 10px 5px 20px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.paquetes-slider::-webkit-scrollbar { display: none; }

.paquetes-loading {
    flex: 1;
    text-align: center;
    color: rgba(255,255,255,0.7);
    padding: 40px;
}

.paquete-card {
    flex: 0 0 100%;
    min-width: 100%;
    scroll-snap-align: center;
    background: rgba(255,255,255,0.04);
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    padding: 24px 22px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 280px;
}
.paquete-card:hover {
    border-color: rgba(147, 51, 234, 0.5);
    transform: translateY(-2px);
    background: rgba(147, 51, 234, 0.06);
}
.paquete-card.selected {
    border-color: #9333EA;
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.18), rgba(124, 58, 237, 0.1));
    box-shadow: 0 0 0 4px rgba(147, 51, 234, 0.2);
}
.paquete-card.selected::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 14px;
    right: 14px;
    width: 30px;
    height: 30px;
    background: #9333EA;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}
.paquete-badge {
    display: inline-block;
    background: linear-gradient(135deg, #9333EA, #7C3AED);
    color: #fff;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    align-self: flex-start;
}
.paquete-nombre {
    color: #fff;
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 10px;
}
.paquete-precio {
    color: #fff;
    font-size: 2rem;
    font-weight: 800;
    margin: 0 0 4px;
    background: linear-gradient(135deg, #c084fc, #9333EA);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.paquete-precio small {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
    font-weight: 400;
    -webkit-text-fill-color: rgba(255,255,255,0.6);
}
.paquete-vigencia {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    margin-bottom: 14px;
}
.paquete-vigencia i { margin-right: 4px; color: #9333EA; }
.paquete-descripcion {
    color: rgba(255,255,255,0.78);
    font-size: 0.92rem;
    line-height: 1.5;
    margin: 0;
    white-space: pre-line;
}

/* Flechas del slider */
.slider-arrow {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(147, 51, 234, 0.2);
    border: 1px solid rgba(147, 51, 234, 0.4);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
}
.slider-arrow:hover:not(:disabled) {
    background: #9333EA;
    border-color: #9333EA;
    transform: scale(1.08);
}
.slider-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Dots */
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 6px;
    margin-bottom: 15px;
}
.slider-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    cursor: pointer;
    transition: all 0.25s ease;
    border: none;
    padding: 0;
}
.slider-dot.active {
    background: #9333EA;
    width: 26px;
    border-radius: 5px;
}

.paquete-seleccionado-msg {
    text-align: center;
    color: #9333EA;
    font-weight: 600;
    font-size: 0.95rem;
    min-height: 22px;
    margin-top: 5px;
}
.paquete-seleccionado-msg i { margin-right: 5px; }

/* ========== NAVEGACIÓN ========== */
.step-nav {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 15px;
}
.step-nav .btn {
    min-width: 140px;
    padding: 10px 22px;
    font-weight: 600;
    border-radius: 10px;
}
.step-nav .btn-purple {
    background: linear-gradient(135deg, #9333EA, #7C3AED);
    border: none;
    color: #fff;
    box-shadow: 0 4px 14px rgba(147, 51, 234, 0.35);
}
.step-nav .btn-purple:hover {
    background: linear-gradient(135deg, #7C3AED, #9333EA);
    box-shadow: 0 6px 20px rgba(147, 51, 234, 0.5);
}
.step-nav .btn-purple:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}
.step-nav .btn-outline-light {
    border-color: rgba(255,255,255,0.3);
    color: rgba(255,255,255,0.85);
}
.step-nav .btn-outline-light:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
}

.registro-footer { margin-top: 20px; }
.registro-footer a { text-decoration: none; }
.text-purple { color: #c084fc !important; }

/* ========== INPUTS ========== */
.glass-input {
    background: rgba(255,255,255,0.06) !important;
    border: 1px solid rgba(255,255,255,0.15) !important;
    color: #fff !important;
}
.glass-input:focus {
    background: rgba(255,255,255,0.1) !important;
    border-color: #9333EA !important;
    box-shadow: 0 0 0 0.2rem rgba(147, 51, 234, 0.25) !important;
    color: #fff !important;
}
.input-group-text.glass-input { color: #c084fc !important; }
input.glass-input::placeholder { color: rgba(255,255,255,0.4); }

/* ========== RESPONSIVO ========== */
@media (max-width: 576px) {
    .registro-box.glass {
        padding: 22px 18px 22px;
        border-radius: 14px;
    }
    .registro-title { font-size: 1.4rem; }
    .registro-subtitle { font-size: 0.9rem; }
    .registro-logo { max-width: 170px; }

    .step-circle { width: 36px; height: 36px; font-size: 0.85rem; }
    .step-label { font-size: 0.68rem; }
    .progress-line { margin-top: -18px; }

    .step-intro h3 { font-size: 1.12rem; }
    .step-intro p { font-size: 0.9rem; }

    .paquete-card { padding: 20px 18px; min-height: 240px; }
    .paquete-nombre { font-size: 1.15rem; }
    .paquete-precio { font-size: 1.6rem; }

    .slider-arrow {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 3;
    }
    .slider-arrow-left { left: -5px; }
    .slider-arrow-right { right: -5px; }
    .paquetes-slider { padding: 10px 0 18px; }

    .step-nav { flex-direction: row; }
    .step-nav .btn { min-width: 0; flex: 1; padding: 10px 12px; font-size: 0.92rem; }
}

@media (max-width: 380px) {
    .step-label { display: none; }
}
