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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 45%, #1d4ed8 75%, #1e40af 100%);
    color: var(--text-primary, #1e293b);
    line-height: 1.6;
    font-size: 16px;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* ===== BLOBS ANIMADOS (mismos que index/login) ===== */
body::before {
    content: '';
    position: fixed;
    width: 700px;
    height: 700px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 50%;
    top: -280px;
    right: -150px;
    animation: heroBlobA 10s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    width: 450px;
    height: 450px;
    background: rgba(245, 158, 11, 0.12);
    border-radius: 50%;
    bottom: -180px;
    left: -120px;
    animation: heroBlobB 12s ease-in-out infinite reverse;
    pointer-events: none;
    z-index: 0;
}

@keyframes heroBlobA {
    0%, 100% { transform: translateY(0) scale(1); }
    50%       { transform: translateY(-40px) scale(1.06); }
}

@keyframes heroBlobB {
    0%, 100% { transform: translateY(0) scale(1); }
    50%       { transform: translateY(30px) scale(1.08); }
}

/* ===== SECCIÓN CENTRADA ===== */
#seccionHelp {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 2rem 1rem;
    position: relative;
    z-index: 1;
}

/* ===== CARD ===== */
.help-card {
    width: 100%;
    max-width: 460px;
    background: var(--surface-color, #ffffff);
    border-radius: var(--radius-xl, 1rem);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    animation: cardIn 0.4s cubic-bezier(.4, 0, .2, 1) both;
}

/* Barra superior degradada — igual que login-form-box */
.help-card::before {
    content: '';
    display: block;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color, #2563eb), var(--accent-color, #f59e0b));
}

@keyframes cardIn {
    from { opacity: 0; transform: translateY(20px) scale(.98); }
    to   { opacity: 1; transform: translateY(0)    scale(1);   }
}

.help-card-inner {
    padding: 2.25rem 2.5rem 2rem;
}

/* ===== LOGO CON ANILLOS ===== */
.help-logo-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 0.75rem;
    position: relative;
}

.help-logo-ring {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.help-logo-ring::before {
    content: '';
    position: absolute;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.06);
    border: 1.5px solid rgba(37, 99, 235, 0.12);
    animation: ringPulse 3.5s ease-in-out infinite;
}

.help-logo-ring::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(245, 158, 11, 0.07);
    animation: ringPulse 3.5s ease-in-out 0.9s infinite;
}

@keyframes ringPulse {
    0%, 100% { transform: scale(1);    opacity: 0.6;  }
    50%       { transform: scale(1.12); opacity: 0.15; }
}

.avatar {
    width: 72px;
    height: 72px;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 6px 18px rgba(37, 99, 235, 0.25));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-8px); }
}

/* ===== MARCA ===== */
.help-brand {
    text-align: center;
    margin-bottom: 1.75rem;
}

.help-brand-name {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--primary-color, #2563eb), var(--accent-color, #f59e0b));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.help-brand-sub {
    font-size: 0.8rem;
    color: var(--text-muted, #94a3b8);
    margin-top: 0.2rem;
    letter-spacing: 0.01em;
}

/* ===== LOADING ===== */
.help-loading {
    text-align: center;
    padding: 2rem 0 1rem;
    color: var(--text-muted, #94a3b8);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.help-spinner {
    display: block;
    width: 28px;
    height: 28px;
    border: 3px solid rgba(37, 99, 235, 0.15);
    border-top-color: var(--primary-color, #2563eb);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.help-loading p {
    margin: 0;
    font-size: 0.875rem;
}

/* ===== CONTENIDO DINÁMICO ===== */
.help-content {
    text-align: left;
}

#helpTitulo {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary, #1e293b);
    margin-bottom: 0.75rem;
    line-height: 1.35;
    letter-spacing: -0.02em;
}

.info {
    color: var(--text-secondary, #64748b);
    font-size: 0.925rem;
    line-height: 1.7;
    margin-bottom: 0.5rem;
}

/* ===== LINK EXTERNO ===== */
.help-link-wrap {
    margin: 1.25rem 0;
}

.help-link-wrap .link-externo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.1rem;
    background: rgba(37, 99, 235, 0.07);
    color: var(--primary-color, #2563eb);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius-md, 0.5rem);
    border: 1px solid rgba(37, 99, 235, 0.15);
    transition: all 0.25s ease;
}

.help-link-wrap .link-externo:hover {
    background: rgba(37, 99, 235, 0.13);
    border-color: var(--primary-color, #2563eb);
    transform: translateY(-1px);
}

.help-link-wrap .link-externo i {
    font-size: 0.75rem;
}

/* ===== CONTACT LINKS ===== */
.help-contact-links {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.help-contact-links .link-externo {
    display: flex;
    justify-content: center;
}

/* ===== PIE — BOTÓN VOLVER ===== */
.pie {
    margin-top: 1.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color, #e2e8f0);
}

.pie a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.8rem 1.5rem;
    background: var(--accent-color, #f59e0b);
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: var(--radius-md, 0.5rem);
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
    letter-spacing: 0.01em;
}

.pie a:hover {
    background: #d97706;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(245, 158, 11, 0.5);
}

.pie a:active {
    transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
    .help-card-inner {
        padding: 1.75rem 1.5rem 1.5rem;
    }

    .avatar {
        width: 60px;
        height: 60px;
    }

    .help-logo-ring::before { width: 90px;  height: 90px;  }
    .help-logo-ring::after  { width: 66px;  height: 66px;  }

    .help-brand-name {
        font-size: 1.3rem;
    }

    #helpTitulo {
        font-size: 1.1rem;
    }

    .info {
        font-size: 0.9rem;
    }
}
