:root {
    --primary-color: #0056b3; /* Azul municipal */
    --secondary-color: #FFD700; /* Amarillo dorado */
    --accent-color: #003366; /* Azul oscuro */
    --light-color: #ffffff;
    --dark-color: #333333;
    --gray-light: #f5f5f5;
    --gray-medium: #e0e0e0;
    --gray-dark: #777777;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Top Bar */
.top-bar {
    background-color: var(--primary-color);
    color: var(--light-color);
    padding: 8px 0;
    font-size: 0.9rem;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info span {
    margin-right: 15px;
}

.contact-info i {
    margin-right: 5px;
}

.social-links a {
    color: var(--light-color);
    margin-left: 10px;
    font-size: 1rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--secondary-color);
}

/* Header */
.main-header {
    padding: 20px 0;
    background-color: var(--light-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    height: 80px;
    margin-right: 20px;
}

.titles h1 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.titles p {
    color: var(--gray-dark);
    font-size: 1rem;
}

/* Navigation */
.main-nav {
    background-color: var(--primary-color);
}

.nav-menu {
    list-style: none;
    display: flex;
}

.nav-menu li {
    position: relative;
}

.nav-menu li a {
    color: var(--light-color);
    text-decoration: none;
    padding: 15px 20px;
    display: block;
    transition: background-color 0.3s;
}

.nav-menu li a:hover, 
.nav-menu li a.active {
    background-color: var(--accent-color);
    color: var(--secondary-color);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--light-color);
    width: 200px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 100;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
}

.dropdown-menu li a {
    color: var(--dark-color);
    padding: 10px 15px;
}

.dropdown-menu li a:hover {
    background-color: var(--gray-light);
    color: var(--primary-color);
}

.mobile-menu-toggle {
    display: none;
    color: var(--light-color);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 10px;
}

/* Hero Banner */
.hero-banner {
    background: linear-gradient(rgba(0, 86, 179, 0.7), rgba(0, 86, 179, 0.7)), 
                url('../images/banner-principal.jpg') no-repeat center center;
    background-size: cover;
    color: var(--light-color);
    padding: 100px 0;
    text-align: center;
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* Quick Links */
.quick-links {
    padding: 50px 0;
    background-color: var(--gray-light);
}

.quick-links .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.quick-link-item {
    background-color: var(--light-color);
    padding: 30px;
    border-radius: 5px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.quick-link-item:hover {
    transform: translateY(-5px);
}

.quick-link-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.quick-link-item h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* News Section */
.news-section {
    padding: 50px 0;
}

.section-title {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 40px;
    font-size: 2rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 15px auto;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.news-card {
    background-color: var(--light-color);
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-content {
    padding: 20px;
}

.news-date {
    color: var(--gray-dark);
    font-size: 0.9rem;
    display: block;
    margin-bottom: 10px;
}

.news-content h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    margin-top: 15px;
    transition: color 0.3s;
}

.read-more:hover {
    color: var(--accent-color);
}

/* Authorities Section */
.authorities-section {
    padding: 50px 0;
    background-color: var(--gray-light);
}

.authorities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.authority-card {
    background-color: var(--light-color);
    padding: 20px;
    border-radius: 5px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.authority-card img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid var(--secondary-color);
}

.authority-card h3 {
    color: var(--primary-color);
    margin-bottom: 5px;
}

/* Facebook Feed */
.facebook-feed {
    padding: 50px 0;
}

.fb-page {
    margin: 0 auto;
    max-width: 500px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--light-color);
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--dark-color);
    border: 2px solid var(--secondary-color);
}

.btn-secondary:hover {
    background-color: #e6c200;
    border-color: #e6c200;
}

.text-center {
    text-align: center;
}

/* Footer */
.main-footer {
    background-color: var(--primary-color);
    color: var(--light-color);
    padding: 50px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.footer-logo {
    height: 80px;
    margin-bottom: 15px;
}

.footer-column h3 {
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: var(--light-color);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column ul li a:hover {
    color: var(--secondary-color);
}

.contact-info li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.contact-info i {
    margin-right: 10px;
    color: var(--secondary-color);
    width: 20px;
    text-align: center;
}

.footer-social {
    margin-top: 20px;
}

.footer-social a {
    display: inline-block;
    color: var(--light-color);
    background-color: rgba(255,255,255,0.1);
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    margin-right: 10px;
    transition: all 0.3s;
}

.footer-social a:hover {
    background-color: var(--secondary-color);
    color: var(--dark-color);
}

.copyright {
    background-color: var(--accent-color);
    padding: 15px 0;
    margin-top: 30px;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .dropdown-menu {
        position: static;
        width: 100%;
        opacity: 1;
        visibility: visible;
        display: none;
    }
    
    .dropdown:hover .dropdown-menu {
        display: block;
    }
    
    .hero-banner {
        padding: 70px 0;
    }
    
    .hero-content h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 576px) {
    .top-bar .container {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-info {
        margin-bottom: 10px;
    }
    
    .logo-container {
        flex-direction: column;
        text-align: center;
    }
    
    .logo {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .hero-content h2 {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
}
/* Páginas adicionales */
.page-header {
    background: linear-gradient(rgba(0, 86, 179, 0.8), rgba(0, 86, 179, 0.8)), 
                url('../images/banner-interno.jpg') no-repeat center center;
    background-size: cover;
    color: var(--light-color);
    padding: 80px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

/* Noticias */
.news-filters {
    background-color: var(--light-color);
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.news-filters form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
}

.form-group {
    flex: 1;
    min-width: 200px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--gray-medium);
    border-radius: 5px;
}

.news-meta {
    margin-top: 10px;
}

.news-meta span {
    margin-right: 15px;
    font-size: 0.9rem;
}

.news-meta i {
    margin-right: 5px;
}

.news-detail {
    padding: 40px 0;
}

.news-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.featured-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 30px;
}

.news-body {
    line-height: 1.8;
}

.news-body p {
    margin-bottom: 20px;
}

.news-share {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-medium);
}

.share-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.share-buttons a {
    display: inline-block;
    padding: 8px 15px;
    border-radius: 5px;
    color: var(--light-color);
    text-decoration: none;
    font-size: 0.9rem;
}

.btn-facebook {
    background-color: #3b5998;
}

.btn-twitter {
    background-color: #1da1f2;
}

.btn-whatsapp {
    background-color: #25d366;
}

.news-sidebar {
    padding-left: 20px;
    border-left: 1px solid var(--gray-medium);
}

.sidebar-widget {
    margin-bottom: 40px;
}

.sidebar-widget h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--secondary-color);
}

.latest-news li {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed var(--gray-medium);
}

.latest-news li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.latest-news li a {
    color: var(--dark-color);
    text-decoration: none;
    display: block;
    margin-bottom: 5px;
    transition: color 0.3s;
}

.latest-news li a:hover {
    color: var(--primary-color);
}

.latest-news li span {
    font-size: 0.8rem;
    color: var(--gray-dark);
}

.categories li {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.categories li a {
    color: var(--dark-color);
    text-decoration: none;
    transition: color 0.3s;
}

.categories li a:hover {
    color: var(--primary-color);
}

.categories li span {
    background-color: var(--primary-color);
    color: var(--light-color);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
}

.related-news {
    padding: 40px 0;
    background-color: var(--gray-light);
}

.no-results {
    text-align: center;
    padding: 30px;
    background-color: var(--light-color);
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.page-item {
    display: inline-block;
    padding: 8px 15px;
    margin: 0 5px;
    border: 1px solid var(--gray-medium);
    color: var(--dark-color);
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s;
}

.page-item:hover, .page-item.active {
    background-color: var(--primary-color);
    color: var(--light-color);
    border-color: var(--primary-color);
}

/* Servicios */
.services-categories {
    padding: 20px 0;
    background-color: var(--light-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tab-btn {
    padding: 10px 20px;
    background-color: var(--gray-light);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.tab-btn:hover, .tab-btn.active {
    background-color: var(--primary-color);
    color: var(--light-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.service-card {
    background-color: var(--light-color);
    border-radius: 5px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: var(--light-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.online-services-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.online-services .text-content h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.features-list {
    margin: 20px 0;
    list-style: none;
}

.features-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.features-list i {
    color: var(--secondary-color);
    margin-right: 10px;
    font-size: 1.2rem;
}

.online-services .image-content img {
    width: 100%;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.service-requirements {
    padding: 50px 0;
}

.requirements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.requirement-item {
    text-align: center;
    padding: 25px 15px;
    background-color: var(--light-color);
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.requirement-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.requirement-item h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

/* Detalle de servicio */
.service-info {
    margin-bottom: 40px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.info-item {
    background-color: var(--light-color);
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    text-align: center;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.info-item h3 {
    color: var(--primary-color);
    margin-bottom: 5px;
    font-size: 1rem;
}

.service-requirements ul {
    list-style: none;
}

.service-requirements ul li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.service-requirements ul li::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: var(--secondary-color);
    position: absolute;
    left: 0;
}

.procedure-steps {
    background-color: var(--light-color);
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    line-height: 1.8;
}

.service-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 30px;
}

.service-sidebar {
    padding-left: 30px;
    border-left: 1px solid var(--gray-medium);
}

.related-services li {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px dashed var(--gray-medium);
}

.related-services li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.related-services li a {
    color: var(--dark-color);
    text-decoration: none;
    transition: color 0.3s;
}

.related-services li a:hover {
    color: var(--primary-color);
}

.related-services li i {
    margin-right: 8px;
    color: var(--secondary-color);
}

.faq-item {
    margin-bottom: 20px;
}

.faq-item h4 {
    color: var(--primary-color);
    margin-bottom: 5px;
    font-size: 1rem;
}

.contact-widget ul {
    list-style: none;
}

.contact-widget ul li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.contact-widget ul li i {
    color: var(--secondary-color);
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

/* Transparencia */
.transparency-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.transparency-item {
    background-color: var(--light-color);
    padding: 30px 20px;
    border-radius: 5px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s;
    text-decoration: none;
    color: var(--dark-color);
}

.transparency-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    color: var(--primary-color);
}

.transparency-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.transparency-item h3 {
    font-size: 1.2rem;
}

.transparency-section {
    padding: 50px 0;
}

.bg-gray {
    background-color: var(--gray-light);
}

.documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.document-card {
    background-color: var(--light-color);
    padding: 25px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    text-align: center;
}

.document-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.document-card h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.document-card p {
    color: var(--gray-dark);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

/* Contacto */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-form {
    background-color: var(--light-color);
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.contact-form h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--secondary-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: var(--dark-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--gray-medium);
    border-radius: 5px;
    font-family: inherit;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert ul {
    margin: 0;
    padding-left: 20px;
}

.contact-info {
    padding: 30px;
    background-color: var(--primary-color);
    color: var(--light-color);
    border-radius: 5px;
}

.contact-info h2 {
    color: var(--secondary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--secondary-color);
}

.info-item {
    margin-bottom: 25px;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.info-item h3 {
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.contact-map {
    padding: 50px 0;
}

.map-container {
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.contact-offices {
    padding: 50px 0;
    background-color: var(--gray-light);
}

.offices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.office-card {
    background-color: var(--light-color);
    padding: 25px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.office-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.office-card p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.office-card i {
    margin-right: 10px;
    color: var(--secondary-color);
    width: 20px;
    text-align: center;
}

/* Responsive */
@media (max-width: 992px) {
    .news-content {
        grid-template-columns: 1fr;
    }
    
    .news-sidebar {
        padding-left: 0;
        border-left: none;
        padding-top: 40px;
        border-top: 1px solid var(--gray-medium);
    }
    
    .online-services-content {
        grid-template-columns: 1fr;
    }
    
    .online-services .image-content {
        order: -1;
    }
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .service-content {
        grid-template-columns: 1fr;
    }
    
    .service-sidebar {
        padding-left: 0;
        border-left: none;
        padding-top: 40px;
        border-top: 1px solid var(--gray-medium);
    }
    
    .service-actions {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .category-tabs {
        justify-content: center;
    }
    
    .tab-btn {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
}
/* Páginas de Municipalidad */
.authority-detail {
    padding: 40px 0;
}

.authority-profile {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.authority-image {
    border: 5px solid var(--secondary-color);
    border-radius: 5px;
    overflow: hidden;
}

.authority-image img {
    width: 100%;
    height: auto;
    display: block;
}

.authority-info h2 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.position {
    font-size: 1.2rem;
    color: var(--accent-color);
    font-weight: bold;
    margin-bottom: 5px;
}

.period {
    color: var(--gray-dark);
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: var(--light-color);
    border-radius: 50%;
    font-size: 1.2rem;
    transition: all 0.3s;
}

.social-link:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}

.authority-bio {
    margin-bottom: 40px;
}

.authority-bio h3, .authority-message h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 5px;
}

.authority-message blockquote {
    font-style: italic;
    padding: 20px;
    background-color: var(--gray-light);
    border-left: 4px solid var(--secondary-color);
    margin-left: 0;
}

.authority-gallery {
    margin-top: 40px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.gallery-item {
    border: 1px solid var(--gray-medium);
    border-radius: 5px;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.gallery-item p {
    padding: 10px;
    text-align: center;
    background-color: var(--gray-light);
    margin: 0;
}

/* Concejo Municipal */
.council-members {
    padding: 40px 0;
}

.council-intro {
    margin-bottom: 40px;
    text-align: center;
}

.council-intro h2 {
    color: var(--primary-color);
}

.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.member-card {
    border: 1px solid var(--gray-medium);
    border-radius: 5px;
    overflow: hidden;
    transition: transform 0.3s;
}

.member-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.member-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.member-info {
    padding: 15px;
    text-align: center;
}

.member-info h3 {
    color: var(--primary-color);
    margin-bottom: 5px;
}

.position {
    font-weight: bold;
    margin-bottom: 5px;
}

.period {
    color: var(--gray-dark);
    font-size: 0.9rem;
}

.council-functions {
    background-color: var(--gray-light);
    padding: 30px;
    border-radius: 5px;
    margin-bottom: 30px;
}

.council-functions h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.council-functions ul {
    list-style-type: disc;
    padding-left: 20px;
}

.council-functions li {
    margin-bottom: 10px;
}

.council-sessions {
    text-align: center;
    padding: 30px;
    border-top: 2px solid var(--secondary-color);
    border-bottom: 2px solid var(--secondary-color);
}

/* Organigrama */
.organigrama {
    padding: 40px 0;
}

.download-section {
    text-align: center;
    margin-bottom: 40px;
}

.org-chart {
    margin-bottom: 50px;
    position: relative;
}

.org-level-1, .org-level-2, .org-level-3, .org-level-4 {
    display: flex;
    justify-content: center;
    position: relative;
}

.org-level-1 {
    margin-bottom: 30px;
}

.org-level-2 {
    margin-bottom: 20px;
}

.org-level-3 {
    margin-bottom: 40px;
}

.org-position {
    text-align: center;
    padding: 15px;
    border-radius: 5px;
    position: relative;
    margin: 0 10px;
}

.alcalde {
    background-color: var(--primary-color);
    color: var(--light-color);
    width: 200px;
    border: 3px solid var(--secondary-color);
}

.gerencia {
    background-color: var(--accent-color);
    color: var(--light-color);
    width: 180px;
}

.area {
    background-color: var(--gray-light);
    border: 1px solid var(--gray-medium);
    width: 150px;
}

.org-title {
    font-weight: bold;
    margin-bottom: 5px;
}

.org-name {
    font-size: 0.9rem;
}

.org-areas {
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* Conectores */
.org-position:not(.alcalde)::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    width: 2px;
    height: 20px;
    background-color: var(--gray-dark);
    transform: translateX(-50%);
}

.functions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.function-item {
    background-color: var(--light-color);
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.function-item h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 2px solid var(--secondary-color);
}

/* Historia */
.history-timeline {
    padding: 40px 0;
    background-color: var(--gray-light);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background-color: var(--primary-color);
    transform: translateX(-50%);
}

.timeline-event {
    position: relative;
    width: 50%;
    padding: 20px;
    box-sizing: border-box;
}

.timeline-event:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-event:nth-child(even) {
    left: 50%;
    text-align: left;
}

.timeline-year {
    background-color: var(--secondary-color);
    color: var(--dark-color);
    font-weight: bold;
    padding: 5px 15px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 10px;
}

.timeline-content {
    background-color: var(--light-color);
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.timeline-content h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* Símbolos */
.history-symbols {
    padding: 40px 0;
}

.symbols-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.symbol-item {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 20px;
    align-items: center;
}

.symbol-image {
    border: 1px solid var(--gray-medium);
    border-radius: 5px;
    padding: 10px;
    background-color: var(--light-color);
}

.symbol-image img {
    width: 100%;
    height: auto;
    display: block;
}

.symbol-info h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .authority-profile {
        grid-template-columns: 1fr;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-event {
        width: 100%;
        padding-left: 70px;
        padding-right: 20px;
        text-align: left !important;
    }
    
    .timeline-event:nth-child(even) {
        left: 0;
    }
    
    .symbol-item {
        grid-template-columns: 1fr;
    }
    
    .symbol-image {
        max-width: 200px;
        margin: 0 auto 15px;
    }
}

@media (max-width: 576px) {
    .members-grid {
        grid-template-columns: 1fr;
    }
    
    .org-level-3, .org-areas {
        flex-direction: column;
        align-items: center;
    }
    
    .org-position {
        margin-bottom: 20px;
    }
    
    .org-position::before {
        display: none;
    }
}