@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;600;700&display=swap');

:root {
    --primary-color: #0D47A1; /* Azul profesional */
    --secondary-color: #1976D2;
    --accent-color: #42A5F5;
    --success-color: #10B981;
    --danger-color: #EF4444;
    --warning-color: #F59E0B;
    --info-color: #3B82F6;
    --background-light: #F8FAFC;
    --background-card: #FFFFFF;
    --text-color: #1E293B;
    --text-muted: #64748B;
    --border-color: #E2E8F0;
    --card-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --card-shadow-hover: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --card-shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --border-radius: 16px;
    --border-radius-sm: 8px;
    --border-radius-lg: 24px;
    --font-family: 'Open Sans', sans-serif;
    --gradient-primary: linear-gradient(135deg, #0D47A1 0%, #1976D2 100%);
    --gradient-accent: linear-gradient(135deg, #42A5F5 0%, #0D47A1 100%);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    background: linear-gradient(135deg, var(--background-light) 0%, #E2E8F0 100%);
    font-family: var(--font-family);
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Navbar --- */
.navbar {
    background-color: #fff;
    box-shadow: var(--card-shadow);
    transition: background-color 0.3s ease;
}

.navbar-brand img {
    height: 48px;
    transition: transform 0.3s ease;
}
.navbar-brand img:hover {
    transform: scale(1.05);
}

.navbar-nav .nav-link {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color) !important;
    margin: 0 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.navbar-nav .nav-link.active,
.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
    background-color: #E3F2FD;
}

.btn-chihuahua-portal {
    background-color: var(--primary-color);
    color: #fff !important;
    border-radius: var(--border-radius);
    font-weight: 600;
    padding: 0.6rem 1.2rem;
    transition: all 0.3s ease;
    border: none;
}
.btn-chihuahua-portal:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--card-shadow-hover);
}

/* --- Hero/Banner Section --- */
.banner-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: #fff;
    padding: 4rem 0;
    text-align: center;
}
.banner-logo {
    max-height: 80px;
    margin-bottom: 1.5rem;
    filter: brightness(0) invert(1); /* Hace el logo blanco */
}
.banner-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}
.banner-desc {
    font-size: 1.2rem;
    font-weight: 400;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
}

.banner-image-only {
    padding: 0;
}
.banner-image-only img {
    display: block;
    width: 100%;
    height: auto; /* mantiene proporción original */
    /* sin object-fit ni alturas forzadas */
}

/* --- Main Content & Sections --- */
main {
    padding: 1rem 0;
}

.section-container {
    max-width: 1400px;
    margin: 0 auto 2rem auto;
    padding: 0 15px;
    background: var(--background-light);
    overflow: hidden;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: #000;
    text-align: center;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}
.section-subtitle {
    text-align: center;
    color: #64748B;
    margin-bottom: 1.25rem;
    font-weight: 500;
}

/* --- Agent Cards & Filters --- */
.filters-container {
    background-color: #fff;
    padding: 0.75rem;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}
/* Search with clear button */
.search-wrapper { position: relative; display:flex; align-items:center; }
.search-wrapper .form-control { padding-right: 2.25rem; }
.btn-clear { position:absolute; right: .5rem; background: transparent; border: 0; color: #94A3B8; width: 32px; height: 32px; border-radius: 50%; display:flex; align-items:center; justify-content:center; }
.btn-clear:hover { background: #F1F5F9; color: #0f1f3a; }

#searchBar {
    border-radius: var(--border-radius);
    border: 2px solid #E2E8F0;
    padding: 0.75rem 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}
#searchBar:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(66, 165, 245, 0.3);
    outline: none;
}

.filter-pills {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.filter-pill {
    border: 1px solid var(--secondary-color);
    background: #fff;
    color: var(--secondary-color);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.filter-pill:hover {
    background: #E3F2FD;
}
.filter-pill.active {
    background: var(--secondary-color);
    color: #fff;
    box-shadow: 0 2px 6px rgba(25, 118, 210, 0.35);
}

.view-toggle {
    display: flex;
    gap: 0.5rem;
}
.view-toggle-btn {
    border: 1px solid var(--secondary-color);
    background: #fff;
    color: var(--secondary-color);
    font-weight: 600;
    border-radius: var(--border-radius);
    padding: 0.55rem 1rem;
    transition: all 0.2s;
}
.view-toggle-btn.active {
    background: var(--secondary-color);
    color: #fff;
}

/* Group filters and view toggle so they appear as a single control row */
.filters-actions {
    padding: 0.5rem 0.5rem 0 0.5rem;
}
.filters-actions .filter-pills {
    display: flex;
    gap: 0.5rem;
}
.filters-actions .view-toggle { margin-left: 0.5rem; }

/* Tighter spacing inside cards to reduce empty gap */
.agente-card-header {
    padding: 1rem 1rem 0.5rem 1rem;
}
.agente-card-body {
    padding: 0.75rem 1rem;
    margin: 0; /* remove extra margin to reduce white space */
    display: flex;
    flex-direction: column;
    gap: 0.35rem; /* reducir espacio entre secciones */
    padding-bottom: 0.45rem; /* menos espacio antes del footer */
}
.agente-card-vigencia { margin-top: 0; }
.agente-card-footer { padding: 0.85rem 1rem; }

/* Ensure footer sticks to bottom and body uses available space */
.agente-card-custom { display:flex; flex-direction:column; }
.agente-card-custom .agente-card-body { flex:1 1 auto; }

/* Select filters */
.filter-select { min-width: 220px; border-radius: var(--border-radius); border: 2px solid #E2E8F0; padding: .55rem .75rem; }
.filter-select:focus { border-color: var(--accent-color); box-shadow: 0 0 0 3px rgba(66, 165, 245, 0.3); outline: none; }

/* Results count */
.results-count { font-weight: 600; color: #334155; white-space: nowrap; }

@media (max-width: 992px) {
    .filter-select { min-width: 180px; }
    .results-count { width: 100%; text-align: right; }
}

/* Agent Table */
.agentes-table .agente-table-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 1rem;
    flex-shrink: 0;
    background-color: #E2E8F0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.agentes-table .agente-table-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.agentes-table .agente-table-avatar .icon-placeholder {
    font-size: 1.5rem;
    color: #64748B;
}

.agentes-table .table-badge-active {
    background-color: #D4EDDA;
    color: #155724;
}

.agentes-table .table-badge-expired {
    background-color: #F8D7DA;
    color: #721C24;
}

/* Agent Card */
.agente-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    min-width: 0;
}
.agente-card-custom {
    background: linear-gradient(180deg, rgba(255,255,255,0.9) 0%, rgba(245,247,250,0.9) 100%);
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(7, 32, 88, 0.08), 0 4px 10px rgba(7, 32, 88, 0.06);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.28s;
    border: 1px solid rgba(15, 31, 58, 0.06);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}
.agente-card-custom:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 48px rgba(7, 32, 88, 0.12), 0 10px 20px rgba(7, 32, 88, 0.08);
}

/* Top status strip */
.agente-card[data-status="active"] .agente-card-custom::before,
.agente-card[data-status="expired"] .agente-card-custom::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; height: 6px;
    border-radius: 16px 16px 0 0;
}
.agente-card[data-status="active"] .agente-card-custom::before {
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}
.agente-card[data-status="expired"] .agente-card-custom::before {
    background: linear-gradient(90deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.agente-card-header {
    display: flex;
    align-items: center;
    padding: 1.25rem 1.25rem 0.75rem 1.25rem;
    border-bottom: 1px solid rgba(15, 31, 58, 0.04);
    position: relative;
    background: linear-gradient(90deg, rgba(13,71,161,0.04) 0%, rgba(66,165,245,0.02) 100%);
}

.agente-card-avatar {
    width: 72px;
    height: 72px;
    border-radius: var(--border-radius-sm); /* recuadro con esquinas suaves */
    overflow: hidden;
    margin-right: 1.25rem;
    flex-shrink: 0;
    border: 4px solid #ffffff;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12), 0 4px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}
.agente-card[data-status="active"] .agente-card-avatar {
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2), 0 8px 16px rgba(0, 0, 0, 0.12);
}
.agente-card[data-status="expired"] .agente-card-avatar {
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.2), 0 8px 16px rgba(0, 0, 0, 0.12);
}
.agente-card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.agente-card-header .agente-card-avatar { background: linear-gradient(135deg, rgba(13,71,161,0.06), rgba(66,165,245,0.04)); }
.agente-card-header .initial-avatar { box-shadow: none; }
.agente-card-custom:hover .agente-card-avatar img {
    transform: scale(1.1);
}
.initial-avatar {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.agente-card-info {
    flex-grow: 1;
}

.location-status-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
}

/* Enhanced visual hierarchy */
.agente-card-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: #0b3a66; /* tono más profundo */
    margin: 0;
    line-height: 1.3;
    letter-spacing: -0.02em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.detail-label {
    display: block;
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 0.4rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
}

.detail-value {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-color);
    word-break: break-all;
    line-height: 1.4;
}

/* Better spacing and typography */
.agente-card-location {
    font-size: 0.95rem;
    color: #64748b;
    margin: 0;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Status badge improvements */
.agente-card-status {
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Background colors for status badges */
.agente-card[data-status="active"] .agente-card-status {
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
    color: #ffffff;
}
.agente-card[data-status="expired"] .agente-card-status {
    background: linear-gradient(90deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff;
}

/* Force folio and RFC details to be on the same row */
.agente-card-details {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}
.detail-item { flex: 1 1 0; padding: 0.25rem 0; }

/* Card info block border and consistent height */
.agente-card-body {
    padding: 1rem;
    margin: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(250,252,255,0.98) 100%);
    flex: 1 1 auto;
    overflow: auto;
}

/* Fixed card height for consistent grid */
.agente-card-custom {
    height: 100%; /* ocupar la altura de la fila del grid */
}

@media (max-width: 768px) {
    .agente-card-custom { height: auto; }
    .agente-card-details { flex-direction: column; gap: .5rem; }
}

.agente-card-vigencia {
    margin-top: 0;
    padding: 0.9rem;
    border-radius: 10px;
    border: 1px solid rgba(15,31,58,0.06);
    background: linear-gradient(180deg, rgba(255,255,255,0.7), rgba(250,252,255,0.7));
}

/* Vigencia colored accents by status */
.agente-card[data-status="active"] .agente-card-vigencia {
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.6), 0 2px 6px rgba(6,95,70,0.03);
    border-left: 4px solid rgba(16,185,129,0.9);
}
.agente-card[data-status="expired"] .agente-card-vigencia {
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.6), 0 2px 6px rgba(95,6,6,0.03);
    border-left: 4px solid rgba(239,68,68,0.9);
}

.vigencia-header, .vigencia-footer {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #475569;
    margin-bottom: 0.5rem;
    font-weight: 500;
}
.vigencia-footer {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: #64748b;
}

.progress {
    height: 10px;
    border-radius: 10px;
    background-color: rgba(148, 163, 184, 0.2);
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}
.progress .progress-bar {
    border-radius: 10px;
    transition: width 0.6s ease;
    position: relative;
    overflow: hidden;
}
.progress .progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}
@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}
.progress .progress-bar.bg-success {
    background: linear-gradient(90deg, #10b981 0%, #059669 100%) !important;
}
.progress .progress-bar.bg-danger {
    background: linear-gradient(90deg, #ef4444 0%, #dc2626 100%) !important;
}

.agente-card-footer {
    padding: 0.45rem 0.75rem; /* reducir espacio vertical */
    border-top: 1px solid rgba(15,31,58,0.04);
    background: linear-gradient(180deg, rgba(250,252,255,0.6), rgba(245,247,250,0.6));
}

.btn-view-license {
    background: linear-gradient(90deg, #1976D2 0%, #0D47A1 100%);
    color: #fff;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    box-shadow: 0 4px 12px rgba(13, 71, 161, 0.3);
    position: relative;
    overflow: hidden;
    padding: 0.45rem 0.6rem; /* menos altura del botón */
    font-size: 0.95rem;
}
.btn-view-license::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}
.btn-view-license:hover::before {
    left: 100%;
}
.btn-view-license:hover {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0d47a1 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(13, 71, 161, 0.4);
}

/* Responsive adjustments for agent cards */
@media (max-width: 768px) {
    .agente-card-custom {
        margin-bottom: 1rem;
    }
    
    .agente-card-header {
        padding: 1rem;
    }
    
    .agente-card-avatar {
        width: 60px;
        height: 60px;
        border-radius: var(--border-radius-sm);
        margin-right: 1rem;
    }
    
    .agente-card-name {
        font-size: 1.2rem;
    }
    
    .agente-card-body {
        padding: 0.6rem 0.8rem;
        gap: 0.35rem;
    }
    
    .detail-item {
        padding: 0.6rem 0.8rem;
    }
    
    .agente-card-footer {
        padding: 1rem;
    }
}

/* Additional modern touches */
.agente-card-custom::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 50%);
    pointer-events: none;
    border-radius: 16px;
}

.agente-card-custom:hover::after {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 50%);
}

/* Smooth animations for card entrance */
/* Card entrance animation */
.agente-card {
    animation: fadeInUp 0.4s ease-out forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}
.info-card {
    background-color: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    padding: 1.25rem;
    height: 100%;
}

.info-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.info-card-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 1rem;
}

.info-card-title i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    margin-right: 0 !important;
}

/* Total license count styling */
.license-count {
    font-weight: 700 !important;
    color: #0066cc;
    font-size: 3rem;
}

.license-count-card {
    text-align: center;
}
.license-count-label {
    font-size: 1.2rem;
    color: #64748B;
    margin-bottom: 0.5rem;
    font-weight: 500;
}
.license-count {
    font-size: 4.5rem;
    font-weight: 800;
    color: var(--primary-color);
}

.municipios-table {
    width: 100%;
    border-collapse: collapse;
}
.municipios-table th, .municipios-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #E2E8F0;
}
.municipios-table th {
    font-weight: 600;
    font-size: 0.9rem;
    color: #475569;
}
.municipios-table td {
    font-weight: 500;
}
.municipios-table .total-row td {
    font-weight: 700;
    color: var(--primary-color);
    border-top: 2px solid var(--primary-color);
}

.tilt-image-wrapper {
    perspective: 1000px;
}
.tilt-image {
    width: 100%;
    max-width: 380px;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow-hover);
    transition: transform 0.4s ease;
}
.tilt-image:hover {
    transform: scale(1.05) rotateY(5deg) rotateX(5deg);
}

/* --- Costs Section --- */
.costs-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}
.costs-table th, .costs-table td {
    padding: 1rem;
    border: 1px solid #E2E8F0;
    text-align: left;
}
.costs-table thead {
    background-color: #F1F5F9;
}
.costs-table th {
    font-weight: 600;
    color: var(--primary-color);
}

/* Costos - Title and subtitle typography */
#costosSection .section-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700; /* Bold */
    text-transform: uppercase;
    font-size: 2.5rem;
    letter-spacing: 0.02em;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#costosSection .section-title i {
    margin: 0 0 0.5rem 0;
    margin-right: 0 !important;
}

#costosSection .section-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600; /* SemiBold */
}

/* Icons above titles inside cards (Costos) */
#costosSection .info-card .info-card-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
}

/* Alternating rows for costs table */
.costs-table tbody tr:nth-child(odd) {
    background-color: #ffffff;
}
.costs-table tbody tr:nth-child(even) {
    background-color: #F8FAFC; /* very light gray */
}

@media (max-width: 768px) {
    #costosSection .section-title {
        font-size: 2rem;
    }
}

/* =============================== */
/* Split intro + 2x2 cards layout  */
/* =============================== */
#costosSection .split-feature,
#infoSection .split-feature {
    display: grid;
    /* Stack the intro full-width on top, cards below */
    grid-template-columns: 1fr;
    gap: 1.25rem;
    align-items: stretch;
}

#costosSection .split-feature-intro,
#infoSection .split-feature-intro {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--card-shadow);
}

    .agente-card-footer {
        padding: 0.85rem;
        border-top: 1px solid #E2E8F0;
        background-color: #F8F9FA;
    }
/* Centrar verticalmente el bloque de intro en Costos */
#costosSection .split-feature-intro { display: flex; flex-direction: column; justify-content: center; }
/* Centrar verticalmente el bloque de intro en Información */
#infoSection .split-feature-intro { display: flex; flex-direction: column; justify-content: center; }

.eyebrow { font-weight: 800; color: var(--secondary-color); letter-spacing: .06em; text-transform: uppercase; font-size: .8rem; display: inline-block; background:#e6f0ff; padding:.35rem .65rem; border-radius:999px; }
.intro-title { font-family:'Montserrat',sans-serif; font-weight:800; color:#0f1f3a; margin:.75rem 0 .5rem; }
/* Center the intro titles for Costos and Información */
#costosSection .split-feature-intro .intro-title,
#infoSection .split-feature-intro .intro-title { text-align: center; }
/* Center the intro text and CTA for Costos and Información */
#costosSection .split-feature-intro .intro-text,
#infoSection .split-feature-intro .intro-text { text-align: center; }
#costosSection .split-feature-intro .intro-cta,
#infoSection .split-feature-intro .intro-cta { margin-left: auto; margin-right: auto; }
.intro-text { color:#475569; }
.intro-cta { display:inline-flex; align-items:center; gap:.5rem; margin-top: .75rem; text-decoration:none; font-weight:700; color: var(--secondary-color); }
.intro-cta:hover { text-decoration: underline; }

#costosSection .feature-grid,
#infoSection .feature-grid { display:grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0.75rem; }

/* On small screens, stack the four cards in a single column for readability */
@media (max-width: 576px) {
    #costosSection .feature-grid,
    #infoSection .feature-grid { grid-template-columns: 1fr; }
}

.feature-card { background:#fff; border:1px solid #e2e8f0; border-radius:16px; padding:1.25rem; box-shadow: var(--card-shadow); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; display:flex; flex-direction:column; }
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--card-shadow-hover); border-color:#bfdbfe; }
.feature-card.accent { background: linear-gradient(180deg,#0d47a1 0%, #1976d2 100%); color:#fff; border:none; }
.feature-card .feature-title { font-weight:800; font-family:'Montserrat',sans-serif; color:#0f1f3a; margin: .25rem 0 .5rem; }
.feature-card.accent .feature-title { color: #0f1f3a; }
.feature-card .feature-icon { width:52px; height:52px; display:flex; align-items:center; justify-content:center; border-radius:12px; background:#e6f0ff; color: var(--primary-color); font-size:1.25rem; margin-bottom:.5rem; }
.feature-card.accent .feature-icon { background: rgba(255,255,255,.15); color:#fff; }
.feature-card .feature-desc { color:#64748b; margin: .25rem 0 0; }
.feature-card.accent .feature-desc { color: rgba(255,255,255,.9); }
.feature-card .feature-list { margin:0; padding:0 0 0 1rem; }
.feature-card .feature-list li { margin:.25rem 0; }
.price-badge { display:inline-block; margin-top:.75rem; background:#fff; color:#0f1f3a; font-weight:800; padding:.35rem .65rem; border-radius:999px; box-shadow: var(--card-shadow); }
.price-badge.alt { background:#0b1e3a; color:#fff; }
.price-badge span { font-size:1.1rem; }

/* Legibilidad en tarjetas accent */
.feature-card.accent .feature-list li { color: rgba(255,255,255,.95); }
.feature-card.accent .feature-desc { color: rgba(255,255,255,.95); }

@media (max-width: 992px) {
    #costosSection .split-feature,
    #infoSection .split-feature { grid-template-columns: 1fr; }
}

/* Igualar altura de tarjetas dentro del grid en Info */
#infoSection .feature-grid { align-items: stretch; }
#infoSection .feature-card { height: 100%; }

/* --- Footer --- */
.footer {
    background-color: #1E293B;
    color: #E2E8F0;
    font-size: 0.9rem;
    padding-top: 2rem;
}
.footer-top {
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #334155;
}
.footer-title {
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}
.footer-links a {
    color: #94A3B8;
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.3s;
}
.footer-links a:hover {
    color: #fff;
    text-decoration: underline;
}
.footer-bottom { padding: 1.25rem 0; }
.social-icons a {
    color: #94A3B8;
    font-size: 1.5rem;
    margin: 0 0.75rem;
    transition: color 0.3s;
}
.social-icons a:hover {
    color: #fff;
}

@media (max-width: 768px) {
    .banner-title {
        font-size: 2rem;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .filters-container { flex-direction: column; align-items: stretch; }
    .results-count { text-align: left; }
}

/* Grid for agent cards */
.agentes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    grid-auto-rows: 1fr; /* make rows equal height so cards match */
    gap: 1.25rem;
    align-items: stretch;
    width: 100%;
    margin-top: 1rem;
}

/* ========================= */
/* Subnav with icons (under banner) */
/* ========================= */
.subnav-icons {
    background: #0b1e3a; /* deep navy bar like reference */
    color: #fff;
    position: relative;
    z-index: 5;
    margin-top: 0; /* ensure no gap */
}
.subnav-icons.no-gap { margin-top: 0; }
.subnav-list {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0.75rem 0;
    overflow-x: auto;
}
.subnav-list li a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #e2e8f0;
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    transition: background .2s, color .2s, transform .2s;
}
.subnav-list li a i {
    color: #60a5fa; /* light blue icons */
}
.subnav-list li a:hover {
    background: rgba(255,255,255,.08);
    color: #fff;
    transform: translateY(-1px);
}

.subnav-actions { display:flex; gap:.5rem; align-items:center; flex-wrap:wrap; }
.btn-subnav-portal,
.btn-subnav-admin {
    background: #1e40af;
    color: #fff;
    font-weight: 700;
    border-radius: 999px;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,.15);
    transition: background .2s, transform .2s, box-shadow .2s;
    white-space: nowrap;
    display: inline-flex; align-items: center;
}
.btn-subnav-portal:hover,
.btn-subnav-admin:hover { background: #1b3a9b; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0,0,0,.2); }
.btn-subnav-admin { background:#0ea5e9; border-color: rgba(255,255,255,.25); }
.btn-subnav-admin:hover { background:#0284c7; }

/* ========================= */
/* About / Media collage */
/* ========================= */
.about-card {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 1.25rem;
    box-shadow: var(--card-shadow);
}
.badge-line {
    display: inline-block;
    background: #e6f0ff;
    color: var(--primary-color);
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: .02em;
}
.about-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 2rem;
    margin: 0.75rem 0 0.5rem;
    color: #0f1f3a;
}
.about-text { color: #475569; }
.about-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; margin-top: 1rem; }
.stat { background: #f8fafc; border-radius: 12px; padding: 1rem; text-align: center; }
.stat-value { font-weight: 800; color: var(--primary-color); font-size: 1.25rem; }
.stat-label { font-size: .85rem; color: #64748b; }
.about-signature { margin-top: 1rem; display:flex; align-items:center; gap:.75rem; }
.about-signature .sig-line { height:2px; width:60px; background: var(--accent-color); }
.about-signature .sig-text { color:#334155; font-weight:600; }

.media-collage { position: relative; }
.media-collage .media-item { border-radius: 16px; overflow: hidden; box-shadow: var(--card-shadow); }
.media-collage .media-item.large img { width:100%; height: 300px; object-fit: cover; }
.media-collage img { display:block; width:100%; height:auto; }

@media (max-width: 992px) {
    .about-stats { grid-template-columns: repeat(3, minmax(0,1fr)); }
    .media-collage .media-item.small { display: none; }
}
@media (max-width: 576px) {
    .about-stats { grid-template-columns: 1fr 1fr; }
}

/* ========================= */
/* Services cards */
/* ========================= */
.service-card {
    display: block;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--card-shadow);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    height: 100%;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--card-shadow-hover); border-color: #bfdbfe; }
.service-icon { width: 52px; height: 52px; display:flex; align-items:center; justify-content:center; border-radius: 12px; background:#e6f0ff; color: var(--primary-color); margin-bottom: .75rem; font-size: 1.25rem; }
.service-title { font-weight: 700; color: #0f1f3a; font-family: 'Montserrat', sans-serif; }
.service-desc { color: #64748b; margin: .25rem 0 .75rem; }
.service-link { color: var(--secondary-color); font-weight: 700; }

/* ========================= */
/* Process / Timeline */
/* ========================= */
.process-flow { display:flex; justify-content: space-between; gap: 1rem; position: relative; padding: 1rem 0; }
.process-flow::before { content:""; position:absolute; top: 42px; left: 0; right: 0; height: 3px; background: #e2e8f0; }
.process-step { text-align:center; position: relative; z-index: 1; flex: 1; }
.step-icon { width: 56px; height: 56px; border-radius: 50%; background: #0b1e3a; color: #fff; display:flex; align-items:center; justify-content:center; margin: 0 auto .5rem; box-shadow: var(--card-shadow); }
.step-title { font-weight: 700; color: #0f1f3a; }


/* Full-width alternating section backgrounds (white / very light gray) */
main > section.section-container {
    position: relative;
    z-index: 0; /* create stacking context */
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
}
main > section.section-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100%;
    background-color: #ffffff; /* default for odd */
    z-index: -1; /* place behind section content */
}
main > section.section-container:nth-of-type(even)::before {
    background-color: #F8FAFC; /* light gray */
}

/* Stack icons above all section titles */
.section-title {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.section-title i {
    margin: 0 0 0.5rem 0;
}

/* ================================ */
/* Padrón de Agentes (Typography)  */
/* ================================ */
#padronSection .section-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700; /* Bold */
    text-transform: uppercase;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-top: 0.75rem;
}

#padronSection .section-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600; /* SemiBold */
    color: #475569; /* neutral grey for readability */
    margin-bottom: 1rem;
}

/* Separación visual en Padrón para que tarjetas no se encimen */
#padronSection .filters-container {
    margin-top: 0.75rem;
    margin-bottom: 1.25rem;
}

#padronSection .agentes-grid {
    margin-top: 0.5rem;
    clear: both;
}

/* Normal text in Open Sans */
#padronSection p,
#padronSection li,
#padronSection .detail-label,
#padronSection .detail-value,
#padronSection .agente-card-location {
    font-family: 'Open Sans', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    font-weight: 400;
}

/* Card title (agent name) in Montserrat Bold & institutional blue */
#padronSection .agente-card-name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--primary-color);
}

@media (max-width: 768px) {
    #padronSection .section-title {
        font-size: 2rem;
    }
}

/* ESTADÍSTICAS DE LICENCIAS - Large uppercase title */
#licenciasSection .section-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700 !important;
    font-size: 2.5rem;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 1.5rem;
}

/* Icons above titles instead of beside */
.info-card-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 1rem;
}

.info-card-title i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    margin-right: 0 !important;
}

/* Total license count styling */
.license-count {
    font-weight: 700 !important;
    color: #0066cc;
    font-size: 3rem;
}

/* CTA Button styling */
.btn-cta-primary {
    background-color: #0066cc;
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn-cta-primary:hover {
    background-color: #0052a3;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 102, 204, 0.3);
}

/* Table alternating rows */
.municipios-table tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

.municipios-table tbody tr:nth-child(odd) {
    background-color: white;
}

/* Justified text for "Acerca de la Licencia" */
#licenciasSection .col-lg-5 .info-card p {
    text-align: justify;
    line-height: 1.6;
}

/* Center "Acerca de la Licencia" title */
#licenciasSection .col-lg-5 .info-card h3 {
    text-align: center;
}

/* =========================== */
/* Información y Requisitos 🛈 */
/* =========================== */
/* Large uppercase title in Montserrat Bold */
#infoSection .section-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700 !important;
    font-size: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    text-align: center;
}

/* ================================ */
/* Licencias: usar split + cards   */
/* ================================ */
#licenciasSection .split-feature { display:grid; grid-template-columns: 1fr; gap: 1.25rem; }
#licenciasSection .split-feature-intro { background:#fff; border-radius:16px; padding:2rem; box-shadow: var(--card-shadow); display:flex; flex-direction:column; justify-content:center; align-items:center; text-align:center; }
#licenciasSection .feature-grid { display:grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .75rem; }
@media (max-width: 576px) { #licenciasSection .feature-grid { grid-template-columns: 1fr; } }
#licenciasSection .feature-card { height: 100%; }
#licenciasSection .feature-card .feature-title { text-align:left; }
#licenciasSection .feature-card.accent .feature-title { color: #0f1f3a; }
#licenciasSection .intro-title { font-family:'Montserrat',sans-serif; font-weight:800; color:#0f1f3a; }

/* Tokens for legend colors */
.text-primary-legend { color: #60a5fa; }
.text-danger-legend { color: #fca5a5; }
.bg-primary-legend { background: #1d4ed8; }
.bg-danger-legend { background: #ef4444; }

/* Metrics inside intro */
.stats-intro .metrics-grid { display:grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .75rem; margin: .75rem 0 0; width: 100%; }
.metric-card { display:flex; align-items:center; gap:.75rem; background:#f8fafc; border:1px solid #e2e8f0; border-radius:12px; padding:.75rem; }
.metric-content { display:flex; flex-direction:column; align-items:flex-start; }
.metric-label { font-size:.85rem; color:#64748b; font-weight:700; }
.metric-value { font-size:1.25rem; font-weight:800; color:#0f1f3a; line-height:1; }
.metric-sub { font-size:.8rem; color:#64748b; }
.metric-large { font-size:2rem; font-weight:800; color:#fff; }
.metric-legend { display:flex; gap:.75rem; flex-wrap:wrap; margin-top:.5rem; }
.metric-legend i { font-size:.65rem; margin-right:.25rem; }

/* Donut charts using conic-gradient */
.donut { --size: 52px; --track: #e2e8f0; --fill: #1d4ed8; width: var(--size); height: var(--size); border-radius: 50%; display:inline-block; background:
    conic-gradient(var(--fill) calc(var(--pct, 0) * 1%), var(--track) 0);
    position: relative;
}
.donut::after { content:""; position:absolute; inset:6px; background:#fff; border-radius:50%; box-shadow: inset 0 0 0 1px #e2e8f0; }
.donut-danger { --fill: #ef4444; }

/* Slim stacked progress */
.progress-slim { display:flex; width:100%; height:10px; background:#e2e8f0; border-radius:999px; overflow:hidden; margin:.5rem 0; }
.progress-slim-bar { height:100%; }

/* Compact legends */
.legend.compact { display:flex; justify-content:space-between; gap:.5rem; color:#475569; font-weight:600; }
.legend.compact span { display:flex; align-items:center; gap:.35rem; }

/* See more link */
.link-see-more { cursor:pointer; color: var(--secondary-color); font-weight:700; }
.link-see-more:hover { text-decoration: underline; }

/* Stats summary (left card) */
.stats-summary { margin-top:.25rem; }
.stats-total { font-weight:800; color:#0f1f3a; font-size:1.15rem; }
.stats-breakdown { list-style:none; padding:0; margin:.35rem 0 0; display:flex; flex-direction:column; gap:.25rem; font-weight:600; color:#475569; }
.stats-breakdown i { font-size:.65rem; margin-right:.35rem; }

/* Mini stats compact card */
.mini-stats-card { display:flex; align-items:center; justify-content:space-between; gap:.75rem; background:#f8fafc; border:1px solid #e2e8f0; border-radius:12px; padding:.75rem 1rem; margin:.35rem 0 .5rem; }
.mini-stats-item { display:flex; flex-direction:column; align-items:flex-start; min-width: 110px; }
.mini-stats-label { font-size:.8rem; font-weight:700; color:#64748b; display:flex; align-items:center; gap:.35rem; }
.mini-stats-value { font-size:1.25rem; font-weight:800; color:#0f1f3a; line-height:1.1; }
.mini-stats-sub { font-weight:700; color:#475569; font-size:.85rem; margin-left:.25rem; }
.mini-stats-divider { width:1px; align-self:stretch; background:#e2e8f0; }

@media (max-width: 576px) {
    .mini-stats-card { flex-direction:column; align-items:stretch; }
    .mini-stats-divider { width:100%; height:1px; }
}

/* Mini municipios list inside card */
.mini-list { list-style:none; padding:0; margin:.5rem 0 0; }
.mini-list li { display:flex; justify-content:space-between; padding:.35rem .5rem; border-bottom:1px dashed #e2e8f0; font-weight:600; }
.mini-list li:last-child { border-bottom: 0; }
.mini-list-count { background:#e6f0ff; color: var(--primary-color); padding:.1rem .5rem; border-radius:999px; min-width: 2.25rem; text-align:center; }

/* Bullet list with blue check icons */
#infoSection .info-card ul {
    list-style: none;
    padding-left: 0;
    margin-left: 0;
}

#infoSection .info-card ul li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.6rem;
    text-align: justify; /* justify list text as requested */
    line-height: 1.6;
}

#infoSection .info-card ul li::before {
    content: "\f00c"; /* Font Awesome check */
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free";
    font-weight: 900; /* solid */
    position: absolute;
    left: 0;
    top: 0.15rem;
    color: var(--secondary-color);
    font-size: 1.05rem;
}

@media (max-width: 768px) {
    #infoSection .section-title {
        font-size: 2rem;
    }
}

/* ================================================ */
/* Compact spacing for Costos e Información sections */
/* Reduce large whitespace with tighter typography   */
/* ================================================ */
#costosSection.section-container,
#infoSection.section-container { margin-bottom: 1.25rem; }

#costosSection .section-title,
#infoSection .section-title { font-size: 2rem; line-height: 1.15; margin-bottom: .25rem; }

@media (max-width: 768px) {
    #costosSection .section-title,
    #infoSection .section-title { font-size: 1.6rem; }
}

#costosSection .section-subtitle,
#infoSection .section-subtitle { font-size: .95rem; line-height: 1.4; margin-bottom: .75rem; }

#costosSection .split-feature-intro,
#infoSection .split-feature-intro { padding: 1.25rem; }

@media (max-width: 576px) {
    #costosSection .split-feature-intro,
    #infoSection .split-feature-intro { padding: 1rem; }
}

/* Reduce gaps and paddings inside the feature grid */
#costosSection .feature-grid,
#infoSection .feature-grid { gap: .5rem; }

#costosSection .feature-card,
#infoSection .feature-card { padding: 1rem; }

#costosSection .feature-card .feature-icon,
#infoSection .feature-card .feature-icon { width: 44px; height: 44px; font-size: 1.1rem; margin-bottom: .35rem; }

#costosSection .feature-card .feature-title,
#infoSection .feature-card .feature-title { font-size: 1rem; line-height: 1.2; margin: .15rem 0 .35rem; }

#costosSection .feature-card .feature-desc,
#infoSection .feature-card .feature-desc { font-size: .95rem; line-height: 1.45; margin: .15rem 0 0; }

#costosSection .feature-card .feature-list li,
#infoSection .feature-card .feature-list li { margin: .15rem 0; line-height: 1.35; }

/* Intro text tweaks */
#costosSection .split-feature-intro .intro-title,
#infoSection .split-feature-intro .intro-title { font-size: 1.25rem; line-height: 1.2; margin: .5rem 0 .25rem; }

#costosSection .split-feature-intro .intro-text,
#infoSection .split-feature-intro .intro-text { font-size: .95rem; line-height: 1.45; margin: 0; }

#costosSection .price-badge span { font-size: 1rem; }

/* ================================================ */
/* Compact the rest of the site to match the look   */
/* ================================================ */
/* Slightly reduce global section bottom spacing */
.section-container { margin: 0 auto 1.25rem auto; }

/* Padrón de Agentes */
#padronSection .section-title { font-size: 2rem; line-height: 1.15; margin-bottom: .25rem; }
#padronSection .section-subtitle { font-size: .95rem; line-height: 1.4; margin-bottom: .75rem; }

/* Compact grid gap for cards */
.agentes-grid { gap: 1rem; }

/* Compact agent card paddings and typography */
.agente-card-header { padding: .75rem; }
.agente-card-avatar { width: 52px; height: 52px; }
.agente-card-name { font-size: 1.1rem; }
.agente-card-location { font-size: .85rem; }
.agente-card-body { padding: .85rem; gap: .5rem; }
.detail-label { font-size: .7rem; }
.detail-value { font-size: .85rem; }
    .agente-card-footer { padding: .45rem 0.6rem; }
.vigencia-header, .vigencia-footer { font-size: .75rem; }

/* Licencias (estadísticas) */
#licenciasSection .section-title { font-size: 2rem; line-height: 1.15; margin-bottom: .5rem; }
#licenciasSection .feature-grid { gap: .5rem; }
#licenciasSection .feature-card { padding: 1rem; }
#licenciasSection .feature-card .feature-icon { width: 44px; height: 44px; font-size: 1.1rem; margin-bottom: .35rem; }
#licenciasSection .feature-card .feature-title { font-size: 1rem; line-height: 1.2; margin: .15rem 0 .35rem; }
#licenciasSection .feature-card .feature-desc { font-size: .95rem; line-height: 1.45; }

/* Sobre el Registro (About) */
#aboutSection .about-title { font-size: 1.6rem; line-height: 1.15; margin: .5rem 0 .35rem; }
#aboutSection .about-text { font-size: .95rem; line-height: 1.45; }
#aboutSection .about-stats { gap: .75rem; }
#aboutSection .stat { padding: .75rem; }
#aboutSection .stat-value { font-size: 1.15rem; }
#aboutSection .stat-label { font-size: .8rem; }
#aboutSection .media-collage .media-item.large img { height: auto; object-fit: contain; }

.card-header { margin-bottom: 1rem; }
.feature-title { font-size: 1.25rem; font-weight: 600; }
.feature-title i { color: var(--accent-color); }
.feature-list { list-style: none; }
.feature-list li { line-height: 1.5; }
.feature-card { line-height: 2; }
.feature-list li i { color: var(--accent-color); margin-right: 0.5rem; }
.intro-buttons { display: flex; gap: 1rem; margin-top: 1rem; flex-wrap: wrap; justify-content: center; }
.intro-buttons .btn { padding: 0.75rem 2rem; box-shadow: var(--card-shadow); flex: 1; max-width: 400px; }
.feature-card table, .feature-card .table, .feature-card .table tbody, .feature-card .table tr, .feature-card .table td { background: transparent !important; }
.morales-table td { color: white; }
.feature-card h5 { font-weight: 600; margin-top: 1rem; margin-bottom: 0.5rem; }
.card-body { padding: 0.5rem 0; }
.card-footer { text-align: center; padding-top: 1rem; }
.title-content { display: flex; align-items: center; gap: 0.5rem; }
.card-body { padding: 0.5rem 0; }
.card-footer { text-align: center; padding-top: 1rem; }

/* Modern Card Styles */
.card {
    background: var(--background-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-2px);
}

.card-header {
    background: linear-gradient(135deg, #F8FAFC 0%, #E2E8F0 100%);
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.card-body {
    padding: 2rem;
}

.card-footer {
    background: #F8FAFC;
    border-top: 1px solid var(--border-color);
    padding: 1.5rem;
}

/* Admin specific styles */
.modal-content {
    border: none;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--card-shadow-lg);
}

.modal-header {
    background: var(--gradient-primary);
    color: #fff;
    border-bottom: none;
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
    padding: 1.5rem 2rem;
}

.modal-header .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

.btn {
    border-radius: var(--border-radius);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: var(--transition);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    box-shadow: 0 4px 14px 0 rgba(13, 71, 161, 0.3);
}

.btn-primary:hover {
    background: var(--gradient-primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(13, 71, 161, 0.4);
}

.btn-success {
    background: var(--success-color);
}

.btn-success:hover {
    background: #059669;
    transform: translateY(-2px);
}

.btn-danger {
    background: var(--danger-color);
}

.btn-danger:hover {
    background: #DC2626;
    transform: translateY(-2px);
}

.btn-gradient-primary {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 8px 25px -8px rgba(13,71,161,0.5);
    border-radius: var(--border-radius-lg);
}

.btn-gradient-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px -8px rgba(13,71,161,0.6);
}

.form-control, .form-select {
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    transition: var(--transition);
    background: var(--background-card);
}

.form-control:focus, .form-select:focus {
    box-shadow: 0 0 0 3px rgba(13, 71, 161, 0.1);
    border-color: var(--primary-color);
    background: var(--background-card);
}

.form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.banner-admin-wrapper {
    position: relative;
    height: 520px;
    width: 100%;
    background: var(--gradient-primary);
    overflow: hidden;
}

.banner-admin-bg {
    position: absolute;
    inset: 0;
    background: url('../img/LogoGob.png') center center no-repeat;
    background-size: contain;
    filter: brightness(1.2) contrast(1.1);
    opacity: 0.1;
}

.banner-admin-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(255,255,255,0.1) 0%, rgba(0,0,0,0.2) 100%);
}

.banner-floating-card {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(1200px, 95%);
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border-radius: var(--border-radius-lg);
    padding: 3rem;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    animation: bannerFadeIn 0.8s ease-out;
}

@keyframes bannerFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.banner-floating-card h2 {
    font-weight: 700;
    font-size: 2rem;
    margin: 0 0 0.75rem 0;
    color: var(--primary-color);
    letter-spacing: 0.5px;
}

.quick-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.divider-vertical {
    width: 2px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.1));
    align-self: stretch;
    border-radius: 2px;
}

.table {
    background: var(--background-card);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.table thead {
    background: var(--gradient-primary);
    color: #fff;
}

.table thead th {
    border: none;
    font-weight: 600;
    padding: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.875rem;
}

.table tbody tr {
    transition: var(--transition);
}

.table tbody tr:hover {
    background: rgba(13, 71, 161, 0.05);
}

.table-striped > tbody > tr:nth-of-type(odd) > * {
    background-color: rgba(13, 71, 161, 0.02);
}

.table td {
    padding: 1rem;
    border: none;
    vertical-align: middle;
}

.badge-status {
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    padding: 0.5rem 0.75rem;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    text-transform: uppercase;
}

.badge-status.active {
    background: var(--success-color);
    color: #fff;
}

.badge-status.expired {
    background: var(--danger-color);
    color: #fff;
}

.shadow-soft { box-shadow: var(--card-shadow); }
.radius-20 { border-radius: var(--border-radius-lg); }

.site-footer {
    background: linear-gradient(135deg, #F8FAFC 0%, #E2E8F0 100%);
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
    margin-top: 3rem;
    color: var(--text-muted);
}

/* Additional modern utilities */
.container-fluid {
    padding-left: 2rem;
    padding-right: 2rem;
}

.page-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.page-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

.stats-card {
    background: var(--background-card);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    text-align: center;
}

.stats-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-hover);
}

.stats-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stats-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}
