/* ========================
   PORTAL - EXTENSIONES DE ESTILO
   (usa las variables y animaciones de style.css)
======================== */

/* Link volver al inicio */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.4rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(0,240,255,0.15);
    border-radius: 2px;
    transition: all 0.25s ease;
}

.back-link:hover {
    color: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
    transform: translateX(-3px);
}

/* Encabezados de sección */
.section-title-wrap {
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 1200px;
    margin: 2.5rem auto 0.5rem;
    padding: 0 2rem;
    position: relative;
    z-index: 10;
    animation: fadeInDown 0.8s ease-out;
}

.section-num {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 1px var(--primary);
    opacity: 0.5;
}

.section-title {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    letter-spacing: 3px;
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary-glow);
    white-space: nowrap;
}

.section-title-alt .section-num { -webkit-text-stroke: 1px var(--secondary); }
.section-title-alt .section-title { color: var(--secondary); text-shadow: 0 0 10px var(--secondary-glow); }

.section-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--primary), transparent);
    opacity: 0.4;
}

.section-title-alt .section-line {
    background: linear-gradient(90deg, var(--secondary), transparent);
}

.dashboard-secondary {
    grid-template-columns: repeat(2, 1fr);
    max-width: 800px;
}

@media (max-width: 768px) {
    .dashboard-secondary { grid-template-columns: 1fr; }
    .section-title-wrap { flex-wrap: wrap; }
    .section-title { font-size: 0.75rem; white-space: normal; }
}

/* Botón flotante de WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #25D366, #128C4A);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.9rem;
    text-decoration: none;
    z-index: 500;
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.5), 0 8px 20px rgba(0,0,0,0.5);
    animation: whatsappPulse 2.5s ease-in-out infinite;
    transition: transform 0.25s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

@keyframes whatsappPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(37, 211, 102, 0.5), 0 8px 20px rgba(0,0,0,0.5); }
    50% { box-shadow: 0 0 34px rgba(37, 211, 102, 0.85), 0 8px 20px rgba(0,0,0,0.5); }
}

@media (max-width: 768px) {
    .whatsapp-float { width: 54px; height: 54px; font-size: 1.6rem; bottom: 18px; right: 18px; }
}
