/* 
 * 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: #F3456B;
  --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;
}
.title{
	font-size: 1rem;
}

.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: 600;
  padding: 0.5rem 1rem;
  color: var(--dark-color);
}

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

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

.search-form-header .search-field {
  border-radius: 20px;
  font-size: 0.9rem;
  padding: 0.25rem 1rem;
}
.list{
    border-width: 1px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 8px;
}
.list:hover{
    border-width: 1px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 8px;
	background: aliceblue;
}
.list a{
    color: #000;
}
/* --------------------------------------------------------
  5. Main Content
-------------------------------------------------------- */
/* ============================================
   TICKER DE LICITACIONES - ESTILO NOTICIAS
   ============================================ */

.licitaciones-ticker {
    background: #f8f9fa !important;
    border-color: #e9ecef !important;
    font-size: 0.85rem;
    overflow: hidden;
    position: relative;
    z-index: 10;
    padding: 8px 0; /* Espaciado vertical */
}

/* Asegurar que el ticker esté en la misma línea */
.licitaciones-ticker .row {
    display: flex;
    align-items: center; /* Alinear verticalmente al centro */
    flex-wrap: nowrap; /* Evitar que se rompa en varias líneas */
}

/* Estilo del label */
.ticker-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    white-space: nowrap;
    background: #eb9d23;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: inline-block;
    line-height: 1.5; /* Asegurar altura consistente */
}

/* Contenedor del ticker */
.ticker-wrapper {
    position: relative;
    overflow: hidden;
    width: 88%;
}

.ticker-content {
    display: flex;
    animation: tickerScroll 20s linear infinite;
    white-space: nowrap;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    padding: 0 15px;
    white-space: nowrap;
}

.ticker-item a {
    color: #2c3e50;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
}

.ticker-item a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.ticker-item .badge {
    font-size: 0.65rem;
    padding: 0.2rem 0.5rem;
    font-weight: 500;
    background-color: #6c757d;
}

.ticker-item .text-muted {
    font-size: 0.7rem;
}

.ticker-item i {
    font-size: 0.8rem;
}

/* Separador entre items */
.ticker-item .mx-2 {
    margin: 0 5px;
}

/* Animación del ticker */
@keyframes tickerScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .licitaciones-ticker {
        font-size: 0.7rem;
        padding: 5px 0;
    }
    
    .ticker-item {
        padding: 0 8px;
    }
    
    .ticker-item span:not(.badge) {
        font-size: 0.65rem;
    }
    
    .ticker-label {
        font-size: 0.6rem;
        padding: 0.2rem 0.6rem !important;
    }
    
    .ticker-item .badge {
        display: none;
    }
    
    .ticker-item .text-muted {
        display: none;
    }
    
    .ticker-item i {
        font-size: 0.7rem;
    }
}

/* Para dispositivos muy pequeños */
@media (max-width: 576px) {
    .licitaciones-ticker .row {
        flex-wrap: nowrap;
    }
    
    .ticker-item a {
        font-size: 0.65rem;
    }
    
    .ticker-item i {
        font-size: 0.65rem;
    }
    
    .ticker-item .mx-2 {
        margin: 0 3px;
    }
}
.hero-municipal {
    background: #2c5aa0;
    position: relative;
    overflow: hidden;
}
.hero-badge .badge {
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.hero-title {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    line-height: 1.2;
}

.hero-subtitle {
    opacity: 0.9;
    max-width: 90%;
}

.hero-visual {
    position: relative;
    padding: 2rem;
}

.main-logo-container {
    position: relative;
    z-index: 2;
}

.main-logo {
    max-height: 300px;
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.4));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.floating-card {
    position: absolute;
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    animation: float-card 8s ease-in-out infinite;
}

.floating-card i {
    font-size: 1.5rem;
}

.floating-card.card-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-card.card-2 {
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.floating-card.card-3 {
    bottom: 30%;
    left: 20%;
    animation-delay: 4s;
}

.floating-card.card-4 {
    bottom: 76%;
    left: 76%;
    animation-delay: 4s;
}

@keyframes float-card {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-25px) rotate(5deg); }
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.hero-wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 120px;
}

.hero-wave .shape-fill {
    fill: #FFFFFF;
}
.site-main {
  min-height: 500px;
}

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

.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 {
        background: #8a2be254;
        border-radius: 12px;
    }


/* --------------------------------------------------------
  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;
}

/* ==================== QUICK ACCESS BAR IMPROVEMENTS ==================== */
.quick-access-bar {
    background: linear-gradient(90deg, #1e40af 0%, #1e3a8a 100%) !important;
    padding: 15px 0;
    margin-top: -30px;
    position: relative;
    z-index: 20;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(30, 58, 138, 0.2);
    width: 95%;
    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;
}
.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;
}

/* ==================== CONTACT CTA IMPROVEMENTS ==================== */
.contact-cta {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%) !important;
    color: white;
    position: relative;
    overflow: hidden;
}

.contact-cta:before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    transform: rotate(30deg);
}

.contact-cta h2 {
    position: relative;
    z-index: 2;
}

.contact-cta p {
    position: relative;
    z-index: 2;
    opacity: 0.9;
}

.contact-cta .btn {
    position: relative;
    z-index: 2;
    background: white;
    color: var(--primary-color);
    font-weight: 600;
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ==================== 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;
    }
}
/* --------------------------------------------------------
  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;
}

/* ============================================
   BUSCADOR MEJORADO - DISEÑO PROFESIONAL
   ============================================ */

/* 2. Modal de búsqueda - Diseño mejorado */
#searchModal .modal-dialog {
    max-width: 700px;
    margin: 2rem auto;
}

#searchModal .modal-content {
    border-radius: 20px;
    border: none;
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    position: relative;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 3. Encabezado del modal */
#searchModal .modal-header {
    background: white;
    border-bottom: 1px solid rgba(52, 152, 219, 0.1);
    padding: 1.5rem 2rem;
    border-radius: 20px 20px 0 0;
}

#searchModal .modal-title {
    color: #2c3e50;
    display: flex;
    align-items: center;
}

#searchModal .modal-title i {
    color: #3498db;
    font-size: 1.0rem;
    padding: 8px;
    border-radius: 12px;
}

#searchModal .btn-close {
    border-radius: 8px;
    padding: 10px;
    opacity: 0.7;
    transition: all 0.3s ease;
}

#searchModal .search-form .btn {
    background: white;
    border-color:#3498db;
    border-left: none; /* Si quieres que se una visualmente al input */
    color: #2c3e50;
    transition: all 0.3s ease;
    padding: 0.5rem 1.5rem;
    box-shadow: none;
    border-radius: 0 0.375rem 0.375rem 0; /* Para coincidir con Bootstrap */
}

#searchModal .search-form .btn:hover {
    background: #3498db;
    color: white;
    transform: translateY(-1px);
}

#searchModal .search-form .btn:active {
    transform: translateY(0);
}

/* 4. Cuerpo del modal */
#searchModal .modal-body {
    padding: 2rem;
}

/* 5. Formulario de búsqueda mejorado */
#searchModal .search-form {
    margin-bottom: 2rem;
}

#searchModal .input-group {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(52, 152, 219, 0.15);
    transition: all 0.3s ease;
}

#searchModal .input-group:focus-within {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(52, 152, 219, 0.25);
}

#searchModal .form-control-lg {
    height: 65px;
    background: white;
    border-color: #3498db;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    color: #2c3e50;
    border-right: none;
    transition: all 0.3s ease;
}

#searchModal .btn-lg {
    height: 65px;
    padding: 0 2.5rem;
    background: linear-gradient(135deg, #3498db, #2980b9);
    border: none;
    border-radius: 0 15px 15px 0;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

#searchModal .btn-lg:active {
    transform: translateX(0);
}

/* 6. Texto informativo */
#searchModal .text-muted {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #7f8c8d !important;
    font-size: 0.9rem;
    padding: 10px;
    background: rgba(236, 240, 241, 0.5);
    border-radius: 10px;
    margin-top: 1rem;
}

#searchModal .text-muted i {
    color: #3498db;
}

/* 7. Categorías de búsqueda */
#searchModal h6 {
    color: #2c3e50;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(52, 152, 219, 0.1);
    position: relative;
}

#searchModal h6::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #3498db, transparent);
}

#searchModal .row.g-2 {
    margin: 0 -5px;
}

#searchModal .btn-sm {
    border-radius: 0.375rem;
    font-weight: 500;
    border: 2px solid;
    background: white;
    color: #2c3e50;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

#searchModal .btn-sm:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: #3498db;
    color: #3498db;
    background: rgba(52, 152, 219, 0.05);
}

#searchModal .btn-sm i {
    font-size: 0.9rem;
}

/* Colores específicos para cada categoría */
#searchModal .btn-sm:nth-child(1):hover {
    border-color: #e74c3c;
    color: #e74c3c;
}

#searchModal .btn-sm:nth-child(2):hover {
    border-color: #2ecc71;
    color: #2ecc71;
    background: rgba(46, 204, 113, 0.05);
}

#searchModal .btn-sm:nth-child(3):hover {
    border-color: #9b59b6;
    color: #9b59b6;
    background: rgba(155, 89, 182, 0.05);
}

/* 8. Animación de entrada del modal */
#searchModal.modal.fade .modal-dialog {
    transform: translateY(-50px) scale(0.9);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

#searchModal.modal.show .modal-dialog {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* 9. Efectos para pantallas pequeñas */
@media (max-width: 768px) {
    #searchModal .modal-dialog {
        margin: 1rem;
    }
    
    #searchModal .modal-content {
        border-radius: 15px;
    }
    
    #searchModal .form-control-lg,
    #searchModal .btn-lg {
        height: 55px;
    }
    
    #searchModal .btn-lg {
        padding: 0 1.5rem;
    }
    
    #searchModal .modal-body {
        padding: 1.5rem;
    }
    
    #searchModal .btn-sm {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

/* 10. Efecto de desenfoque del fondo */
.modal-backdrop.show {
    backdrop-filter: blur(5px);
    background: rgba(44, 62, 80, 0.7);
}

/* 11. Efecto de teclas para atajos */
kbd {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-family: monospace;
    font-size: 0.85rem;
    box-shadow: 0 3px 0 rgba(0, 0, 0, 0.2);
    margin: 0 3px;
}

/* 12. Mejoras para el input de búsqueda */
#searchModal .input-group-text {
    background: rgba(52, 152, 219, 0.1);
    border: none;
    color: #3498db;
    font-size: 1.2rem;
    padding: 0 1.5rem;
}

/* 13. Efecto de carga (opcional) */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.search-loading {
    animation: pulse 1.5s infinite;
}

/* 14. Efecto de onda en el botón de búsqueda */
.wave-effect {
    position: relative;
    overflow: hidden;
}

.wave-effect::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.wave-effect:focus:not(:active)::after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    20% {
        transform: scale(25, 25);
        opacity: 0.3;
    }
    100% {
        opacity: 0;
        transform: scale(40, 40);
    }
}

/* 15. Sombra personalizada para el modal */
#searchModal .modal-content {
    position: relative;
}

#searchModal .modal-content::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: -10px;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1), rgba(231, 76, 60, 0.1));
    border-radius: 20px;
    z-index: -1;
    opacity: 0.5;
    filter: blur(10px);
}
/* --------------------------------------------------------
  14. 404 Page Styles
-------------------------------------------------------- */

/* Estilos específicos para página 404 */
.min-vh-70 {
    min-height: 70vh;
}

.error-number {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Efecto hover para enlaces */
.hover-lift {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
}

/* Estilos para el buscador en 404 */
.search-form .form-control-lg {
    height: 60px;
    font-size: 1.1rem;
    border-radius: 12px 0 0 12px;
}

.search-form .btn-primary {
    height: 60px;
    border-radius: 0 12px 12px 0;
    padding: 0 30px;
}

/* Responsive para página 404 */
@media (max-width: 768px) {
    .error-number span {
        font-size: 8rem !important;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    .btn-lg {
        padding: 0.5rem 1rem !important;
        font-size: 1rem;
    }
}