@import url('https://fonts.googleapis.com/css2?family=Sono:wght@300;400;500;600;700&display=swap');

:root {
    /* SEZA Brand Colors */
    --azul-fuerte: #243A85;
    --azul-intermedio: #3065AF;
    --azul-claro: #6491C5;
    --verde: #89C13F;
    --verde-hover: #7AB534;

    /* Light Theme */
    --white: #FFFFFF;
    --bg: #F5F7FB;
    --card-bg: #FFFFFF;
    --text-dark: #1A2240;
    --text-body: #4A5568;
    --text-muted: #8896AB;
    --border: #E2E8F0;
    --border-focus: var(--azul-intermedio);
    --input-bg: #F8FAFC;

    /* Shadows */
    --shadow-card: 0 4px 24px rgba(36, 58, 133, 0.08), 0 1px 3px rgba(0,0,0,0.04);
    --shadow-card-hover: 0 8px 40px rgba(36, 58, 133, 0.12);
    --shadow-btn: 0 2px 8px rgba(36, 58, 133, 0.2);
    --shadow-btn-hover: 0 4px 16px rgba(36, 58, 133, 0.3);

    /* Typography */
    --font-main: 'Sono', monospace;

    /* Sizing */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text-dark);
    font-family: var(--font-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    position: relative;
}

/* ============================================
   BACKGROUND - Soft decorative shapes
   ============================================ */
.background-elements {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    opacity: 1;
}

.blob1 {
    top: -220px;
    right: -120px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle at 30% 40%, rgba(100,145,197,0.18), rgba(100,145,197,0.04));
    border-radius: 50%;
}

.blob2 {
    bottom: -180px;
    left: -150px;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle at 60% 50%, rgba(100,145,197,0.14), rgba(100,145,197,0.02));
    border-radius: 50%;
}

.blob3 {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(137,193,63,0.04), transparent 70%);
    border-radius: 50%;
}

/* ============================================
   TOP BAR - Blue accent line
   ============================================ */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--azul-fuerte), var(--azul-intermedio), var(--azul-claro), var(--verde));
    z-index: 100;
}

/* ============================================
   CONTAINER
   ============================================ */
.container {
    width: 100%;
    max-width: 480px;
    padding: 2.5rem 1.5rem;
    z-index: 10;
    position: relative;
}

/* ============================================
   HEADER
   ============================================ */
.header {
    text-align: center;
    margin-bottom: 1.75rem;
}

.logo-img {
    width: 160px;
    height: auto;
    margin-bottom: 0.75rem;
    mix-blend-mode: multiply;
    animation: logoIn 0.6s ease-out;
}

@keyframes logoIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--azul-fuerte);
}

.logo-text span {
    color: var(--verde);
}

.subtitle {
    color: var(--text-muted);
    margin-top: 0.25rem;
    font-size: 0.88rem;
    font-weight: 400;
    letter-spacing: 0.3px;
}

/* ============================================
   CARD
   ============================================ */
.glass {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 2.25rem 2rem;
    box-shadow: var(--shadow-card);
    position: relative;
    transition: box-shadow 0.3s ease;
}

.glass:hover {
    box-shadow: var(--shadow-card-hover);
}

/* ============================================
   STEPS
   ============================================ */
.step {
    display: none;
    flex-direction: column;
}

.step.active {
    display: flex;
}

.hidden { display: none !important; }

.fade-in {
    animation: fadeUp 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

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

/* ============================================
   TYPOGRAPHY
   ============================================ */
.step h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: var(--azul-fuerte);
}

.description {
    color: var(--text-body);
    font-size: 0.88rem;
    margin-bottom: 1.75rem;
    line-height: 1.6;
    font-weight: 400;
}

/* ============================================
   FORM
   ============================================ */
.form {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.input-group label {
    font-size: 0.78rem;
    color: var(--azul-fuerte);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.input-group small {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 300;
}

input {
    background: var(--input-bg);
    border: 1.5px solid var(--border);
    color: var(--text-dark);
    padding: 0.8rem 1rem;
    border-radius: var(--radius-md);
    font-family: var(--font-main);
    font-size: 0.92rem;
    transition: all 0.2s ease;
    outline: none;
}

input::placeholder {
    color: var(--text-muted);
    font-weight: 300;
}

input:focus {
    border-color: var(--azul-intermedio);
    box-shadow: 0 0 0 3px rgba(48, 101, 175, 0.12);
    background: var(--white);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.25rem;
    border-radius: var(--radius-md);
    font-family: var(--font-main);
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: all 0.25s ease;
}

.btn:active { transform: scale(0.97); }

/* Primary - Blue */
.btn-primary {
    background: linear-gradient(135deg, var(--azul-fuerte), var(--azul-intermedio));
    color: var(--white);
    box-shadow: var(--shadow-btn);
}

.btn-primary:hover {
    box-shadow: var(--shadow-btn-hover);
    transform: translateY(-1px);
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 200%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::after {
    left: 100%;
}

/* Secondary */
.btn-secondary {
    background: var(--input-bg);
    border: 1.5px solid var(--border);
    color: var(--azul-fuerte);
}

.btn-secondary:hover {
    background: var(--white);
    border-color: var(--azul-intermedio);
    box-shadow: 0 2px 8px rgba(36,58,133,0.1);
}

/* WhatsApp */
.btn-whatsapp {
    background: linear-gradient(135deg, #25D366, #1EBE5D);
    color: var(--white);
    box-shadow: 0 2px 10px rgba(37, 211, 102, 0.25);
}

.btn-whatsapp:hover {
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35);
    transform: translateY(-1px);
}

/* Back */
.btn-back {
    align-self: flex-start;
    background: transparent;
    padding: 0;
    color: var(--text-muted);
    font-size: 0.82rem;
    margin-bottom: 1.25rem;
    font-weight: 400;
}

.btn-back:hover { color: var(--azul-intermedio); }

.icon { width: 18px; height: 18px; }

.note {
    text-align: center;
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: -0.25rem;
    font-weight: 300;
}

/* Note Highlight */
.note-highlight {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 1rem;
    background: rgba(48, 101, 175, 0.06);
    border: 1px solid rgba(48, 101, 175, 0.15);
    border-radius: var(--radius-md);
    margin-top: 0.25rem;
}

.note-highlight .note-icon {
    width: 18px;
    height: 18px;
    color: var(--azul-intermedio);
    flex-shrink: 0;
}

.note-highlight p {
    font-size: 0.82rem;
    color: var(--text-body);
    line-height: 1.4;
}

.note-highlight strong {
    color: var(--azul-fuerte);
}

/* ============================================
   SUCCESS ICON
   ============================================ */
.success-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(137, 193, 63, 0.1);
    border: 2px solid rgba(137, 193, 63, 0.25);
    color: var(--verde);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    animation: pulseGreen 2.5s ease-in-out infinite;
}

.success-icon svg { width: 28px; height: 28px; }

@keyframes pulseGreen {
    0%, 100% { box-shadow: 0 0 0 0 rgba(137,193,63,0.2); }
    50%      { box-shadow: 0 0 0 10px rgba(137,193,63,0); }
}

/* ============================================
   CREDENTIALS BOX
   ============================================ */
.credentials-box {
    background: var(--input-bg);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
    margin-bottom: 1.75rem;
    position: relative;
    overflow: hidden;
}

.credentials-box::before {
    content: '';
    position: absolute;
    top: 0; bottom: 0; left: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--azul-fuerte), var(--verde));
    border-radius: 0 4px 4px 0;
}

.cred-item {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding-left: 0.75rem;
}

.cred-label {
    font-size: 0.68rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
}

.cred-val-box {
    background: var(--white);
    padding: 0.65rem 0.85rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.cred-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--azul-fuerte);
    letter-spacing: 0.3px;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* ============================================
   SECURITY BADGE
   ============================================ */
.security-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding: 0.85rem 1.15rem;
    background: linear-gradient(135deg, rgba(137, 193, 63, 0.06), rgba(36, 58, 133, 0.04));
    border: 1.5px solid rgba(137, 193, 63, 0.2);
    border-radius: var(--radius-md);
}

.shield-icon-wrap {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(137, 193, 63, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.shield-icon-wrap svg {
    width: 18px;
    height: 18px;
    color: var(--verde);
}

.security-text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.security-text strong {
    font-size: 0.82rem;
    color: var(--azul-fuerte);
    font-weight: 600;
}

.security-text span {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 400;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    text-align: center;
    margin-top: 1.75rem;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 300;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 540px) {
    .container {
        padding: 2rem 1rem;
    }

    .glass {
        padding: 1.75rem 1.5rem;
        border-radius: var(--radius-lg);
    }

    .logo-img {
        width: 130px;
    }

    .logo-text {
        font-size: 1.5rem;
    }

    .step h2 {
        font-size: 1.3rem;
    }
}

/* ============================================
   FLOATING SUPPORT WIDGET
   ============================================ */
.floating-support {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
    z-index: 1000;
    text-decoration: none;
}

.support-tooltip {
    background: var(--white);
    color: var(--azul-fuerte);
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(36, 58, 133, 0.15);
    border: 1px solid var(--border);
    opacity: 0.9;
    transition: all 0.25s ease;
    transform: translateY(4px);
}

.floating-support:hover .support-tooltip {
    opacity: 1;
    transform: translateY(0);
}

.support-fab {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--azul-fuerte), var(--azul-intermedio));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(36, 58, 133, 0.3);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.support-fab .icon {
    width: 28px;
    height: 28px;
}

.floating-support:hover .support-fab {
    transform: scale(1.08) translateY(-4px);
    box-shadow: 0 8px 25px rgba(36, 58, 133, 0.4);
}

