@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,100..900;1,9..144,100..900&family=Fredoka:wght@300..700&family=Poppins:ital,wght@0,100..900;1,100..900&display=swap');

/*VARIABLES DE COLOR*/
:root {
  --azul-oscuro: #071658;
  --amarillo: #Ffb603;
  --gris-claro: #F3F4F6;
  --gris: #6B7280;
  --blanco: #FFFFFF;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background: #e2e8f0;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  padding-top: 0
}

/*HEADER*/
/* Los estilos del header se encuentran en main.css (estilos premium globales) */

/* ========================================
   HERO SECTION
======================================== */
.hero-section {
  position: relative;
  height: 350px;
  background: linear-gradient(135deg, var(--azul-oscuro) 0%, #0d2380 100%),
    url('../assets/heroImagen2.avif') center/cover;
  background-blend-mode: overlay;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(7, 22, 88, 0.85) 0%, rgba(13, 35, 128, 0.85) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--blanco);
  padding: 2rem;
  animation: fadeInUp 0.8s ease-out;
}

.breadcrumbs {
  position: absolute;
  top: 2rem;
  left: 2rem;
  font-size: 0.9rem;
  opacity: 0.9;
  z-index: 3;
}

.breadcrumbs a {
  color: var(--amarillo);
  text-decoration: none;
  transition: opacity 0.3s;
}

.breadcrumbs a:hover {
  opacity: 0.8;
}

.breadcrumbs .separator {
  margin: 0 0.5rem;
  color: rgba(255, 255, 255, 0.6);
}

.breadcrumbs .current {
  color: var(--blanco);
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -1px;
}

.hero-subtitle {
  font-size: 1.3rem;
  font-weight: 300;
  opacity: 0.95;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .hero-section {
    height: 280px;
  }

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

  .hero-subtitle {
    font-size: 1rem;
  }

  .counter-number {
    font-size: 1.8rem;
  }
}

/* ========================================
   STICKY FILTERS BAR
======================================== */


/* ========================================
   PROPERTY CARDS
======================================== */
.propiedades {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  padding: 0 10px;
  margin-top: 2rem;
}

.propiedades .contenedor {
  flex: 1 1 300px;
}

.contenedor {
  position: relative;
  width: 100%;
  max-width: 350px;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: transform 0.3s;
}

.contenedor:hover {
  box-shadow: 0 4px 12px rgba(36, 36, 6, 0.656);
  transform: translateY(-6px);
}

/* Property Badges */
.property-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  backdrop-filter: blur(10px);
}

.badge-nuevo {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
}

.badge-destacado {
  background: linear-gradient(135deg, var(--amarillo) 0%, #e6a500 100%);
  color: var(--azul-oscuro);
  box-shadow: 0 2px 8px rgba(255, 182, 3, 0.4);
}

/* ========================================
   EMPTY STATE
======================================== */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  min-height: 400px;
  text-align: center;
  animation: fadeIn 0.5s ease-out;
}

.empty-state-icon {
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, var(--azul-oscuro) 0%, #0d2380 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  animation: bounce 2s infinite;
}

.empty-state-icon span {
  font-size: 4rem;
  color: var(--amarillo);
}

.empty-state-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--azul-oscuro);
  margin-bottom: 1rem;
}

.empty-state-text {
  font-size: 1.1rem;
  color: var(--gris);
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 500px;
}

.btn-limpiar-empty {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--amarillo);
  color: var(--azul-oscuro);
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-limpiar-empty:hover {
  background: var(--azul-oscuro);
  color: var(--amarillo);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(7, 22, 88, 0.3);
}

.btn-limpiar-empty span {
  font-size: 1.2rem;
}

@keyframes bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

/* ========================================
   SCROLL ANIMATIONS
======================================== */
.fade-ready {
  opacity: 0;
  transform: translateY(30px);
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Hover micro-interactions */
.contenedor {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.contenedor:hover {
  box-shadow: 0 8px 24px rgba(7, 22, 88, 0.15);
  transform: translateY(-8px) scale(1.02);
}

.btn-contacto,
.btn-detalles {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn-contacto::before,
.btn-detalles::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-contacto:hover::before,
.btn-detalles:hover::before {
  width: 300px;
  height: 300px;
}

/* Carousel navigation buttons animation */
.btn-izquierda,
.btn-derecha {
  transition: all 0.3s ease;
}

.btn-izquierda:hover,
.btn-derecha:hover {
  transform: scale(1.1);
}

.btn-izquierda:active,
.btn-derecha:active {
  transform: scale(0.95);
}

/* Favorite Heart Icon */
.favorite-icon {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.favorite-icon:hover {
  background: var(--amarillo);
  transform: scale(1.1);
}

.favorite-icon i {
  font-size: 1.2rem;
  color: var(--gris);
  transition: color 0.3s;
}

.favorite-icon:hover i {
  color: var(--azul-oscuro);
}

.carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 10px;
}

.carousel:hover {
  cursor: pointer;
}

.carousel-inner {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.slide {
  min-width: 100%;
}

.slide img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  border-radius: 10px;
}

.btn-izquierda,
.btn-derecha {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #ffb603;
  color: #071658;
  border: none;
  padding: 12px;
  cursor: pointer;
  ;
  font-size: 18px;
}

.btn-izquierda:hover,
.btn-derecha:hover {
  background: #071658;
  color: #ffb603;
}

.btn-izquierda {
  left: 0;
}

.btn-derecha {
  right: 0;
}


.contenedor .contenido {
  padding: 14px;
  color: #111;
}

.contenedor .contenido .estado {
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-block;
  background: #071658;
  padding: 2px 4px;
  border-radius: 4px;
  color: #ffb603;
  margin: 2px 40px 0 0;
}

.contenedor .contenido .tipo {
  font-size: 0.9rem;
  font-weight: 600;
  color: #071658;
  margin: 2px 0 0 0;
}

.contenedor .contenido .codigo {
  font-size: 0.9rem;
  font-weight: 600;
  color: #666;
  margin: 2px 0 0 0;
}

.contenedor .contenido .direccion {
  font-size: 0.9rem;
  margin: 8px 0 10px 0;
  color: #666;
}

.contenedor .contenido .precio {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 30px 0 0 0;
  color: #071658;
}

.contenedor .contenido .titulo {
  font-size: 1rem;
  font-weight: 500;
  margin: 10px 0 0 0;
  line-height: 1.4;
}

.contenedor .contenido .iconos {
  display: flex;
  justify-content: space-between;
  list-style: none;
  padding: 10px 0;
  border-top: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
}

.contenedor .contenido .iconos li {
  display: flex;
  align-items: center;
  font-size: 0.9rem;
  color: #555;
}

.contenedor .contenido .iconos li span {
  margin-right: 6px;
  font-size: 1.4rem;
  color: #ffb603;
}

.contacto {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  padding: 14px;
  text-align: center;
  gap: 10px;
}

.btn-contacto,
.btn-detalles {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #071658;
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  width: 100%;
  transition: background 0.3s ease;
}

.btn-contacto:hover,
.btn-detalles:hover {
  background: #ffb603;
}

/*MODALES*/
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.modal-content {
  background-color: var(--blanco);
  padding: 25px;
  border-radius: 8px;
  width: 90%;
  max-width: 450px;
  position: relative;
}

.modal-content h2 {
  text-align: center;
  margin-bottom: 15px;
  color: var(--azul-oscuro);
}

.modal-content input,
.modal-content textarea {
  width: 100%;
  margin-bottom: 12px;
  padding: 8px 10px;
  border: 1px solid var(--gris);
  border-radius: 6px;
  outline: none;
}

.btn-modal {
  width: 100%;
  background-color: var(--azul-oscuro);
  color: var(--blanco);
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
}

.btn-modal:hover {
  background-color: var(--amarillo);
  color: var(--azul-oscuro);
}

.close-btn {
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 1.3rem;
  cursor: pointer;
  color: var(--gris);
}

/* MODAL MENSAJES PERSONALIZADOS */
.modal-mensaje {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  z-index: 9999;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.modal-mensaje-content {
  background: white;
  padding: 40px 30px;
  border-radius: 16px;
  max-width: 450px;
  width: 90%;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-mensaje-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  font-weight: bold;
}

.modal-mensaje-content.exito .modal-mensaje-icon {
  background: linear-gradient(135deg, #4CAF50, #45a049);
  color: white;
}

.modal-mensaje-content.error .modal-mensaje-icon {
  background: linear-gradient(135deg, #f44336, #d32f2f);
  color: white;
}

.modal-mensaje-titulo {
  color: var(--azul-oscuro);
  font-size: 1.8rem;
  margin-bottom: 15px;
  font-weight: 700;
}

.modal-mensaje-texto {
  color: #555;
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 25px;
}

.modal-mensaje-btn {
  background: var(--azul-oscuro);
  color: white;
  border: none;
  padding: 12px 40px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.modal-mensaje-btn:hover {
  background: var(--amarillo);
  color: var(--azul-oscuro);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 182, 3, 0.4);
}

/* ========================================
   RESPONSIVE GRID BREAKPOINTS
======================================== */
@media (max-width: 1400px) {
  .propiedades {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1024px) {
  .propiedades {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 0 1.5rem;
  }
}

@media (max-width: 640px) {
  .propiedades {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 0 1rem;
  }

  .contenedor {
    max-width: 100%;
  }
}

@media (max-width: 350px) {

  body {
    padding-top: 0px;
  }

  .slide img {
    height: 180px;
  }

  .contenido {
    padding: 15px;
  }

  .contido .precio {
    font-size: 1.2rem;
  }

  .contenido .titulo {
    font-size: 0.9rem;
  }
}

/*FOOTER*/
.site-footer {
  background-color: #071658;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  padding: 3rem 1.5rem 1rem;
  border-top: 5px solid #ffb603;
  margin-top: 3rem;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto 2rem;
}

/* SECCIONES DEL FOOTER */

.footer-brand {
  max-width: 300px;
}

.footer-logo {
  width: 120px;
  margin-bottom: 0.75rem;
}

.brand-text {
  font-weight: 600;
  font-size: 1.2rem;
  color: #ffb603;
}

.footer-desc {
  font-size: 0.9rem;
  line-height: 1.5;
  margin-top: 0.5rem;
  color: #d4d4d4;
}

/* ENLACES Y CONTACTO */

.footer-links h4,
.footer-contact h4,
.footer-social h4 {
  color: #ffb603;
  font-size: 1.05rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.footer-links ul,
.footer-contact ul {
  list-style: none;
  padding: 0;
}

.footer-links li,
.footer-contact li {
  margin-bottom: 0.6rem;
  font-size: 0.9rem;
}

.footer-links a {
  text-decoration: none;
  color: #fff;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #ffb603;
}

.footer-contact i {
  color: #ffb603;
  margin-right: 8px;
}

/* REDES SOCIALES */

.social-icons a {
  color: #fff;
  font-size: 1.2rem;
  margin-right: 12px;
  transition: color 0.3s;
}

.social-icons a:hover {
  color: #ffb603;
}

/* PARTE INFERIOR */

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
  text-align: center;
  font-size: 0.85rem;
  color: #ccc;
}

.footer-bottom .footer-legal {
  margin-top: 0.5rem;
}

.footer-bottom a {
  color: #ffb603;
  margin: 0 10px;
  text-decoration: none;
  font-size: 0.85rem;
}

.footer-bottom a:hover {
  text-decoration: underline;
}

/* RESPONSIVE */

@media (max-width: 600px) {
  .footer-container {
    text-align: center;
  }

  .footer-social .social-icons a {
    margin: 0 8px;
  }

  .footer-brand {
    margin: 0 auto;
  }
}


/* ========================================
   HEADER CON FILTROS - DISEÑO MODERNO
======================================== */

/* Contenedor principal */
.filters-header {
  width: 100%;
  position: sticky;
  top: 85px;
  z-index: 90;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Barra de búsqueda fija con glassmorphism */
.search-bar-fixed {
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(135deg,
      rgba(255, 255, 255, 0.95) 0%,
      rgba(255, 255, 255, 0.98) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 100;
  box-shadow:
    0 4px 20px rgba(7, 22, 88, 0.08),
    0 1px 3px rgba(0, 0, 0, 0.05),
    inset 0 -1px 0 rgba(255, 182, 3, 0.2);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  justify-content: center;
  padding: 20px 24px;
  border-bottom: 3px solid transparent;
  border-image: linear-gradient(90deg,
      var(--azul-oscuro) 0%,
      var(--amarillo) 50%,
      var(--azul-oscuro) 100%) 1;
  animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Input de búsqueda mejorado */
.search-input {
  flex: 1 1 280px;
  padding: 12px 16px 12px 44px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-size: 0.95rem;
  min-width: 200px;
  background: white;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23071658' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cpath d='m21 21-4.35-4.35'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 14px center;
  background-size: 18px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.search-input:focus {
  outline: none;
  border-color: var(--amarillo);
  box-shadow:
    0 0 0 3px rgba(255, 182, 3, 0.15),
    0 4px 12px rgba(7, 22, 88, 0.1);
  transform: translateY(-1px);
}

.search-input::placeholder {
  color: #9ca3af;
  font-weight: 400;
}

/* Grupos de filtros */
.filter-group,
.filter-group-dropdowns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

/* Estilos base para botones y selects */
.filter-btn,
.dropdown-btn {
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  padding: 10px 16px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  color: #374151;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
}

/* Efecto de onda en hover */
.filter-btn::before,
.dropdown-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(7, 22, 88, 0.05);
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease;
  z-index: 0;
}

.filter-btn:hover::before,
.dropdown-btn:hover::before {
  width: 200px;
  height: 200px;
}

.filter-btn:hover,
.dropdown-btn:hover {
  border-color: var(--azul-oscuro);
  background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
  transform: translateY(-2px);
  box-shadow:
    0 4px 12px rgba(7, 22, 88, 0.12),
    0 2px 4px rgba(0, 0, 0, 0.06);
}

.filter-btn:active,
.dropdown-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

/* Select con indicador visual mejorado */
.dropdown-btn {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23071658' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px;
}

/* Estado activo del filtro de estado (arriendo/venta) */
.filter-btn.active-opcion {
  background: linear-gradient(135deg, var(--azul-oscuro) 0%, #0d2380 100%);
  color: var(--amarillo);
  border-color: var(--azul-oscuro);
  font-weight: 600;
  box-shadow:
    0 4px 12px rgba(7, 22, 88, 0.25),
    0 0 0 3px rgba(7, 22, 88, 0.1);
  transform: translateY(-1px);
}

.filter-btn.active-opcion:hover {
  background: linear-gradient(135deg, #0d2380 0%, var(--azul-oscuro) 100%);
  box-shadow:
    0 6px 16px rgba(7, 22, 88, 0.3),
    0 0 0 3px rgba(7, 22, 88, 0.15);
}

/* Indicador visual para selects con valor seleccionado */
.dropdown-btn:not([value=""]):valid,
.dropdown-btn.has-value {
  border-color: var(--amarillo);
  background-color: #fffbf0;
  font-weight: 600;
  color: var(--azul-oscuro);
}

/* Botón limpiar filtros con estilo destacado */
.borrar-filtros {
  color: white;
  background: linear-gradient(135deg, var(--amarillo) 0%, #e6a500 100%);
  border-color: var(--amarillo);
  font-weight: 600;
  position: relative;
  overflow: hidden;
}

.borrar-filtros::after {
  content: '✕';
  margin-left: 6px;
  font-size: 0.85rem;
  display: inline-block;
  transition: transform 0.3s ease;
}

.borrar-filtros:hover {
  background: linear-gradient(135deg, var(--azul-oscuro) 0%, #0d2380 100%);
  border-color: var(--azul-oscuro);
  color: var(--amarillo);
  transform: translateY(-2px);
  box-shadow:
    0 6px 16px rgba(7, 22, 88, 0.25),
    0 2px 8px rgba(255, 182, 3, 0.2);
}

.borrar-filtros:hover::after {
  transform: rotate(90deg);
}

/* Animación de entrada para los filtros */
.filter-group>*,
.filter-group-dropdowns>* {
  animation: fadeInScale 0.4s ease-out backwards;
}

.filter-group>*:nth-child(1) {
  animation-delay: 0.05s;
}

.filter-group>*:nth-child(2) {
  animation-delay: 0.1s;
}

.filter-group-dropdowns>*:nth-child(1) {
  animation-delay: 0.15s;
}

.filter-group-dropdowns>*:nth-child(2) {
  animation-delay: 0.2s;
}

.filter-group-dropdowns>*:nth-child(3) {
  animation-delay: 0.25s;
}

.filter-group-dropdowns>*:nth-child(4) {
  animation-delay: 0.3s;
}

.filter-group-dropdowns>*:nth-child(5) {
  animation-delay: 0.35s;
}

.filter-group-dropdowns>*:nth-child(6) {
  animation-delay: 0.4s;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(-10px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* ========================================
   RESPONSIVE DESIGN MEJORADO
======================================== */

@media (max-width: 1200px) {
  .search-bar-fixed {
    padding: 18px 20px;
    gap: 10px;
  }

  .search-input {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .filter-group,
  .filter-group-dropdowns {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  body {
    padding-top: 0px;
  }

  .search-bar-fixed {
    padding: 16px;
    gap: 10px;
    align-items: stretch;
  }

  .search-input {
    min-width: 100%;
    padding: 14px 16px 14px 44px;
    font-size: 1rem;
  }

  .filter-btn {
    display: none;
    /* Ocultar filtro de estado en móvil, se usa desde la navegación */
  }

  .filter-group,
  .filter-group-dropdowns {
    width: 100%;
    justify-content: stretch;
    gap: 8px;
  }

  .dropdown-btn {
    flex: 1 1 calc(50% - 4px);
    min-width: 0;
    padding: 12px 32px 12px 12px;
    font-size: 0.9rem;
  }

  .borrar-filtros {
    flex: 1 1 100%;
    padding: 14px 16px;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .search-bar-fixed {
    padding: 14px 12px;
    gap: 8px;
  }

  .dropdown-btn {
    flex: 1 1 100%;
    padding: 12px 32px 12px 12px;
  }

  .filter-group-dropdowns {
    gap: 8px;
  }
}

/* Mejora de accesibilidad - estados focus visibles */
.search-input:focus-visible,
.filter-btn:focus-visible,
.dropdown-btn:focus-visible {
  outline: 3px solid var(--amarillo);
  outline-offset: 2px;
}

/* Animación cuando se aplican filtros */
@keyframes pulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(255, 182, 3, 0.4);
  }

  50% {
    box-shadow: 0 0 0 8px rgba(255, 182, 3, 0);
  }
}

.dropdown-btn.filtering {
  animation: pulse 1s ease-out;
}