/* ========================================
   INCEGER - Portal de Pagos
   Modern Design System
   ======================================== */

:root {
    --green-50: #f0fdf4;
    --green-100: #dcfce7;
    --green-200: #bbf7d0;
    --green-300: #86efac;
    --green-400: #4ade80;
    --green-500: #22c55e;
    --green-600: #16a34a;
    --green-700: #15803d;
    --green-800: #166534;
    --green-900: #14532d;

    --gold-50: #fefce8;
    --gold-100: #fef9c3;
    --gold-200: #fef08a;
    --gold-300: #fde047;
    --gold-400: #facc15;
    --gold-500: #d4a017;
    --gold-600: #b8860b;
    --gold-700: #92700c;

    --primary: #1a6b1f;
    --primary-light: #22c55e;
    --primary-dark: #14532d;
    --accent: #d4a017;
    --accent-light: #facc15;

    --bg: #f8faf8;
    --bg-alt: #f0fdf4;
    --bg-card: #ffffff;
    --text: #1a1a2e;
    --text-sub: #4a5568;
    --text-muted: #94a3b8;
    --border: #e2e8f0;
    --border-light: #f1f5f9;

    --radius: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-sm: 10px;

    --shadow-sm: 0 1px 3px rgba(0,0,0,.06);
    --shadow: 0 4px 20px rgba(0,0,0,.06);
    --shadow-lg: 0 12px 40px rgba(0,0,0,.1);
    --shadow-green: 0 4px 14px rgba(26,107,31,.2);
    --shadow-gold: 0 4px 14px rgba(212,160,23,.2);

    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --nav-h: 70px;
    --transition: all .25s cubic-bezier(.4,0,.2,1);
}

/* ========== RESET & BASE ========== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        radial-gradient(ellipse at 20% 0%, rgba(22,163,74,.06) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 100%, rgba(212,160,23,.05) 0%, transparent 60%),
        linear-gradient(180deg, #f8faf8 0%, #f0f7f0 100%);
    z-index: -1;
    pointer-events: none;
}

h1, h2, h3, h4, h5, h6 { font-family: var(--font); line-height: 1.2; font-weight: 700; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ========== NAVBAR ========== */
.navbar-inc {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    background: rgba(255,255,255,.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(226,232,240,.5);
    transition: var(--transition);
}
.navbar-inc.scrolled {
    background: rgba(255,255,255,.92);
    box-shadow: 0 1px 20px rgba(0,0,0,.06);
}
.navbar-inc-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}
.navbar-brand-inc {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.navbar-logo {
    height: 42px;
    width: auto;
    transition: var(--transition);
}
.navbar-brand-text {
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--primary);
    letter-spacing: -.01em;
}
.navbar-center-inc {
    flex: 1;
    display: flex;
    justify-content: center;
}
.navbar-tagline {
    font-size: .85rem;
    font-weight: 600;
    color: var(--text-sub);
    padding: 6px 16px;
    border-radius: 20px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
}
.navbar-social {
    display: flex;
    gap: 6px;
    align-items: center;
}
.social-link {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-sub);
    transition: var(--transition);
    font-size: .85rem;
}
.social-link:hover {
    background: var(--green-100);
    color: var(--primary);
}

@media (max-width: 576px) {
    .navbar-social { display: none; }
    .navbar-tagline { font-size: .75rem; padding: 4px 12px; }
    .navbar-brand-text { font-size: 1rem; }
    .navbar-logo { height: 34px; }
}

/* ========== MAIN CONTENT ========== */
.main-content {
    padding-top: calc(var(--nav-h) + 40px);
    padding-bottom: 40px;
    min-height: 60vh;
}
.hero-title {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--text);
    margin-bottom: 8px;
    letter-spacing: -.02em;
}
.hero-title span,
.hero-title .gradient {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-subtitle {
    font-size: 1.05rem;
    color: var(--text-sub);
    max-width: 480px;
    margin: 0 auto 16px;
    font-weight: 400;
}
.hero-title-sm {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary);
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: .95rem; }
    .main-content { padding-top: calc(var(--nav-h) + 24px); }
}

/* ========== INFO NOTICE ========== */
.info-notice {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}
.info-notice p {
    font-size: .88rem;
    color: var(--text-sub);
    margin-bottom: 6px !important;
    line-height: 1.6;
}
.info-notice .badge-official {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    background: var(--green-100);
    color: var(--primary);
    font-size: .78rem;
    font-weight: 600;
    margin-top: 4px;
}
.info-notice .badge-official i {
    font-size: .7rem;
}

/* ========== USER BAR (compact) ========== */
.user-bar {
    max-width: 600px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 1px 4px rgba(0,0,0,.05), 0 0 0 1px rgba(0,0,0,.03);
}
.user-bar-avatar {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), var(--green-600));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    font-size: .85rem;
    flex-shrink: 0;
}
.user-bar-name {
    font-size: .88rem;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.user-bar-sep {
    width: 1px;
    height: 24px;
    background: var(--border);
    flex-shrink: 0;
}
.user-bar-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    flex: 1;
    min-width: 0;
}
.ub-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: .7rem;
    font-weight: 600;
    white-space: nowrap;
}
.ub-active { background: #ecfdf5; color: #15803d; }
.ub-suspended { background: #fefce8; color: #a16207; }
.ub-inactive { background: #fef2f2; color: #b91c1c; }
.ub-default { background: #f1f5f9; color: var(--text-sub); }
.ub-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    flex-shrink: 0;
}
.ub-dot-g { background: #22c55e; }
.ub-dot-r { background: #ef4444; }
.ub-dot-y { background: #eab308; }

@media (max-width: 576px) {
    .user-bar { flex-wrap: wrap; gap: 8px; }
    .user-bar-sep { display: none; }
    .user-bar-pills { width: 100%; }
}

/* ========== BUTTONS ========== */
.btn-inc {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: .9rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font);
    letter-spacing: -.01em;
}
.btn-inc-primary {
    background: linear-gradient(135deg, var(--primary), var(--green-600));
    color: #fff;
    box-shadow: var(--shadow-green);
}
.btn-inc-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(26,107,31,.3);
    color: #fff;
}
.btn-inc-gold {
    background: linear-gradient(135deg, var(--accent), var(--gold-600));
    color: #fff;
    box-shadow: var(--shadow-gold);
}
.btn-inc-gold:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(212,160,23,.3);
    color: #fff;
}
.btn-inc-outline {
    background: var(--bg-card);
    color: var(--text);
    border: 2px solid var(--border);
}
.btn-inc-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* ========== WHATSAPP FLOAT ========== */
.whatsapp-hyperlink {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
}
.btn-whatsapp {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: #fff;
    border: none;
    box-shadow: 0 4px 16px rgba(37,211,102,.3);
    transition: var(--transition);
}
.btn-whatsapp:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 24px rgba(37,211,102,.4);
    color: #fff;
}
.icon-whatsapp {
    font-size: 1.5rem;
}

/* ========== FOOTER ========== */
.footer-inc {
    background: linear-gradient(135deg, #0a1a0a 0%, #14261a 50%, #0a1a0a 100%);
    color: rgba(255,255,255,.85);
    padding: 60px 0 30px;
    margin-top: 60px;
}
.footer-inc h5 {
    font-weight: 700;
    font-size: 1rem;
    color: var(--accent);
    margin-bottom: 16px;
    letter-spacing: .02em;
}
.footer-inc p {
    font-size: .88rem;
    line-height: 1.7;
    color: rgba(255,255,255,.65);
    margin-bottom: 8px !important;
}
.footer-inc ul {
    list-style: none;
    padding: 0;
}
.footer-inc ul li {
    margin-bottom: 8px;
}
.footer-inc ul li a {
    font-size: .88rem;
    color: rgba(255,255,255,.55);
    transition: var(--transition);
    text-decoration: none;
}
.footer-inc ul li a:hover {
    color: var(--accent-light);
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding-top: 20px;
    margin-top: 40px;
    text-align: center;
}
.footer-bottom p {
    font-size: .8rem;
    color: rgba(255,255,255,.35);
}
.footer-logo-bottom {
    height: 30px;
    opacity: .5;
    margin: 0 auto 8px;
}

@media (max-width: 767px) {
    .footer-inc { padding: 40px 0 24px; text-align: center; }
    .footer-inc .col-md-3 { margin-top: 24px; }
}

/* ========== ALERT OVERRIDES ========== */
.alert-light {
    background: var(--bg-card) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius) !important;
}
.alert-danger {
    border-radius: var(--radius) !important;
    border: 1px solid #fecaca !important;
    background: #fef2f2 !important;
    color: #991b1b !important;
}

/* ========== MISC ========== */
.color-white { color: var(--text) !important; }
.text-primary { color: var(--primary) !important; }

hr {
    border: none !important;
    height: 1px;
    background: var(--border);
    margin: 24px 0;
}

/* Transition utilities */
.fade-in {
    animation: fadeIn .5s ease;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Override Bootstrap primary */
.btn-primary {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
}
.btn-primary:hover {
    background-color: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
}
.btn-secondary {
    background-color: var(--text-sub) !important;
    border-color: var(--text-sub) !important;
}

/* Modal styling */
.modal-content {
    border-radius: var(--radius) !important;
    border: 1px solid var(--border) !important;
    box-shadow: var(--shadow-lg) !important;
}
.modal-header {
    border-bottom: 1px solid var(--border) !important;
    padding: 20px 24px !important;
}
.modal-footer {
    border-top: 1px solid var(--border) !important;
    padding: 16px 24px !important;
}
.modal-title {
    font-weight: 700 !important;
}

/* ========== ABONO CARD ========== */
.abono-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    box-shadow: var(--shadow);
    text-align: center;
}
.abono-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--green-100), var(--green-200));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}
.abono-icon i {
    font-size: 1.6rem;
    color: var(--primary);
}
.abono-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 4px;
}
.abono-subtitle {
    font-size: .95rem;
    color: var(--text-sub);
    margin-bottom: 0 !important;
}
.abono-desc {
    font-size: .88rem;
    color: var(--text-muted);
}
.btn-inc-abono {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: .9rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font);
    background: linear-gradient(135deg, var(--accent), var(--gold-600));
    color: #fff;
    box-shadow: var(--shadow-gold);
}
.btn-inc-abono:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(212,160,23,.3);
    color: #fff;
}
