/* ===== REGISTRO PAGE STYLES ===== */

.registro-section {
    min-height: 100vh;
    padding: 120px 24px 60px;
    background: linear-gradient(180deg, var(--bg-dark) 0%, #080c0a 50%, var(--bg-dark) 100%);
}

.registro-container {
    max-width: 800px;
    margin: 0 auto;
}

/* ===== PROGRESS BAR ===== */
.progress-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 48px;
    padding: 0 20px;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    flex-shrink: 0;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 2px solid var(--border-subtle);
    color: var(--text-gray);
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.4s ease;
    z-index: 2;
}

.progress-step span {
    font-size: 0.7rem;
    color: var(--text-gray-light);
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.progress-step.active .step-circle {
    background: var(--green-primary);
    border-color: var(--green-primary);
    color: white;
    box-shadow: 0 0 20px var(--green-glow);
}

.progress-step.active span {
    color: var(--green-primary);
    font-weight: 600;
}

.progress-step.completed .step-circle {
    background: var(--green-dark);
    border-color: var(--green-primary);
    color: white;
}

.progress-step.completed span {
    color: var(--text-gray);
}

.progress-line {
    flex: 1;
    height: 2px;
    background: var(--border-subtle);
    margin: 0 4px;
    margin-bottom: 24px;
    transition: var(--transition);
    max-width: 80px;
}

.progress-line.active {
    background: var(--green-primary);
    box-shadow: 0 0 8px var(--green-glow);
}

/* ===== FORM STEPS ===== */
.form-step {
    display: none;
    animation: fadeInStep 0.5s ease;
}

.form-step.active {
    display: block;
}

@keyframes fadeInStep {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-header {
    text-align: center;
    margin-bottom: 40px;
}

.step-header h2 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--text-white) 30%, var(--green-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.step-header p {
    color: var(--text-gray);
    font-size: 0.95rem;
}

/* ===== MEMBRESÍA CARDS (STEP 1) ===== */
.membresia-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.membresia-card {
    cursor: pointer;
}

.membresia-card input[type="radio"] {
    display: none;
}

.membresia-card-inner {
    background: var(--bg-card);
    border: 2px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.membresia-card-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--green-primary), var(--green-dark));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.membresia-card-inner:hover {
    border-color: rgba(0, 179, 116, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.membresia-card input:checked+.membresia-card-inner {
    border-color: var(--green-primary);
    background: linear-gradient(180deg, rgba(0, 179, 116, 0.08) 0%, var(--bg-card) 100%);
    box-shadow: 0 0 30px var(--green-glow), 0 10px 40px rgba(0, 0, 0, 0.3);
}

.membresia-card input:checked+.membresia-card-inner::before {
    opacity: 1;
}

.membresia-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--green-light);
    border: 1px solid rgba(0, 179, 116, 0.2);
    font-size: 1.8rem;
    color: var(--green-primary);
    transition: var(--transition);
}

.membresia-card input:checked+.membresia-card-inner .membresia-icon {
    background: rgba(0, 179, 116, 0.2);
    box-shadow: 0 0 24px var(--green-glow);
    transform: scale(1.1);
}

.membresia-card-inner h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 12px;
}

.membresia-card-inner>p {
    font-size: 0.85rem;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 16px;
    min-height: 48px;
}

.membresia-features {
    list-style: none;
    text-align: left;
    margin-bottom: 16px;
}

.membresia-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 0;
    font-size: 0.8rem;
    color: var(--text-gray);
}

.membresia-features li i {
    color: var(--green-primary);
    font-size: 0.7rem;
}

.membresia-select {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    background: var(--green-primary);
    color: white;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    animation: fadeInStep 0.3s ease;
}

.membresia-card input:checked+.membresia-card-inner .membresia-select {
    display: flex;
}

.membresia-note {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: rgba(0, 179, 116, 0.05);
    border: 1px solid rgba(0, 179, 116, 0.1);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--text-gray);
}

.membresia-note i {
    color: var(--green-primary);
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* ===== FORM GRID & INPUTS ===== */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-white);
    letter-spacing: 0.3px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-white);
    font-size: 0.95rem;
    font-family: var(--font-main);
    transition: var(--transition);
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-gray-light);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--green-primary);
    background: rgba(0, 179, 116, 0.05);
    box-shadow: 0 0 0 3px rgba(0, 179, 116, 0.1);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #ff4757;
    background: rgba(255, 71, 87, 0.05);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2300B374' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.form-group select option {
    background: #1a1a2e;
    color: var(--text-white);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-error {
    font-size: 0.75rem;
    color: #ff4757;
    min-height: 16px;
    display: block;
}

.form-hint {
    font-size: 0.75rem;
    color: var(--text-gray-light);
}

/* ===== VIVIENDA FIELDS ===== */
.vivienda-fields {
    margin-top: 32px;
    padding: 24px;
    background: rgba(0, 179, 116, 0.03);
    border: 1px solid rgba(0, 179, 116, 0.1);
    border-radius: var(--radius);
    animation: fadeInStep 0.4s ease;
}

.vivienda-fields-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.vivienda-fields-header i {
    font-size: 1.3rem;
    color: var(--green-primary);
}

.vivienda-fields-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-white);
}

/* ===== DEMOGRAPHICS ===== */
.demograficos-section {
    margin-top: 40px;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
}

.demograficos-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 24px;
}

.demograficos-header i {
    font-size: 1.5rem;
    color: var(--green-primary);
    margin-top: 2px;
}

.demograficos-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 4px;
}

.demograficos-header p {
    font-size: 0.8rem;
    color: var(--text-gray-light);
    line-height: 1.4;
}

/* ===== FOTO UPLOAD ===== */
.foto-upload-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.foto-preview {
    width: 200px;
    height: 240px;
    border-radius: var(--radius);
    border: 2px dashed var(--border-subtle);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--text-gray);
    cursor: pointer;
    transition: var(--transition);
    overflow: hidden;
    background: var(--bg-card);
}

.foto-preview:hover {
    border-color: var(--green-primary);
    color: var(--green-primary);
    background: rgba(0, 179, 116, 0.03);
}

.foto-preview i {
    font-size: 2.5rem;
}

.foto-preview span {
    font-size: 0.85rem;
    text-align: center;
    padding: 0 16px;
}

.foto-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.foto-preview.has-photo {
    border-style: solid;
    border-color: var(--green-primary);
}

.foto-input {
    display: none;
}

.foto-requirements {
    text-align: center;
}

.foto-requirements p {
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-bottom: 8px;
}

.foto-requirements p i {
    color: var(--green-primary);
}

.foto-requirements ul {
    list-style: none;
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.foto-requirements ul li {
    font-size: 0.75rem;
    color: var(--text-gray-light);
    padding: 4px 12px;
    background: var(--bg-card);
    border-radius: 20px;
    border: 1px solid var(--border-subtle);
}

/* ===== PASSWORD ===== */
.password-wrapper {
    position: relative;
}

.password-wrapper input {
    width: 100%;
    padding-right: 48px;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-gray);
    cursor: pointer;
    font-size: 1rem;
    padding: 4px;
    transition: var(--transition);
}

.password-toggle:hover {
    color: var(--green-primary);
}

/* ===== RESUMEN (STEP 5) ===== */
.resumen-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 24px;
}

.resumen-section {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-subtle);
}

.resumen-section:last-child {
    border-bottom: none;
}

.resumen-section h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--green-primary);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.resumen-section h3 i {
    font-size: 0.85rem;
}

.resumen-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 20px;
}

.resumen-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.resumen-item .label {
    font-size: 0.7rem;
    color: var(--text-gray-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.resumen-item .value {
    font-size: 0.9rem;
    color: var(--text-white);
}

.resumen-foto {
    display: flex;
    align-items: center;
    gap: 16px;
}

.resumen-foto img {
    width: 80px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid var(--border-subtle);
}

.resumen-foto span {
    font-size: 0.85rem;
    color: var(--text-gray);
}

/* ===== PAGO INFO ===== */
.pago-info {
    margin-bottom: 24px;
}

.pago-info-inner {
    padding: 24px;
    background: linear-gradient(135deg, rgba(0, 179, 116, 0.08) 0%, rgba(0, 179, 116, 0.02) 100%);
    border: 1px solid rgba(0, 179, 116, 0.2);
    border-radius: var(--radius);
    text-align: center;
}

.pago-amount {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 12px;
    margin-bottom: 12px;
}

.pago-label {
    font-size: 1rem;
    color: var(--text-gray);
}

.pago-price {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--green-primary);
}

.pago-price small {
    font-size: 1rem;
    font-weight: 600;
}

.pago-detail {
    font-size: 0.85rem;
    color: var(--text-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.pago-detail i {
    color: var(--green-primary);
}

/* ===== CHECKBOX ===== */
.form-check {
    margin-bottom: 12px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--text-gray);
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-subtle);
    border-radius: 4px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.checkbox-label input:checked+.checkbox-custom {
    background: var(--green-primary);
    border-color: var(--green-primary);
}

.checkbox-label input:checked+.checkbox-custom::after {
    content: '✓';
    color: white;
    font-size: 0.7rem;
    font-weight: 800;
}

/* ===== STEP BADGE ===== */
.step-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(0, 179, 116, 0.1);
    border: 1px solid rgba(0, 179, 116, 0.2);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--green-primary);
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.step-badge i {
    font-size: 0.85rem;
}

/* ===== STEP NAVIGATION (inside each step) ===== */
.step-navigation {
    margin-top: 32px;
    padding: 24px;
    background: linear-gradient(135deg, rgba(0, 179, 116, 0.06) 0%, rgba(0, 179, 116, 0.02) 100%);
    border: 1px solid rgba(0, 179, 116, 0.15);
    border-radius: var(--radius);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.step-navigation .btn {
    min-width: 160px;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 700;
}

.step-navigation .btn-primary {
    margin-left: auto;
    box-shadow: 0 4px 20px rgba(0, 179, 116, 0.3);
    position: relative;
    overflow: hidden;
}

.step-navigation .btn-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 20px;
    width: 8px;
    height: 8px;
    border-right: 2px solid white;
    border-top: 2px solid white;
    transform: translateY(-50%) rotate(45deg);
    animation: pulseArrow 1.5s ease-in-out infinite;
    opacity: 0;
}

@keyframes pulseArrow {

    0%,
    100% {
        opacity: 0;
        right: 20px;
    }

    50% {
        opacity: 0.6;
        right: 14px;
    }
}

.step-navigation .btn-primary:hover {
    box-shadow: 0 6px 30px rgba(0, 179, 116, 0.5);
    transform: translateY(-2px);
}

/* When only one button (step 1), make it full width */
.step-navigation>div:empty+.btn-primary,
.step-navigation .btn-primary:only-child {
    width: 100%;
    text-align: center;
    padding: 16px 28px;
    font-size: 1.05rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .registro-section {
        padding: 100px 16px 40px;
    }

    .membresia-grid {
        grid-template-columns: 1fr;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .progress-bar {
        padding: 0;
    }

    .progress-step span {
        display: none;
    }

    .step-circle {
        width: 36px;
        height: 36px;
        font-size: 0.8rem;
    }

    .progress-line {
        margin-bottom: 0;
        max-width: 40px;
    }

    .step-header h2 {
        font-size: 1.4rem;
    }

    .resumen-grid {
        grid-template-columns: 1fr;
    }

    .pago-price {
        font-size: 1.8rem;
    }

    .foto-requirements ul {
        flex-direction: column;
        align-items: center;
    }
}

/* ===== NOTIFICATIONS ===== */
.notification {
    position: fixed;
    top: 80px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-white);
    font-size: 0.9rem;
    z-index: 10000;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 400px;
}

.notification.show {
    transform: translateX(0);
}

.notification-error {
    border-color: rgba(255, 71, 87, 0.3);
}

.notification-error i {
    color: #ff4757;
}

.notification-success {
    border-color: rgba(0, 179, 116, 0.3);
}

.notification-success i {
    color: var(--green-primary);
}

.notification button {
    background: none;
    border: none;
    color: var(--text-gray);
    cursor: pointer;
    padding: 4px;
    margin-left: auto;
    transition: var(--transition);
}

.notification button:hover {
    color: var(--text-white);
}