/* Estilos Institucionales - Alcaldía de Dosquebradas */

:root {
    --color-primary: #003366;
    --color-secondary: #0066cc;
    --color-accent: #ff6600;
    --color-text: #333333;
    --color-text-light: #666666;
    --color-bg-light: #f8f9fa;
    --color-border: #dee2e6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--color-text);
    line-height: 1.6;
    font-size: 16px;
}

/* Header */
.header-institucional {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #ffffff;
}

.navbar-brand {
    padding: 0.5rem 0;
}

.logo-header {
    max-height: 60px;
    width: auto;
}

.navbar-nav .nav-link {
    color: var(--color-text) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--color-secondary) !important;
}

.navbar-nav .nav-link.active {
    color: var(--color-secondary) !important;
    font-weight: 600;
}

/* Hero Banner - Carousel */
.hero-banner {
    position: relative;
    min-height: 400px;
}

.hero-banner .carousel {
    min-height: 400px;
}

.hero-banner .carousel-inner {
    min-height: 400px;
}

.hero-banner .carousel-item {
    min-height: 400px;
}

.hero-slide {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 400px;
    width: 100%;
    position: relative;
}

.hero-overlay {
    background: linear-gradient(135deg, rgba(0, 51, 102, 0.85) 0%, rgba(0, 102, 204, 0.75) 100%);
    width: 100%;
    min-height: 400px;
    display: flex;
    align-items: center;
    padding: 3rem 0;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.hero-banner .carousel-control-prev,
.hero-banner .carousel-control-next {
    width: 50px;
    height: 50px;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.hero-banner .carousel-control-prev:hover,
.hero-banner .carousel-control-next:hover {
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.5);
}

.hero-banner .carousel-control-prev {
    left: 20px;
}

.hero-banner .carousel-control-next {
    right: 20px;
}

.hero-banner .carousel-control-prev-icon,
.hero-banner .carousel-control-next-icon {
    width: 20px;
    height: 20px;
}

.min-vh-50 {
    min-height: 400px;
}

.hero-title {
    color: #ffffff;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 1.6;
    opacity: 0.95;
}

/* Section Content */
.section-content {
    padding: 4rem 0;
}

.section-title {
    color: var(--color-primary);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--color-secondary);
}

.content-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--color-text);
}

.content-text p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

.content-text h3 {
    color: var(--color-primary);
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.content-text h4 {
    color: var(--color-primary);
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

/* Service Cards */
.service-card {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    padding: 2rem;
    height: 100%;
    transition: box-shadow 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.service-card h4 {
    color: var(--color-primary);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--color-text-light);
    margin-bottom: 0;
    line-height: 1.6;
}

/* Contact Info */
.contact-info {
    padding: 1.5rem 0;
}

.contact-info h4 {
    color: var(--color-primary);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.contact-info p {
    color: var(--color-text);
    margin-bottom: 0.5rem;
    line-height: 1.8;
}

.contact-info a {
    color: var(--color-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

/* Footer */
.footer-institucional {
    background-color: #1a1a1a !important;
    padding: 3rem 0 1.5rem;
}

.logo-footer {
    max-height: 50px;
    width: auto;
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #ffffff;
}

.footer-institucional ul li {
    margin-bottom: 0.5rem;
}

.footer-institucional a {
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-institucional a:hover {
    color: #ffffff !important;
}

/* Background Colors */
.bg-light {
    background-color: var(--color-bg-light) !important;
}

/* Breadcrumb */
.breadcrumb {
    background-color: transparent;
    padding: 0;
}

.breadcrumb-item a {
    color: var(--color-secondary);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: var(--color-text-light);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-content {
        padding: 3rem 0;
    }
    
    .content-text {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Accessibility */
a:focus,
button:focus {
    outline: 2px solid var(--color-secondary);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .header-institucional,
    .footer-institucional {
        display: none;
    }
    
    .section-content {
        page-break-inside: avoid;
    }
}
