/* 
 * Main stylesheet for La Criolla Municipality Theme
 */

/* --------------------------------------------------------
  Table of Contents:
  1. General Styles
  2. Typography
  3. Header Styles
  4. Navigation
  5. Main Content
  6. Footer
  7. Home Page Sections
  8. Department Pages
  9. Bulletins Pages
  10. Downloads Page
  11. Responsive Styles
  12. HERO SECTION IMPROVEMENTS
  13. FORMULARIO CONTACTO
-------------------------------------------------------- */

/* --------------------------------------------------------
  1. General Styles
-------------------------------------------------------- */
:root {
  --primary-color: #003366;
  --secondary-color: #0066cc;
  --accent-color: #ffc107;
  --light-color: #f8f9fa;
  --dark-color: #212529;
  --text-color: #333333;
  --link-color: #0066cc;
  --gray-light: #e9ecef;
  --gray-medium: #adb5bd;
  --shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

body {
  font-family: 'Open Sans', sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: var(--link-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: #b95323;
  text-decoration: none;
}

.bg-primary {
  background-color: #003366;
}

.bg-secondary {
  background-color: var(--secondary-color) !important;
}

.bg-light {
  background-color: var(--light-color) !important;
}

.text-primary {
  color: var(--primary-color) !important;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: #004d99;
  border-color: #004d99;
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

/* --------------------------------------------------------
  2. Typography
-------------------------------------------------------- */
.section-title {
  position: relative;
  margin-bottom: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}
.section-subtitle {
  color: var(--gray-medium);
  margin-bottom: 2rem;
}

/* --------------------------------------------------------
  3. Header Styles
-------------------------------------------------------- */
.site-header {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.top-bar {
  font-size: 0.9rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.social-links a:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.site-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  margin-bottom: 0;
}

.site-title a {
  color: var(--primary-color);
}

.site-description {
  font-size: 0.9rem;
  color: var(--gray-medium);
  margin-bottom: 0;
}
.logo img {
    max-width: 60px;
    height: auto;
    padding: 7px;
}

/* --------------------------------------------------------
  4. Navigation
-------------------------------------------------------- */
.main-navigation {
  font-family: 'Montserrat', sans-serif;
}

.navbar-nav .nav-link {
  font-weight: 500;
  padding: 0.5rem 1rem;
  color: var(--dark-color);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
  color: var(--primary-color);
}

.navbar-nav .current-menu-item .nav-link {
  color: var(--primary-color);
  font-weight: 700;
}

.search-form-header .search-field {
  border-radius: 20px;
  font-size: 0.9rem;
  padding: 0.25rem 1rem;
}

/* --------------------------------------------------------
  5. Main Content
-------------------------------------------------------- */
.site-main {
  min-height: 500px;
}

.page-header {
  background-color: var(--primary-color);
  color: #fff;
  padding: 2rem;
  border-radius: 10px;
}

.page-title {
  margin-bottom: 0;
}

.entry-header {
  margin-bottom: 2rem;
}

.entry-title {
  margin-bottom: 1rem;
}

.entry-meta {
  font-size: 0.9rem;
  color: var(--gray-medium);
  margin-bottom: 1rem;
}

.entry-meta a {
  color: var(--gray-medium);
}

.entry-meta a:hover {
  color: var(--primary-color);
}

.entry-content {
  margin-bottom: 2rem;
}

.entry-footer {
  font-size: 0.9rem;
  color: var(--gray-medium);
  border-top: 1px solid var(--gray-light);
  border-bottom: 1px solid var(--gray-light);
  padding: 1rem 0;
  margin: 2rem 0;
}

/* --------------------------------------------------------
  6. Footer
-------------------------------------------------------- */
.site-footer {
  background: #036;
}

.footer-heading {
  position: relative;
  font-size: 1.25rem;
  padding-bottom: 0.75rem;
  margin-bottom: 1.25rem;
}

.footer-heading:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--accent-color);
}

.footer-menu {
  padding-left: 0;
}

.footer-menu li {
  margin-bottom: 0.5rem;
}

.footer-menu a {
  color: #ffffff;
  opacity: 0.8;
}

.footer-menu a:hover {
  opacity: 1;
  padding-left: 5px;
}

.footer-contact p {
  margin-bottom: 0.5rem;
}

.hover-opacity-100:hover {
        opacity: 1 !important;
        text-decoration: none;
        background: #8a2be254;
        border-radius: 12px;
        padding: 6px;
    }


/* --------------------------------------------------------
  7. Home Page Sections
-------------------------------------------------------- */
/* News Slider */
.carousel-item {
  height: 500px;
}

.slider-image {
  height: 500px;
  object-fit: cover;
}

.slider-no-image {
  height: 500px;
  background-color: var(--gray-light);
}

.carousel-caption {
  background-color: rgba(0, 0, 0, 0.6);
  padding: 20px;
  border-radius: 5px;
  max-width: 80%;
  margin: 0 auto;
}

.slider-title {
  font-size: 2rem;
}

.slider-excerpt {
  margin-bottom: 1rem;
}

/* Welcome Section */
.welcome-image img {
  width: 100%;
  height: auto;
}

/* Departments Section */
.department-card {
  transition: all 0.3s ease;
}

.department-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow) !important;
}

.department-icon {
  color: var(--primary-color);
}

/* Downloads Section */
.download-item {
  transition: all 0.3s ease;
}

.download-item:hover {
  transform: translateX(5px);
}

.download-link {
  font-size: 0.9rem;
  color: var(--link-color);
}

/* Latest News Section */
.news-card {
  transition: all 0.3s ease;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow) !important;
}

.news-card-img {
  height: 200px;
  overflow: hidden;
}

.news-card-img img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: all 0.5s ease;
}

.news-card:hover .news-card-img img {
  transform: scale(1.05);
}

.news-excerpt {
  font-size: 0.9rem;
}

/* --------------------------------------------------------
  8. Department Pages
-------------------------------------------------------- */
.department-header {
  margin-bottom: 2rem;
}

.department-content {
  margin-bottom: 2rem;
}

.department-sidebar {
  background-color: var(--light-color);
  padding: 1.5rem;
  border-radius: 5px;
}

.department-contact {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--gray-light);
}

/* --------------------------------------------------------
  9. Bulletins Pages
-------------------------------------------------------- */
.bulletin-form {
  background-color: var(--light-color);
  padding: 2rem;
  border-radius: 5px;
  margin-bottom: 2rem;
}

.bulletin-list .table {
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

.bulletin-list .table th {
  background-color: #212529;
  color: white;
}

.bulletin-actions .btn {
  margin-right: 5px;
}

/* --------------------------------------------------------
  10. Downloads Page
-------------------------------------------------------- */
.download-category {
  margin-bottom: 3rem;
}

.download-file {
  display: flex;
  align-items: center;
  padding: 1rem;
  border: 1px solid var(--gray-light);
  border-radius: 5px;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.download-file:hover {
  background-color: var(--gray-light);
  transform: translateX(5px);
}

.download-file-icon {
  margin-right: 1rem;
  font-size: 2rem;
  color: var(--primary-color);
}

.download-file-info {
  flex: 1;
}

.download-file-title {
  margin-bottom: 0.25rem;
}

.download-file-meta {
  font-size: 0.8rem;
  color: var(--gray-medium);
}

.download-file-button {
  margin-left: 1rem;
}

/* --------------------------------------------------------
  11. Responsive Styles
-------------------------------------------------------- */
@media (max-width: 1199.98px) {
  .carousel-item, .slider-image, .slider-no-image {
    height: 450px;
  }
  
  .slider-title {
    font-size: 1.75rem;
  }
}

@media (max-width: 991.98px) {
  .carousel-item, .slider-image, .slider-no-image {
    height: 400px;
  }
  
  .slider-title {
    font-size: 1.5rem;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
}

@media (max-width: 767.98px) {
  .carousel-item, .slider-image, .slider-no-image {
    height: 350px;
  }
  
  .slider-title {
    font-size: 1.25rem;
  }
  
  .carousel-caption {
    padding: 15px;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .footer-heading {
    margin-top: 1.5rem;
  }
}

@media (max-width: 575.98px) {
  .carousel-item, .slider-image, .slider-no-image {
    height: 300px;
  }
  
  .carousel-caption {
    position: relative;
    background-color: var(--primary-color);
    max-width: 100%;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 0;
  }
  
  .social-links {
    margin-top: 0.5rem;
    text-align: center;
  }
  
  .contact-info {
    text-align: center;
  }
}

/* Transición más lenta para el acordeón */
.accordion-collapse {
    transition: all 0.5s ease-in-out !important; /* Ajusta el tiempo (0.5s) según prefieras */
}

/* Opcional: Suavizar el botón del acordeón */
.accordion-button {
    transition: all 0.3s ease !important;
}

/* Estilos para el acordeón - Versión mejorada */
.accordion-button {
    background-color: #f8f9fa;
    font-weight: 500;
    color: var(--primary-color);
    padding: 1.25rem 1.5rem;
    transition: all 0.3s ease;
    box-shadow: none !important;
}

.accordion-button:not(.collapsed) {
    background-color: var(--primary-color);
    color: white;
}

.accordion-button:after {
    background-size: 1.2rem;
    transition: all 0.3s ease;
}

.accordion-button:not(.collapsed):after {
    filter: brightness(0) invert(1);
}

.accordion-body {
    padding: 1.5rem;
    background-color: #fff;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}
.accordion-body li {
    margin-bottom: 0.75rem;
}

/* ==================== HERO SECTION IMPROVEMENTS ==================== */
.hero-section {
    background: linear-gradient(135deg, #0c4a6e 0%, #0369a1 100%) !important;
    padding: 20px 0;
    margin-bottom: -10px;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.hero-section h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    animation: fadeInUp 0.8s ease;
}

.hero-section p.lead {
    font-size: 1.5rem;
    opacity: 0.9;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-image-wrapper {
    border-radius: 12px;
    overflow: hidden;
    transform: perspective(1000px) rotateY(-5deg);
    box-shadow: 20px 20px 40px rgba(0,0,0,0.2);
    border: 8px solid rgba(255,255,255,0.1);
    animation: fadeInRight 0.8s ease;
}

/* ==================== QUICK ACCESS BAR IMPROVEMENTS ==================== */
.quick-access-bar {
    margin-top: -30px;
    border-radius: 12px;
    margin-left: auto;
    margin-right: auto;
}

.quick-link {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(5px);
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid rgba(255,255,255,0.1);
}

.quick-link:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* ==================== SERVICES SECTION IMPROVEMENTS ==================== */
.section-header {
    position: relative;
    margin-bottom: 3rem !important;
}

.section-title {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #6b7280 !important;
}

.service-card {
    border: none !important;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    background: #fff;
    overflow: hidden;
    position: relative;
}

.service-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--info-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.service-card:hover:before {
    transform: scaleX(1);
}

.icon-circle {
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.service-card:hover .icon-circle {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* ==================== GOVERNMENT SECTION IMPROVEMENTS ==================== */
.official-card {
    border: none !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.official-photo {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto;
}

.official-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 5px solid #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.official-photo:before {
    content: '';
    position: absolute;
    inset: -8px;
    background: linear-gradient(45deg, var(--primary-color), var(--info-color));
    z-index: -1;
    border-radius: 50%;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.official-card:hover .official-photo:before {
    transform: rotate(180deg);
    opacity: 1;
}

/* ==================== RESPONSIVE ADJUSTMENTS ==================== */
@media (max-width: 992px) {
    .hero-section {
        clip-path: polygon(0 0, 100% 0, 100% 95%, 0 100%);
        text-align: center;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section p.lead {
        font-size: 1.2rem;
    }
    
    .hero-image-wrapper {
        margin-top: 30px;
        transform: none;
    }
    
    .quick-access-bar {
        width: 100%;
        border-radius: 0;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .official-photo {
        width: 120px;
        height: 120px;
    }
}

@media (min-width: 992px) {
    .navbar .dropdown:hover > .dropdown-menu {
        display: block;
    }
    
    .navbar .dropdown > .dropdown-toggle:active {
        pointer-events: none;
    }
}

/* Estilos para el sistema de multas */
.multas-container .card {
    border-radius: 10px;
    overflow: hidden;
}

.multas-container .card-header {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 1.5rem;
}

.multas-container .table th {
    background-color: var(--primary-color);
    color: white;
}

.multas-container .badge {
    font-size: 0.85em;
    padding: 0.5em 0.75em;
    border-radius: 50px;
}

.multas-container .btn-primary {
    padding: 0.35rem 0.75rem;
    font-size: 0.85rem;
}

/* Validación de formulario */
.was-validated .form-control:invalid,
.was-validated .form-control:valid {
    background-position: right calc(0.375em + 0.1875rem) center;
    padding-right: calc(1.5em + 0.75rem);
}

/* Modal */
.modal-content {
    border-radius: 10px;
}

/* --------------------------------------------------------
  13. Formulario Contacto
-------------------------------------------------------- */
/* Contenedor principal del formulario */
.contact-form-container {
    border-radius: 8px;
    padding: 1rem;
    max-width: 800px;
    margin: 0 auto;
}
/* Etiquetas */
.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #333;
}