/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background-color: #fff;
    font-size: 16px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Government Top Bar */
.government-bar {
    background: #0f172a;
    color: white;
    font-size: 14px;
    border-bottom: 1px solid #1e293b;
}

.government-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 40px;
    padding: 8px 24px;
}

.gov-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.flag-container {
    width: 24px;
    height: 16px;
    border-radius: 2px;
    flex-shrink: 0;
    background-image: url('https://upload.wikimedia.org/wikipedia/commons/f/fc/Flag_of_Mexico.svg');
    background-size: cover;
    background-position: center;
}

.gov-left span {
    color: #cbd5e1;
    font-weight: 400;
}

.gov-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.accessibility-tools {
    display: flex;
    gap: 4px;
}

.font-size-btn {
    background: transparent;
    border: 1px solid #334155;
    color: #cbd5e1;
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}

.font-size-btn:hover,
.font-size-btn.active {
    background: #1e293b;
    color: white;
    border-color: #475569;
}

.language-select {
    background: transparent;
    border: 1px solid #334155;
    color: #cbd5e1;
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 4px;
    cursor: pointer;
}

/* Main Header */
.header {
    background: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow 0.3s ease;
}

.header.scrolled {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Scroll offset for sections */
section[id] {
    scroll-margin-top: 120px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    object-fit: cover;
}

.logo-text h1 {
    font-size: 20px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 2px;
    line-height: 1.2;
}

.logo-text span {
    font-size: 14px;
    color: #64748b;
    font-weight: 400;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

.search-box {
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    width: 300px;
}

.search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px 12px;
    font-size: 14px;
    outline: none;
}

.search-btn {
    background: #3b82f6;
    border: none;
    color: white;
    padding: 10px 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.search-btn:hover {
    background: #2563eb;
}

.quick-access {
    display: flex;
    gap: 8px;
}

.quick-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #475569;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.2s;
    font-size: 12px;
    text-align: center;
    min-width: 70px;
}

.quick-btn:hover {
    background: #f1f5f9;
    color: #3b82f6;
}

.quick-btn i {
    font-size: 16px;
    margin-bottom: 4px;
}

.report-btn {
    background: #3b82f6;
    color: white;
    padding: 10px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
}

.report-btn:hover {
    background: #2563eb;
}

/* Navigation */
.main-nav {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    position: relative;
}

.nav-container {
    display: flex;
    gap: 28px;
    padding: 0 24px;
    min-width: max-content;
    width: 100%;
    justify-content: flex-start;
    scroll-behavior: smooth;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: #475569;
    padding: 14px 8px;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.2s;
    position: relative;
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-item:hover,
.nav-item.active {
    color: #3b82f6;
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #3b82f6;
}

/* Institutional Section */
.institutional {
    padding: 80px 0;
    background: #f8fafc;
}

.institutional-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.institutional-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 32px;
    text-align: center;
    transition: all 0.3s;
}

.institutional-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1);
    border-color: #3b82f6;
}

.institutional-card .card-icon {
    width: 64px;
    height: 64px;
    background: #f1f5f9;
    color: #3b82f6;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 20px;
}

.institutional-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 16px;
}

.institutional-card p {
    color: #64748b;
    line-height: 1.6;
}

/* Tramites Section */
.tramites {
    padding: 80px 0;
    background: white;
}

.tramites-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 48px;
}

.tramite-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 32px;
    transition: all 0.3s;
}

.tramite-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1);
    border-color: #3b82f6;
}

.tramite-icon {
    width: 56px;
    height: 56px;
    background: #f1f5f9;
    color: #3b82f6;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 20px;
}

.tramite-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 12px;
}

.tramite-card p {
    color: #64748b;
    line-height: 1.5;
    margin: 0;
}

.tramites-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.info-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 32px;
}

.info-box h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 16px;
}

.info-box ul {
    list-style: none;
    padding: 0;
}

.info-box li {
    padding: 8px 0;
    color: #64748b;
    border-bottom: 1px solid #e2e8f0;
}

.info-box li:last-child {
    border-bottom: none;
}

/* Transparency Section */
.transparency {
    padding: 80px 0;
    background: #f8fafc;
}

.transparency-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.transparency-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 32px;
    text-align: center;
    transition: all 0.3s;
}

.transparency-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1);
    border-color: #3b82f6;
}

.transparency-card .card-icon {
    width: 64px;
    height: 64px;
    background: #f1f5f9;
    color: #3b82f6;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 20px;
}

.transparency-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 12px;
}

.transparency-card p {
    color: #64748b;
    line-height: 1.5;
    margin: 0;
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: white;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    margin-bottom: 64px;
}

.contact-info h3 {
    font-size: 24px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 32px;
}

.contact-item {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: #f1f5f9;
    color: #3b82f6;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.contact-details h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
}

.contact-details p {
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

.contact-form {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 40px;
}

.contact-form h3 {
    font-size: 24px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 32px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-weight: 500;
    color: #1e293b;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.hero-text h1 {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    color: white;
}

.hero-subtitle {
    font-size: 20px;
    color: #cbd5e1;
    margin-bottom: 40px;
    line-height: 1.5;
    font-weight: 400;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: #3b82f6;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 14px;
    color: #94a3b8;
    font-weight: 500;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

.btn {
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.btn-primary {
    background: #3b82f6;
    color: white;
}

.btn-primary:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.btn-outline {
    border-color: #475569;
    color: #cbd5e1;
}

.btn-outline:hover {
    background: white;
    color: #1e293b;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
}

.hero-img {
    width: 100%;
    max-width: 400px;
    height: 300px;
    object-fit: cover;
}

.hero-badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(59, 130, 246, 0.9);
    backdrop-filter: blur(8px);
    padding: 12px 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    font-size: 14px;
}

/* Quick Access Bar */
.quick-access-bar {
    background: #f8fafc;
    padding: 40px 0;
    border-bottom: 1px solid #e2e8f0;
}

.quick-items {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.quick-item {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    text-decoration: none;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 16px;
}

.quick-item:hover {
    border-color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.quick-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    color: #3b82f6;
    font-size: 20px;
    flex-shrink: 0;
}

.quick-text h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
}

.quick-text p {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 12px;
}

.section-header p {
    font-size: 18px;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

/* Services Section */
.services {
    padding: 80px 0;
    background: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.service-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 32px;
    transition: all 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    border-color: #3b82f6;
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1);
}

.service-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

.service-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: #f1f5f9;
    color: #3b82f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.service-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.3;
    margin: 0;
}

.service-card p {
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

/* News Section */
.news {
    background: #f8fafc;
    padding: 80px 0;
}

.news-content {
    display: grid;
    grid-template-columns: 2fr 1.2fr;
    gap: 48px;
}

.featured-news-card {
    background: white;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    height: 100%;
}

.featured-news-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 32px;
    background: #f1f5f9;
    border-bottom: 1px solid #e2e8f0;
}

.featured-news-icon {
    width: 48px;
    height: 48px;
    background: #3b82f6;
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.news-category {
    background: #3b82f6;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.featured-news-body {
    padding: 32px;
}

.featured-news-body h2 {
    font-size: 24px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 16px;
    line-height: 1.3;
}

.featured-news-body p {
    color: #64748b;
    margin-bottom: 16px;
    line-height: 1.6;
}

.featured-news-body time {
    font-size: 14px;
    color: #94a3b8;
    font-weight: 500;
}

.news-sidebar h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid #3b82f6;
}

.news-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.news-list-item {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #e2e8f0;
}

.news-list-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.news-list-item:first-child {
    padding-top: 0;
}

.news-item-icon {
    width: 40px;
    height: 40px;
    background: #e2e8f0;
    color: #475569;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.news-item-content h4 {
    font-size: 15px;
    font-weight: 500;
    color: #1e293b;
    margin-bottom: 4px;
    line-height: 1.4;
}

.news-item-content time {
    font-size: 13px;
    color: #94a3b8;
}

/* Statistics Section */
.statistics {
    background: #1e293b;
    color: white;
    padding: 80px 0;
}

.stats-header {
    text-align: center;
    margin-bottom: 48px;
}

.stats-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
}

.emergency-info h3 {
    font-size: 20px;
    margin-bottom: 8px;
    color: #cbd5e1;
}

.emergency-info p {
    font-size: 16px;
    color: #dc2626;
    font-weight: 600;
}

.stats-table {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.period-nav {
    background: #f8fafc;
    padding: 16px 24px;
    border-bottom: 1px solid #e2e8f0;
}

.period-btn {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    font-size: 14px;
}

.stats-table table {
    width: 100%;
    border-collapse: collapse;
}

.stats-table th {
    background: #f8fafc;
    padding: 16px 24px;
    text-align: left;
    font-weight: 600;
    color: #1e293b;
    border-bottom: 1px solid #e2e8f0;
    font-size: 14px;
}

.stats-table td {
    padding: 16px 24px;
    border-bottom: 1px solid #f1f5f9;
    color: #1e293b;
    font-size: 14px;
}

.stats-table td:first-child {
    font-weight: 500;
}

.stats-table td i {
    color: #3b82f6;
    margin-right: 8px;
    width: 16px;
}

.stats-table td:nth-child(2),
.stats-table td:nth-child(3) {
    text-align: center;
    font-weight: 600;
    color: #059669;
}

.stats-note {
    background: #f8fafc;
    padding: 16px 24px;
    color: #64748b;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-top: 1px solid #e2e8f0;
}

.btn-more {
    background: #1e293b;
    color: white;
    border: none;
    padding: 16px 24px;
    width: 100%;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 14px;
}

.btn-more:hover {
    background: #334155;
}

/* Footer */
.footer {
    background: #0f172a;
    color: white;
    padding: 64px 0 24px;
}

.footer-content {
    display: grid;
    grid-template-columns: auto repeat(4, 1fr);
    gap: 48px;
    margin-bottom: 32px;
}

.footer-logo {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.footer-logo img {
    width: 64px;
    height: 64px;
    border-radius: 8px;
}

.anniversary-badge {
    text-align: center;
    background: #3b82f6;
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    font-weight: 600;
}

.years {
    font-size: 16px;
    display: block;
}

.serving {
    font-size: 12px;
    opacity: 0.9;
}

.footer-section h3 {
    color: white;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 8px;
}

.footer-section a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-section a:hover {
    color: #3b82f6;
}

.footer-social {
    border-top: 1px solid #1e293b;
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s;
    background: #1e293b;
    color: #cbd5e1;
}

.social-link:hover {
    background: #3b82f6;
    color: white;
    transform: translateY(-2px);
}

.footer-text {
    text-align: right;
    font-size: 12px;
    color: #64748b;
}

.footer-text p {
    margin-bottom: 4px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .services-grid,
    .institutional-grid,
    .tramites-grid,
    .transparency-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-main {
        grid-template-columns: 1fr;
        gap: 48px;
        text-align: center;
    }
    
    .news-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .quick-items {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .tramites-info {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }
    
    .search-box {
        width: 100%;
    }
    
    .nav-container {
        gap: 16px;
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding: 0 16px 2px;
    }
    
    .nav-container::-webkit-scrollbar {
        display: none;
    }
    
    .nav-item {
        padding: 14px 12px;
        font-size: 13px;
        min-width: max-content;
    }
    
    .hero-text h1 {
        font-size: 36px;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .services-grid,
    .institutional-grid,
    .tramites-grid,
    .transparency-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .secondary-news {
        flex-direction: column;
    }
    
    .secondary-news .news-image {
        width: 100%;
        height: 120px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-social {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .quick-items {
        grid-template-columns: 1fr;
    }
    
    .quick-item {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .tramites-info {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .gov-left span {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 28px;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .stats-table {
        overflow-x: auto;
    }
    
    .government-bar .container {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .gov-right {
        justify-content: center;
    }
}

/* Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-close {
    color: #64748b;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 15px;
    right: 20px;
    cursor: pointer;
    z-index: 1;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.modal-close:hover {
    color: #dc2626;
    background: #f1f5f9;
}

#modal-body {
    padding: 40px;
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #e2e8f0;
}

.modal-icon {
    width: 48px;
    height: 48px;
    background: #3b82f6;
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.modal-title {
    font-size: 24px;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.modal-section {
    margin-bottom: 24px;
}

.modal-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-section p, .modal-section li {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 8px;
}

.modal-list {
    list-style: none;
    padding: 0;
}

.modal-list li {
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-list li:last-child {
    border-bottom: none;
}

.contact-item-modal {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 8px;
    margin-bottom: 12px;
}

.contact-item-modal .contact-icon {
    width: 40px;
    height: 40px;
    background: #3b82f6;
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 10% auto;
        max-height: 70vh;
    }
    
    #modal-body {
        padding: 24px;
    }
    
    .modal-title {
        font-size: 20px;
    }
} 