/* 
   SISTEMA DE DISEÑO - MUNICIPALIDAD DE CASILDA
   Este archivo centraliza toda la estética visual del portal.
   Tu compañero puede modificar cualquier valor aquí para actualizar todo el sistema.
*/

:root {
    /* Paleta de Colores Base */
    --muni-green: #1E7F5C;
    --muni-green-dark: #166A4C;
    --muni-green-light: #E6F4EE;
    --muni-yellow: #F2B705;
    --muni-yellow-hover: #D89F04;
    --muni-blue: #00adef;
    --muni-dark: #1F2937;
    --muni-text-muted: #6B7280;
    --muni-bg: #F5F7FA;
    --card-bg: #FFFFFF;
    --border-color: #E5E7EB;

    /* Configuración por defecto del Hero */
    --hero-bg: linear-gradient(135deg, var(--muni-green) 0%, var(--muni-green-dark) 100%);
    --hero-border: var(--muni-yellow);
}

/* Estilos de Cuerpo */
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--muni-bg);
    color: var(--muni-dark);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Navbar */
.navbar-custom {
    background-color: var(--muni-green);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 0.8rem 0;
}
.navbar-brand {
    font-weight: 700;
    letter-spacing: -0.5px;
    font-size: 1.4rem;
}
.nav-link {
    font-weight: 500;
    transition: all 0.3s ease;
}
.nav-link:hover {
    color: var(--muni-yellow) !important;
}

/* Botones */
.btn-accent {
    background-color: var(--muni-yellow);
    color: var(--muni-dark);
    font-weight: 700;
    border: none;
    border-radius: 8px;
    padding: 0.6rem 1.5rem;
    transition: all 0.2s ease;
}
.btn-accent:hover {
    background-color: var(--muni-yellow-hover);
    transform: translateY(-1px);
}

.btn-muni {
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: none;
}
.btn-muni-primary {
    background-color: var(--muni-yellow);
    color: var(--muni-dark);
}
.btn-muni-primary:hover {
    background-color: #f7b731;
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(254, 193, 7, 0.3);
}

.btn-muni-pill {
    border-radius: 50px !important;
    padding: 0.6rem 1.5rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    border: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.8rem !important;
    text-decoration: none !important;
    cursor: pointer;
}
.btn-muni-pill:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3) !important;
    color: var(--muni-dark) !important;
}
.btn-muni-outline {
    background: rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: white !important;
}
.btn-muni-outline:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    color: white !important;
}
.btn-muni-pill u {
    text-underline-offset: 4px;
    text-decoration-thickness: 2px;
}

/* Layout */
.content-wrap {
    flex: 1;
}
.footer {
    background-color: var(--muni-green);
    color: #ffffff;
    padding: 2.5rem 0;
    margin-top: auto;
    border-top: 4px solid var(--muni-yellow);
}

/* Cards & Glassmorphism */
.glass-card, .card {
    background: var(--card-bg) !important;
    border-radius: 12px !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05) !important;
    transition: all 0.2s ease !important;
    backdrop-filter: none !important;
}
.glass-card:hover, .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1) !important;
}

/* Stats Pill */
.stat-pill {
    background: white;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    text-decoration: none !important;
    color: inherit !important;
}
.stat-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-color: rgba(0,0,0,0.1);
}
.stat-pill .icon-box {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}
.stat-pill .stat-value {
    font-weight: 800;
    font-size: 1rem;
    line-height: 1;
    color: var(--muni-dark);
}
.stat-pill .stat-label {
    font-size: 0.65rem;
    color: var(--muni-text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Tabs */
.nav-tabs-muni {
    border-bottom: none !important;
    margin-bottom: 1.5rem;
    gap: 8px;
}
.nav-tabs-muni .nav-link {
    border: none !important;
    background: rgba(0, 0, 0, 0.03) !important;
    color: var(--muni-text-muted) !important;
    border-radius: 12px 12px 0 0 !important;
    padding: 0.7rem 1.2rem !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    font-size: 0.7rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}
.nav-tabs-muni .nav-link:hover {
    background: rgba(0, 0, 0, 0.06) !important;
}
.nav-tabs-muni .nav-link.active {
    background: white !important;
    color: #4F46E5 !important;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.03);
    border-bottom: 3px solid #4F46E5 !important;
}

/* Unified Premium Hero System */
.glass-hero, 
.glass-hero-slate, 
.glass-hero-indigo, 
.glass-hero-indigo-staff,
.glass-hero-reclamos,
.glass-hero-capacitaciones,
.glass-hero-feria,
.glass-hero-empleo,
.glass-hero-ocean,
.glass-hero-turnos,
.glass-hero-api {
    min-height: 220px;
    padding: 2rem 0;
    position: relative;
    overflow: visible !important;
    display: flex;
    align-items: center;
    background: var(--hero-bg) !important;
    border-bottom: 5px solid var(--hero-border) !important;
    z-index: 1;
    margin-bottom: 3rem;
    transition: all 0.4s ease;
}

/* Hero Themes (Module Overrides) */
.glass-hero-slate { --hero-bg: linear-gradient(135deg, #1e293b 0%, #0f172a 100%); --hero-border: #64748b; }
.glass-hero-indigo { --hero-bg: linear-gradient(135deg, #3f51b5 0%, #1a237e 100%); --hero-border: var(--muni-yellow); }
.glass-hero-indigo-staff { --hero-bg: linear-gradient(135deg, #283593 0%, #1a237e 100%); --hero-border: #ffca28; }
.glass-hero-reclamos { --hero-bg: linear-gradient(135deg, #4f46e5 0%, #312e81 100%); --hero-border: #f59e0b; }
.glass-hero-capacitaciones { --hero-bg: linear-gradient(135deg, #312e81 0%, #1e1b4b 100%); --hero-border: var(--muni-yellow); }
.glass-hero-feria { --hero-bg: linear-gradient(135deg, #0d9488 0%, #115e59 100%); --hero-border: #f2b705; }
.glass-hero-empleo { --hero-bg: linear-gradient(135deg, #0369a1 0%, #075985 100%); --hero-border: #f59e0b; }
.glass-hero-ocean { --hero-bg: linear-gradient(135deg, #0891b2 0%, #155e75 100%); --hero-border: var(--muni-yellow); }
.glass-hero-turnos { --hero-bg: linear-gradient(135deg, #283593 0%, #1a237e 100%); --hero-border: #ffca28; }
.glass-hero-api { --hero-bg: linear-gradient(135deg, #d97706 0%, #92400e 100%); --hero-border: #FFC107; }

/* Hero Cube Pattern Overlay */
.glass-hero::before, [class^="glass-hero-"]::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url("https://www.transparenttextures.com/patterns/cubes.png");
    opacity: 0.1;
    z-index: -1;
}

/* Animations */
.animate-up {
    animation: slideUp 0.6s ease-out;
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.indicator-badge {
    width: 35px;
    height: 35px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

/* Alert toasts */
.messages {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

/* Responsive Containers */
@media (min-width: 1200px) {
    .container {
        max-width: 95% !important;
        padding-left: 2rem !important;
        padding-right: 2rem !important;
    }
}
.container, .container-fluid {
    transition: max-width 0.3s ease-in-out;
}

/* ==========================================
   ESTILOS DE PÁGINAS ESPECÍFICAS
   (Tu compañero puede mover estos a archivos 
   separados si el proyecto crece mucho)
   ========================================== */

/* HOME PAGE */
.home-hero {
    padding: 6rem 0;
    /* Hero override local */
    --hero-bg: linear-gradient(135deg, var(--muni-green-dark) 0%, var(--muni-green) 100%);
}
.hero-img-container {
    position: relative;
    z-index: 1;
}
.hero-img-container::after {
    content: "";
    position: absolute;
    width: 120%;
    height: 120%;
    top: -10%;
    left: -10%;
    background: radial-gradient(circle, rgba(254, 193, 7, 0.2) 0%, transparent 70%);
    z-index: -1;
    filter: blur(40px);
}
.feature-icon-box {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
    background: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}
.feature-card:hover .feature-icon-box {
    background: var(--muni-yellow);
    color: var(--muni-dark);
    transform: rotate(-10deg) scale(1.1);
}
.step-number {
    font-size: 3rem;
    font-weight: 800;
    color: rgba(0,0,0,0.05);
    position: absolute;
    top: 20px;
    right: 20px;
}
.mt-n5 { margin-top: -3rem !important; }

/* RECLAMOS */
.cv-accordion .accordion-item {
    border: none;
    margin-bottom: 1.5rem;
    background: transparent;
}
.cv-accordion .accordion-button {
    border-radius: 12px !important;
    padding: 1.25rem;
    font-weight: 700;
    background: white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.05);
    color: var(--hero-border, #312e81);
}
.cv-accordion .accordion-button:not(.collapsed) {
    background: var(--hero-bg, #4f46e5);
    color: white;
    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.15);
}
.cv-accordion .accordion-button::after {
    filter: grayscale(1) invert(1);
}
.cv-accordion .accordion-button.collapsed::after {
    filter: none;
}
.cv-accordion .accordion-body {
    background: white;
    border-radius: 0 0 12px 12px;
    border: 1px solid rgba(0,0,0,0.05);
    border-top: none;
    padding: 2.5rem;
}
.floating-card-container {
    margin-top: 0;
    position: relative;
    z-index: 10;
}
