:root {
    --voltia-green:  #16a34a;
    --voltia-dark:   #0a1628;
    --voltia-accent: #22d3ee;
    --voltia-light:  #f0fdf4;
}

/* Reset & base */
body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: #f8f9fa;
    padding-top: 56px;
}

body.no-navbar {
    padding-top: 0;
}

/* Brand */
.navbar-brand .brand-icon {
    color: var(--voltia-accent);
}
.brand-voltia {
    font-weight: 800;
    letter-spacing: -0.5px;
}

/* Navbar */
.navbar {
    background-color: var(--voltia-dark) !important;
    border-bottom: 2px solid var(--voltia-green);
}
.navbar .nav-link {
    color: rgba(255,255,255,.8) !important;
    font-size: .9rem;
}
.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: #fff !important;
}
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: var(--voltia-dark);
        border-top: 1px solid rgba(255,255,255,.1);
        margin: 0 -12px;
        padding: .5rem 12px;
    }
}

/* Conector chips (buscar) */
.conector-chip {
    cursor: pointer;
    padding: .2rem .65rem;
    border-radius: 2rem;
    font-size: .75rem;
    border: 1px solid #dee2e6;
    background: #fff;
    color: #495057;
    user-select: none;
    transition: background .15s, border-color .15s, color .15s;
}
.conector-chip.active {
    background: var(--voltia-green);
    border-color: var(--voltia-green);
    color: #fff;
}

/* Cards */
.card {
    border: none;
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
    border-radius: .75rem;
}
.card-header {
    background: #fff;
    border-bottom: 1px solid #e9ecef;
    border-radius: .75rem .75rem 0 0 !important;
    font-weight: 600;
}

/* Buttons */
.btn-voltia {
    background-color: var(--voltia-green);
    color: #fff;
    border: none;
    font-weight: 600;
}
.btn-voltia:hover {
    background-color: #15803d;
    color: #fff;
}
.btn-voltia-outline {
    border: 2px solid var(--voltia-green);
    color: var(--voltia-green);
    background: transparent;
    font-weight: 600;
}
.btn-voltia-outline:hover {
    background-color: var(--voltia-green);
    color: #fff;
}

/* Landing hero */
.hero-section {
    background: linear-gradient(135deg, var(--voltia-dark) 0%, #1e3a5f 100%);
    min-height: 85vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.hero-section::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 60px;
    background: #f8f9fa;
    clip-path: ellipse(55% 100% at 50% 100%);
}
.hero-badge {
    display: inline-block;
    background: rgba(34,211,238,.15);
    border: 1px solid rgba(34,211,238,.4);
    color: var(--voltia-accent);
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .5px;
    padding: .3rem .8rem;
    border-radius: 2rem;
    margin-bottom: 1.2rem;
    text-transform: uppercase;
}
.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    color: #fff;
}
.hero-title .highlight {
    color: var(--voltia-accent);
}
.hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255,255,255,.75);
    max-width: 520px;
}
.hero-stats {
    display: flex;
    gap: 2rem;
    margin-top: 1.5rem;
}
.hero-stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
}
.hero-stat-label {
    font-size: .75rem;
    color: rgba(255,255,255,.6);
    text-transform: uppercase;
    letter-spacing: .5px;
}

/* Feature cards */
.feature-card {
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: .75rem;
    transition: transform .2s, box-shadow .2s;
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,.1);
}
.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin: 0 auto 1rem;
}
.feature-icon.green  { background: #dcfce7; color: var(--voltia-green); }
.feature-icon.blue   { background: #dbeafe; color: #2563eb; }
.feature-icon.yellow { background: #fef9c3; color: #ca8a04; }

/* Steps */
.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--voltia-green);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* Map */
#mapa {
    height: 480px;
    border-radius: .75rem;
    z-index: 1;
}

/* Cargador cards */
.cargador-card {
    transition: transform .15s, box-shadow .15s;
    cursor: pointer;
}
.cargador-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,.12);
}
.cargador-card .card-img-top {
    height: 160px;
    object-fit: cover;
    border-radius: .75rem .75rem 0 0;
}
.nivel-badge-1 { background: #dbeafe; color: #1d4ed8; }
.nivel-badge-2 { background: #dcfce7; color: #166534; }
.nivel-badge-3 { background: #fef3c7; color: #92400e; }

/* Stars */
.stars-display {
    color: #f59e0b;
    font-size: .85rem;
}

/* Auth pages */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--voltia-dark) 0%, #1e3a5f 100%);
    padding: 1rem;
}
.auth-card {
    width: 100%;
    max-width: 420px;
    border-radius: 1rem;
    box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.auth-logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--voltia-dark);
    text-align: center;
    margin-bottom: .25rem;
}
.auth-logo .bi {
    color: var(--voltia-green);
}

/* Dashboard */
.stat-card {
    border-left: 4px solid transparent;
    padding: 1.25rem;
}
.stat-card.green  { border-left-color: var(--voltia-green); }
.stat-card.blue   { border-left-color: #2563eb; }
.stat-card.yellow { border-left-color: #ca8a04; }
.stat-card.red    { border-left-color: #dc2626; }
.stat-card .stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: .25rem;
}
.stat-card .stat-label {
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #6c757d;
}
.stat-card .stat-icon {
    font-size: 2rem;
    opacity: .15;
}

/* Alerts */
.alert { border-radius: .75rem; }

/* Perfil foto */
.foto-perfil-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
}
.foto-perfil-wrapper img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #dee2e6;
}

/* Mensajes */
.msg-bubble {
    max-width: 75%;
    padding: .6rem .9rem;
    border-radius: 1rem;
    margin-bottom: .5rem;
}
.msg-bubble.sent {
    background: var(--voltia-green);
    color: #fff;
    margin-left: auto;
    border-bottom-right-radius: .2rem;
}
.msg-bubble.received {
    background: #e9ecef;
    border-bottom-left-radius: .2rem;
}

/* Notif badge */
.notif-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    font-size: .65rem;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    line-height: 16px;
    border-radius: 8px;
    background: #dc2626;
    color: #fff;
    text-align: center;
}

/* Footer */
.site-footer {
    background: var(--voltia-dark);
    color: rgba(255,255,255,.7);
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}
.site-footer a {
    color: rgba(255,255,255,.6);
    text-decoration: none;
}
.site-footer a:hover {
    color: #fff;
}

/* Utilities */
.text-voltia { color: var(--voltia-green) !important; }
.bg-voltia   { background-color: var(--voltia-green) !important; }

/* Mobile tweaks */
@media (max-width: 576px) {
    .hero-stats { gap: 1.2rem; }
    .hero-stat-value { font-size: 1.2rem; }
    #mapa { height: 320px; }
}
