:root {
    --primary-blue: #003366;
    --primary-teal: #14b8a6;
    --secondary-teal: #0d9488;
    --light-bg: #f9fafb;
    --text-gray: #666;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.cuenta-main {
    min-height: 100vh;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #f0fdf4 100%);
    display: flex;
    align-items: center;
    padding: 40px 20px;
    position: relative;
    overflow: hidden;
}

.cuenta-main::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 20s infinite ease-in-out;
}

.cuenta-main::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 51, 102, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 15s infinite ease-in-out reverse;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(30px, -30px) rotate(120deg);
    }

    66% {
        transform: translate(-20px, 20px) rotate(240deg);
    }
}

.cuenta-container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 480px 1fr;
    gap: 0;
    background: var(--white);
    border-radius: 32px;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    position: relative;
    z-index: 1;
}

/* SIDEBAR */
.cuenta-sidebar {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-teal) 100%);
    padding: 60px 48px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.sidebar-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.sidebar-header {
    margin-bottom: 48px;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.logo-icon {
    width: 48px;
    height: 48px;
    stroke: var(--white);
    stroke-width: 2;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
}

.sidebar-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1.2;
    letter-spacing: -1px;
}

.sidebar-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
    line-height: 1.6;
}

/* CAROUSEL DE BENEFICIOS */
.beneficios-carousel {
    position: relative;
    height: 280px;
    margin-bottom: 32px;
}

.beneficio-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    pointer-events: none;
}

.beneficio-slide.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.beneficio-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.beneficio-icon svg {
    width: 40px;
    height: 40px;
    stroke: var(--white);
    stroke-width: 2;
}

.beneficio-titulo {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
}

.beneficio-descripcion {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    line-height: 1.6;
}

.carousel-indicators {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 40px;
}

.indicator-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.indicator-dot.active {
    width: 40px;
    border-radius: 6px;
    background: var(--white);
}

/* STATS */
.sidebar-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 24px 0;
}

.stat-box {
    text-align: center;
}

.stat-number {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 4px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.stat-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* DECORATIONS */
.sidebar-decorations {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.decoration-circle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
}

.circle-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    right: -100px;
    animation: pulse 8s infinite ease-in-out;
}

.circle-2 {
    width: 200px;
    height: 200px;
    bottom: 20%;
    left: -50px;
    animation: pulse 6s infinite ease-in-out 1s;
}

.circle-3 {
    width: 150px;
    height: 150px;
    top: 50%;
    right: -30px;
    animation: pulse 7s infinite ease-in-out 2s;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.3;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.5;
    }
}

/* FORMS SECTION */
.cuenta-forms {
    padding: 60px 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.forms-container {
    max-width: 520px;
    margin: 0 auto;
    width: 100%;
}

/* TOGGLE */
.form-toggle {
    display: flex;
    background: var(--light-bg);
    padding: 6px;
    border-radius: 16px;
    margin-bottom: 40px;
    position: relative;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.08);
}

.toggle-slider {
    position: absolute;
    top: 6px;
    left: 6px;
    width: calc(50% - 6px);
    height: calc(100% - 12px);
    background: linear-gradient(135deg, var(--primary-teal) 0%, var(--secondary-teal) 100%);
    border-radius: 12px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.3);
}

.toggle-btn {
    flex: 1;
    padding: 14px 24px;
    background: transparent;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-gray);
    cursor: pointer;
    transition: color 0.3s ease;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.toggle-btn.active {
    color: var(--white);
}

.toggle-icon {
    width: 20px;
    height: 20px;
    stroke-width: 2;
}

/* ALERTS */
.alert {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    font-size: 0.9375rem;
    font-weight: 500;
    animation: slideDown 0.4s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
}

/* FORM WRAPPER */
.form-wrapper {
    display: none;
    animation: fadeIn 0.5s ease;
}

.form-wrapper.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.form-header {
    margin-bottom: 32px;
}

.form-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.form-description {
    color: var(--text-gray);
    font-size: 1rem;
}

/* FORM */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--primary-blue);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.label-icon {
    width: 18px;
    height: 18px;
    stroke: var(--primary-teal);
}

.input-wrapper {
    position: relative;
}

.form-input,
.form-select {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--primary-blue);
    background: var(--white);
    transition: all 0.3s ease;
    outline: none;
}

.form-input:focus,
.form-select:focus {
    border-color: var(--primary-teal);
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.1);
}

.form-input::placeholder {
    color: #9ca3af;
}

/* PASSWORD WRAPPER */
.password-wrapper {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.toggle-password:hover {
    opacity: 0.7;
}

.eye-icon {
    width: 20px;
    height: 20px;
    stroke: var(--text-gray);
}

/* PASSWORD STRENGTH */
.password-strength {
    margin-top: 8px;
}

.strength-bar {
    height: 4px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.strength-fill {
    height: 100%;
    width: 0;
    transition: width 0.3s ease, background 0.3s ease;
    border-radius: 4px;
}

.strength-text {
    font-size: 0.75rem;
    color: var(--text-gray);
}

/* FORM OPTIONS */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.form-checkbox {
    display: none;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
}

.form-checkbox:checked+.checkbox-custom {
    background: linear-gradient(135deg, var(--primary-teal) 0%, var(--secondary-teal) 100%);
    border-color: var(--primary-teal);
}

.form-checkbox:checked+.checkbox-custom::after {
    content: '✓';
    color: var(--white);
    font-size: 12px;
    font-weight: 700;
}

.checkbox-text {
    font-size: 0.9375rem;
    color: var(--text-gray);
}

.link-forgot,
.link-inline {
    color: var(--primary-teal);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.link-forgot:hover,
.link-inline:hover {
    color: var(--secondary-teal);
    text-decoration: underline;
}

/* CHECKBOX GROUP */
.checkbox-group {
    margin-top: -8px;
}

/* SUBMIT BUTTON */
.btn-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 32px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-teal) 100%);
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 24px rgba(0, 51, 102, 0.25);
    position: relative;
    overflow: hidden;
}

.btn-submit::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-submit:hover::before {
    width: 400px;
    height: 400px;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 51, 102, 0.35);
}

.btn-text {
    position: relative;
    z-index: 1;
}

.btn-arrow {
    width: 20px;
    height: 20px;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.btn-submit:hover .btn-arrow {
    transform: translateX(5px);
}

/* DIVIDER */
.divider {
    position: relative;
    text-align: center;
    margin: 32px 0;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #e5e7eb 50%, transparent 100%);
}

.divider-text {
    position: relative;
    background: var(--white);
    padding: 0 20px;
    color: var(--text-gray);
    font-size: 0.875rem;
    font-weight: 600;
}

/* SOCIAL BUTTONS */
.social-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 24px;
    background: var(--white);
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--primary-blue);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-social:hover {
    border-color: var(--primary-teal);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.social-icon {
    width: 20px;
    height: 20px;
}

.btn-google:hover {
    background: #f8f9fa;
}

.btn-apple {
    background: #000;
    color: var(--white);
    border-color: #000;
}

.btn-apple:hover {
    background: #1a1a1a;
    border-color: #1a1a1a;
}

/* SECURITY BADGE */
.security-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 32px;
    padding: 16px 24px;
    background: var(--light-bg);
    border-radius: 12px;
    font-size: 0.875rem;
    color: var(--text-gray);
    text-align: center;
}

.security-icon {
    width: 20px;
    height: 20px;
    stroke: var(--primary-teal);
    flex-shrink: 0;
}

/* ============================================================
   Acount.css — Adiciones para modal recuperar contraseña,
   OTP inputs, indicador de fortaleza y mejoras generales.
   Agregar al final de tu Acount.css existente.
============================================================ */


/* ── Botón "¿Olvidaste tu contraseña?" como link ── */
.link-forgot {
    background: none;
    border: none;
    padding: 0;
    font-size: 0.85rem;
    color: var(--primary, #6366f1);
    cursor: pointer;
    text-decoration: underline;
    transition: opacity 0.2s;
}

.link-forgot:hover {
    opacity: 0.75;
}


/* ── SVG ojo tachado en toggle password ── */
.eye-icon {
    display: block;
}

.eye-icon.hidden {
    display: none;
}


/* ════════════════════════════════════════
   MODAL BASE
════════════════════════════════════════ */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-overlay.active {
    display: flex;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-box {
    background: #fff;
    border-radius: 1.25rem;
    padding: 2.5rem 2rem;
    width: 100%;
    max-width: 440px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
    animation: slideUp 0.25s ease;
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #9ca3af;
    padding: 0.25rem;
    border-radius: 50%;
    transition: color 0.2s, background 0.2s;
}

.modal-close:hover {
    color: #374151;
    background: #f3f4f6;
}

.modal-close svg {
    width: 1.25rem;
    height: 1.25rem;
    display: block;
}


/* ════════════════════════════════════════
   MODAL STEPS
════════════════════════════════════════ */
.modal-step {
    text-align: center;
}

.modal-step.hidden {
    display: none;
}


/* Ícono central */
.modal-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background: #eef2ff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
}

.modal-icon svg {
    width: 1.75rem;
    height: 1.75rem;
    color: #6366f1;
}

/* Variante WhatsApp */
.modal-icon--whatsapp {
    background: #dcfce7;
}

.modal-icon--whatsapp svg {
    color: #16a34a;
    width: 1.75rem;
    height: 1.75rem;
}

/* Variante candado */
.modal-icon--success {
    background: #f0fdf4;
}

.modal-icon--success svg {
    color: #22c55e;
}

/* Variante check */
.modal-icon--check {
    background: #f0fdf4;
}

.modal-icon--check svg {
    color: #16a34a;
}

.modal-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
}

.modal-description {
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.modal-form-group {
    text-align: left;
    margin-bottom: 1rem;
}

/* Error debajo de campos */
.modal-field-error {
    display: none;
    font-size: 0.8rem;
    color: #ef4444;
    margin-top: 0.35rem;
}


/* ════════════════════════════════════════
   OTP INPUTS
════════════════════════════════════════ */
.otp-inputs {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin: 0.75rem 0;
}

.otp-digit {
    width: 3rem;
    height: 3.5rem;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    border: 2px solid #e5e7eb;
    border-radius: 0.625rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    color: #111827;
    background: #f9fafb;
}

.otp-digit:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
    background: #fff;
}

/* Resaltar dígito relleno */
.otp-digit:not(:placeholder-shown) {
    border-color: #6366f1;
    background: #eef2ff;
}


/* ════════════════════════════════════════
   REENVIAR CÓDIGO
════════════════════════════════════════ */
.resend-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    font-size: 0.85rem;
    color: #6b7280;
}

.resend-timer {}

.link-resend {
    background: none;
    border: none;
    padding: 0;
    color: #6366f1;
    cursor: pointer;
    text-decoration: underline;
    font-size: 0.85rem;
    transition: opacity 0.2s;
}

.link-resend:hover {
    opacity: 0.75;
}

.link-resend.hidden {
    display: none;
}


/* ════════════════════════════════════════
   ESTADO DE CARGA EN BOTONES
════════════════════════════════════════ */
.btn-submit.btn--loading {
    opacity: 0.75;
    cursor: wait;
}


/* ════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════ */
@media (max-width: 480px) {
    .modal-box {
        padding: 2rem 1.25rem;
    }

    .otp-digit {
        width: 2.5rem;
        height: 3rem;
        font-size: 1.25rem;
    }

    .modal-title {
        font-size: 1.2rem;
    }
}

/* RESPONSIVE */
@media (max-width: 1200px) {
    .cuenta-container {
        grid-template-columns: 400px 1fr;
    }

    .cuenta-sidebar {
        padding: 48px 36px;
    }

    .cuenta-forms {
        padding: 48px 60px;
    }
}

@media (max-width: 1024px) {
    .cuenta-container {
        grid-template-columns: 1fr;
    }

    .cuenta-sidebar {
        display: none;
    }

    .cuenta-forms {
        padding: 60px 40px;
    }
}

@media (max-width: 768px) {
    .cuenta-main {
        padding: 20px;
    }

    .cuenta-container {
        border-radius: 24px;
    }

    .cuenta-forms {
        padding: 40px 24px;
    }

    .form-title {
        font-size: 1.75rem;
    }

    .social-buttons {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .cuenta-forms {
        padding: 32px 20px;
    }

    .form-toggle {
        flex-direction: column;
        gap: 8px;
        padding: 8px;
    }

    .toggle-slider {
        display: none;
    }

    .toggle-btn {
        padding: 12px 20px;
        border-radius: 12px;
    }

    .toggle-btn.active {
        background: linear-gradient(135deg, var(--primary-teal) 0%, var(--secondary-teal) 100%);
        color: var(--white);
    }

    .form-options {
        flex-direction: column;
        align-items: flex-start;
    }
}