﻿/* ==============================================
   REGISTRO — estilos extra sobre Style_Login.css
   Wizard 3 pasos · TraduceHombres
   ============================================== */

/* Card más ancha para el wizard */
.th-wizard-card {
    max-width: 460px;
}

/* ─── BARRA DE PROGRESO ──────────────────────── */
.th-progress {
    margin-bottom: 1.75rem;
}

.th-progress__bar {
    width: 100%;
    height: 4px;
    background: rgba(233, 30, 140, 0.12);
    border-radius: 99px;
    margin-bottom: 0.875rem;
    overflow: hidden;
}

.th-progress__fill {
    height: 100%;
    width: 33.33%;
    background: var(--th-gradient);
    border-radius: 99px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.th-progress__steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.th-progress__step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    flex: 1;
    cursor: default;
}

.th-step-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid rgba(233, 30, 140, 0.2);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 700;
    color: #6b6b8a;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.th-step-label {
    font-size: 0.72rem;
    color: #6b6b8a;
    font-weight: 500;
    transition: all 0.3s ease;
}

/* Paso activo */
.th-progress__step.active .th-step-circle {
    background: var(--th-gradient);
    border-color: transparent;
    color: #fff;
    transform: scale(1.15);
    box-shadow: 0 0 0 4px rgba(233, 30, 140, 0.15);
}

.th-progress__step.active .th-step-label {
    color: #e91e8c;
    font-weight: 700;
}

/* Paso completado */
.th-progress__step.completed .th-step-circle {
    background: #10b981;
    border-color: transparent;
    color: #fff;
}

.th-progress__step.completed .th-step-label {
    color: #10b981;
    font-weight: 600;
}

/* ─── PASOS DEL WIZARD ───────────────────────── */
.th-wizard-step {
    display: none;
    animation: fadeInUp 0.35s cubic-bezier(0.4, 0, 0.2, 1) both;
}

    .th-wizard-step.active {
        display: block;
    }

/* ─── OPCIÓN EMAIL (paso 1) ──────────────────── */
.th-option-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    padding: 1rem 1.1rem;
    background: var(--th-bg);
    border: 1.5px solid var(--th-border);
    border-radius: var(--th-radius-sm);
    cursor: pointer;
    transition: var(--th-transition);
    text-align: left;
    font-family: inherit;
}

    .th-option-btn:hover {
        border-color: var(--th-primary);
        background: linear-gradient(135deg, #fce4ec 0%, #f3e5f5 100%);
        transform: translateY(-2px);
        box-shadow: var(--th-shadow-md);
    }

.th-option-btn__icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--th-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1rem;
    flex-shrink: 0;
}

.th-option-btn__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

    .th-option-btn__content strong {
        font-size: 0.9rem;
        color: var(--th-text);
        font-weight: 700;
    }

    .th-option-btn__content span {
        font-size: 0.78rem;
        color: var(--th-text-soft);
    }

.th-option-btn__arrow {
    color: var(--th-primary);
    font-size: 0.85rem;
    opacity: 0.6;
    transition: var(--th-transition);
}

.th-option-btn:hover .th-option-btn__arrow {
    opacity: 1;
    transform: translateX(3px);
}

/* ─── TELÉFONO CON PREFIJO ───────────────────── */
.th-phone-wrap {
    display: flex;
    gap: 0.5rem;
}

.th-select {
    padding: 0.8rem 0.75rem;
    background: var(--th-bg);
    border: 1.5px solid var(--th-border);
    border-radius: var(--th-radius-sm);
    font-family: inherit;
    font-size: 0.88rem;
    color: var(--th-text);
    outline: none;
    cursor: pointer;
    transition: var(--th-transition);
    -webkit-appearance: none;
    flex-shrink: 0;
}

    .th-select:focus {
        border-color: var(--th-primary);
        box-shadow: 0 0 0 3px rgba(233, 30, 140, 0.1);
    }

.th-phone-prefix {
    width: 105px;
}

.th-phone-number {
    flex: 1;
}

/* ─── BARRA DE FORTALEZA (paso 2) ────────────── */
.th-strength {
    margin-top: 0.5rem;
}

.th-strength__bar {
    width: 100%;
    height: 4px;
    background: rgba(233, 30, 140, 0.1);
    border-radius: 99px;
    overflow: hidden;
    margin-bottom: 0.25rem;
}

.th-strength__progress {
    height: 100%;
    width: 0%;
    border-radius: 99px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ef4444;
}

    .th-strength__progress.medium {
        background: #f59e0b;
    }

    .th-strength__progress.strong {
        background: #10b981;
    }

.th-strength__text {
    font-size: 0.76rem;
    color: #6b6b8a;
}

/* ─── BENEFICIOS (paso 3) ────────────────────── */
.th-benefits {
    background: linear-gradient(135deg, #fce4ec 0%, #f3e5f5 100%);
    border: 1px solid rgba(233, 30, 140, 0.15);
    border-radius: 16px;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
}

.th-benefits__title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--th-text);
    margin-bottom: 0.875rem;
}

.th-benefits__list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

    .th-benefits__list li {
        display: flex;
        align-items: center;
        gap: 0.65rem;
        font-size: 0.85rem;
        color: var(--th-text);
    }

        .th-benefits__list li i {
            width: 20px;
            text-align: center;
            background: var(--th-gradient);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            font-size: 0.9rem;
            flex-shrink: 0;
        }

/* ─── TÉRMINOS (paso 3) ──────────────────────── */
.th-terms {
    margin-bottom: 1.25rem;
}

    .th-terms .th-checkbox-label {
        align-items: flex-start;
        font-size: 0.83rem;
        line-height: 1.5;
    }

        .th-terms .th-checkbox-label input[type="checkbox"] {
            margin-top: 0.2rem;
            flex-shrink: 0;
        }

/* ─── NAVEGACIÓN WIZARD ──────────────────────── */
.th-wizard-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    gap: 0.75rem;
}

.th-btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.7rem 1.25rem;
    background: transparent;
    border: 1.5px solid var(--th-border);
    border-radius: var(--th-radius-sm);
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--th-text-soft);
    cursor: pointer;
    transition: var(--th-transition);
}

    .th-btn-back:hover {
        border-color: var(--th-primary);
        color: var(--th-primary);
        background: linear-gradient(135deg, #fce4ec 0%, #f3e5f5 100%);
    }

.th-btn-next {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.7rem 1.5rem;
    background: var(--th-gradient);
    border: none;
    border-radius: var(--th-radius-sm);
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    transition: var(--th-transition);
    box-shadow: 0 4px 14px rgba(233, 30, 140, 0.3);
    margin-left: auto;
}

    .th-btn-next:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(233, 30, 140, 0.4);
    }

/* ─── ERRORES DEL SERVIDOR ───────────────────── */
.th-server-errors {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.1rem;
    background: #fff3f3;
    border: 1px solid #fecaca;
    border-radius: 12px;
    margin-bottom: 1.25rem;
    color: #ef4444;
    font-size: 0.85rem;
}

    .th-server-errors i {
        flex-shrink: 0;
        margin-top: 2px;
    }

    .th-server-errors p {
        margin: 0;
        line-height: 1.5;
    }

        .th-server-errors p + p {
            margin-top: 4px;
        }