/* RESET BÁSICO */
:root {
  --color-negro: #1a1a1a;
  /* Negro profundo para textos y fondos */
  --color-gris-oscuro: #333333;
  /* Para elementos secundarios */
  --color-gris-suave: #f8f9fa;
  /* Fondos de sección sutiles */
  --color-celeste-elegante: #d9e6f2;
  /* El celeste claro y sobrio */
  --color-acento-plata: #a6a6a6;
  /* Gris metálico para detalles */
}
.icono-nav {
  width: 20px;  /* tamaño deseado */
  height: 20px;
  margin-right: 5px; /* separación entre icono y texto */
  vertical-align: middle;
}
/* Cambiar el fondo del Hero o secciones */
.gallery,
.cta {
  background: var(--color-negro) !important;
}

/* Sección destacada de trabajos: Entarimado de piscina */
.gallery.featured {
  /* Imagen de fondo con overlay más profundo y blend para destacar */
  position: relative;
  /* spotlight radial + overlay + foto */
  background: radial-gradient(circle at center, rgba(255,255,255,0.02) 0%, rgba(0,0,0,0.45) 40%), linear-gradient(180deg, rgba(0,0,0,0.85), rgba(0,0,0,0.65)), url("img/carpa3.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-blend-mode: overlay;
  padding: 100px 0;
  color: #fff;
}

.gallery.featured .featured-banner {
  max-width: 1200px;
  margin: 0 auto 1.5rem;
  text-align: center;
  z-index: 2;
  position: relative;
}

.gallery.featured .featured-banner h3 {
  font-size: 2.2rem;
  letter-spacing: 2px;
  font-weight: 900;
  background: linear-gradient(90deg, #fff, #ffd166);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-transform: uppercase;
  text-shadow: 0 8px 28px rgba(0,0,0,0.55);
}

.gallery.featured .gallery-wrapper {

  margin: 0 auto;
  position: relative;
  z-index: 3;
  padding: 22px;
  background: rgba(0,0,0,0.58);
  border-radius: 18px;
  border: 1px solid rgba(255,215,0,0.06);
  box-shadow: 0 18px 60px rgba(0,0,0,0.65), 0 6px 24px rgba(255,215,0,0.02) inset;
  backdrop-filter: blur(6px);
}

/* Glow / vignette para resaltar el bloque */
.gallery.featured::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  box-shadow: 0 0 80px 20px rgba(0,0,0,0.35) inset;
  border-radius: 0;
}

/* Delgado resplandor dorado superior para llamar la atención */
.gallery.featured::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 18px;
  width: 60%;
  height: 6px;
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(255,215,0,0), rgba(255,215,0,0.25), rgba(255,215,0,0));
  filter: blur(10px);
  opacity: 0.9;
  z-index: 2;
  pointer-events: none;
}

/* Animated golden glow around the inner wrapper */
.gallery.featured .gallery-wrapper {
  overflow: visible;
}

.gallery.featured .gallery-wrapper::before {
  content: '';
  position: absolute;
  inset: -8px;
  z-index: 2;
  pointer-events: none;
  border-radius: 20px;
  background: linear-gradient(90deg, rgba(255,215,0,0) 0%, rgba(255,215,0,0.18) 40%, rgba(255,215,0,0) 100%);
  background-size: 200% 100%;
  filter: blur(10px);
  opacity: 0.0;
  transition: opacity 300ms ease, filter 300ms ease;
  animation: goldShift 4s linear infinite;
}

.gallery.featured .gallery-wrapper:hover::before {
  opacity: 1;
  filter: blur(12px);
}

@keyframes goldShift {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

.gallery-track {
  display: flex;
  gap: 16px;
  align-items: center;
}

.gallery-track > .gallery-card {
  flex: 0 0 auto;
}

/* Promover track a capa compuesta para animaciones suaves */
.gallery-track, .gallery-track > .gallery-card {
  will-change: transform;
  backface-visibility: hidden;
}

/* Reducir sombras en la sección destacada para disminuir repaints */
.gallery.featured .gallery-card {
  box-shadow: 0 6px 18px rgba(0,0,0,0.28);
}

.gallery-slider {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 12px;
  align-items: center;
}

.gallery-card {
  min-width: 260px;
  height: 180px;
  border-radius: 12px;
  overflow: hidden;
  flex: 0 0 auto;
  box-shadow: 0 6px 20px rgba(0,0,0,0.35);
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 768px) {
  .gallery.featured .featured-banner h3 {
    font-size: 1.4rem;
  }
  .gallery-card { min-width: 220px; height: 150px; }
}

/* El toque de "Exclusividad" en el Header */
.site-header {
  background-color: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--color-celeste-elegante);
  overflow: visible !important;
  /* Vital para que el logo de 220px pueda sobresalir */
  z-index: 1000;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'League Spartan', sans-serif;
  color: #212529;
  background-color: #ffffff;
  width: 100%;
  overflow-x: hidden;
  /* Corta cualquier cosa que sobresalga a la derecha */
  position: relative;
}

h2 {
  font-family: 'League Spartan', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: #1a1a1a;
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  letter-spacing: -1px;
}

/* El toque profesional: una línea decorativa debajo */
h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background-color: var(--color-acento-plata);
  margin: 10px auto 0;
  border-radius: 2px;
}

.hero h1 {
  font-size: 2.6rem;
  font-weight: 700;
}

p {
  line-height: 1.65;
}

/* CONTENEDOR GENERAL */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  background-color: var(--color-gris-suave);
  backdrop-filter: blur(12px);
  /* Desenfoque artístico de fondo */
  border-bottom: 1px solid var(--color-celeste-elegante);
  /* Mucho más fino */
  z-index: 3000;
  padding: 10px 0;
  transition: all 0.3s ease;
}

.site-header .container {
  display: flex !important;
  justify-content: center !important;
  /* Centra el contenido principal (logo) */
  align-items: center !important;
  position: relative !important;
  width: 100% !important;
  padding: 0 !important;
  /* Eliminamos paddings que puedan empujar el logo */
}

/* NAV */
.nav {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2.5rem;
  /* Más espacio para que respire */
}

.nav-link {
  text-decoration: none;
  font-weight: 600;
  color: #444;
  font-size: 1.05rem;
  position: relative;
  padding: 5px 0;
  transition: color 0.3s ease;
}

.nav a {
  text-decoration: none;
  font-weight: 500;
  color: var(--color-negro);
  font-size: 1.2rem;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  /* esto causa el desplazamiento */
  transition: color 0.2s ease, border-color 0.2s ease;
}

/* Botón especial Cotizar */
.nav-link-cta {
  border-bottom: none;
  /* quita el borde invisible que genera el offset */
  padding-bottom: 6px;
  /* opcional, para centrarlo verticalmente */
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--color-acento-plata);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after {
  width: 100%;
}

/* ========================= HERO (VERSION MULTI-SLIDE) ========================= */
.hero {
  position: relative;
  color: #ffffff;
  min-height: 75vh;
  /* Altura generosa para que luzcan las carpas */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

/* Contenedor de todos los fondos */
.hero-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* Estilo para cada capa de imagen */
.slide {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  /* Todas invisibles */
  animation: heroFadeOnly 20s infinite;
  /* 20s total / 4 fotos = 5s cada una */
}

/* Asignación de imágenes y retrasos */
.s1 {
  background-image: url("img/CARPA12.jpeg");
  animation-delay: 0s;
}

.s2 {
  background-image: url("img/CARPA14.jpeg");
  animation-delay: 5s;
}

.s3 {
  background-image: url("img/Hero2.png");
  animation-delay: 10s;
}

.s4 {
  background-image: url("img/CARPA19.jpeg");
  animation-delay: 15s;
}

.s5 {
  background-image: url("img/Hero1.png");
  animation-delay: 20s;
}

.s6 {
  background-image: url("img/CARPA26.jpeg");
  animation-delay: 25s;
}

.s7 {
  background-image: url("img/Hero3.png");
  animation-delay: 30s;
}

/* Overlay oscuro (Fijo arriba de las fotos) */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

/* Contenido (Arriba de todo) */
.hero-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: #f1f3f5;
}

/* ANIMACIÓN: Solo cambio de opacidad (Sin Zoom) */
@keyframes heroFadeOnly {
  0% {
    opacity: 0;
  }

  5% {
    opacity: 1;
  }

  /* Aparece suavemente en 1 segundo */
  25% {
    opacity: 1;
  }

  /* Se queda estática y visible */
  30% {
    opacity: 0;
  }

  /* Desaparece suavemente */
  100% {
    opacity: 0;
  }
}

.btn-primary {
  display: inline-block;
  background-color: var(--color-negro);
  color: #ffffff;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

.btn-primary:hover {
  background-color: var(--color-gris-oscuro);
}

/* ========================= SERVICIOS / CARPAS CON FONDO NEGRO ========================= */
.services {
  width: 100%;
  /* ocupar todo el ancho de la pantalla */
  background-color: rgb(253 253 253 / 8%);
  /* negro muy transparente */
  padding: 60px 20px;
  /* espacio arriba/abajo y lateral */
  text-align: center;
  box-sizing: border-box;
  /* asegurar que padding no rompa layout */
}

.services h2 {
  font-size: 2.2rem;
  margin-bottom: 2.5rem;
  color: #000;
  /* título negro que destaque */
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  padding: 30px 20px;
  max-width: 1200px;
  /* controla cuánto se abre */
  margin: 0 auto;
  /* centra el grid */
  grid-auto-rows: 1fr; /* hacer que cada fila tenga la misma altura */
  align-items: stretch;
}

/* Cards siguen iguales, fondo blanco para resaltar sobre el negro */
.card {
  background-color: #ffffff;
  border: 1px solid #e9ecef;
  border-top: 3px solid var(--color-negro);
  border-radius: 24px;
  overflow: hidden;
  text-align: left;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  height: 100%
}

/* Efectos hover de las cards */
.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(82, 117, 87, 0.15);
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card:hover img {
  transform: scale(1.05);
}

.card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}


.card h3 {
  font-size: 1.3rem;
  color: #1a1a1a;
  margin: 0 0 0.6rem 0;
  font-weight: 700;
  text-align: center;
  /* Reservar espacio para hasta 2 líneas de título y mantener consistencia */
  min-height: 3.2rem;
}

/* Forzar que las tarjetas dentro de los grids de productos ocupen toda la altura
   y que su contenido distribuya el espacio para que los botones queden alineados. */
#Nuestros-Productos1 .card,
#Nuestros-Productos2 .card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

#Nuestros-Productos1 .card .card-content,
#Nuestros-Productos2 .card .card-content {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

#Nuestros-Productos1 .card .card-buttons,
#Nuestros-Productos2 .card .card-buttons {
  margin-top: auto;
  justify-content: center;
}

.card p {
  font-size: 0.95rem;
  margin: 0 0 1rem 0;
  color: #5a5a5a;
  line-height: 1.6;
  text-align: center;
}

/* Botones dentro de las cards */

.card-buttons {
  display: flex;
  gap: 12px;
  width: 100%;
  margin-top: auto;
  padding-top: 15px;
  align-items: center;
  justify-content: center; /* centrar botones */
}

/* Botones estilizados */

.btn-info,
.btn-arrendar-principal {
  flex: 0 0 auto;
  min-width: 140px;
  padding: 10px 14px;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 10px;
  text-decoration: none;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid var(--color-gris-oscuro);
}

.btn-info {
  color: var(--color-negro);
  background-color: transparent;
}

.btn-info:hover {
  border-color: #000000;
  transform: translateY(-2px);
  box-shadow: 0 8px 15px rgba(82, 117, 87, 0.25);
}

.btn-arrendar-principal {
  background-color: var(--color-gris-oscuro);
  color: #ffffff;
}

.btn-arrendar-principal:hover {
  background-color: var(--color-gris-oscuro);
  border-color: #000000;
  transform: translateY(-2px);
  box-shadow: 0 8px 15px rgba(82, 117, 87, 0.25);
}

.btn-info:active,
.btn-arrendar-principal:active {
  transform: translateY(0);
}

/* ========================= GALERÍA ========================= */
.gallery {
  padding: 80px 0;
  /* Cambiamos a 0 los lados para que no empuje el contenido */
  background-color: var(--color-gris-oscuro);
  text-align: center;
}

h1,
h2,
h3,
.nav-link,
.btn-primary {
  text-transform: uppercase;
  /* Todo a mayúsculas como pediste */
  letter-spacing: 2px;
  /* Espaciado para más elegancia */
  font-weight: 700;
}

.gallery h2 {
  color: #ffffff;
  font-family: 'League Spartan', sans-serif;
  font-size: 2.8rem;
  /* Tamaño grande y legible */
  font-weight: 800;
  text-transform: none;
  /* Mejor en minúsculas para este título largo */
  letter-spacing: -0.5px;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  /* Todo a mayúsculas como pediste */
  letter-spacing: 2px;
  /* Espaciado para más elegancia */
  font-weight: 700;
}

.divider {
  width: 60px;
  height: 4px;
  background-color: var(--color-negro);
  margin: 0 auto 1.5rem;
  border-radius: 2px;
}

.gallery-wrapper {
  position: relative;
  max-width: 1200px;
  /* Un poco más angosto ayuda a que 3 fotos se vean mejor */
  margin: 0 auto;
  padding: 0 40px;
  z-index: 1;
  /* Espacio exacto para que las fotos respiren y quepan las flechas */
}

/* El slider con scroll magnético */
.gallery-slider {
  display: flex;
  gap: 20px;
  overflow-x: hidden;
  /* antes era auto */
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 20px 0;
  scrollbar-width: none;
  /* oculta scrollbar Firefox */
}

.gallery-slider::-webkit-scrollbar {
  display: none;
}

.gallery-card {
  flex: 0 0 calc((100% - 40px) / 3);
  width: calc((100% - 40px) / 3);

  aspect-ratio: 16 / 9;
  /* ✔ proporción real */
  height: auto;
  /* ✔ elimina forzado */

  scroll-snap-align: start;
  position: relative;
  border-radius: 12px;
  overflow: hidden;

  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.gallery-card:hover img {
  transform: scale(1.03);
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;

  transition: transform 0.35s ease;
  will-change: transform;
}

/* Override específico para la sección destacada: permitir scroll programático */
.gallery.featured .gallery-slider {
  overflow-x: auto !important;
  scroll-snap-type: none !important;
  -webkit-overflow-scrolling: touch;
}

/* Overlay más elegante */
.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px 20px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
  color: white;
  text-align: left;
}

.gallery-overlay h4 {
  font-size: 1.1rem;
  /* Más pequeño */
  margin-bottom: 2px;
}

.gallery-overlay p {
  font-size: 0.85rem;
  opacity: 0.9;
}

.gallery-subtitle {
  color: #d1d1d1;
  /* Un gris muy claro para que no compita con el blanco del h2 */
  font-size: 1.2rem;
  font-weight: 400;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.5;
  opacity: 0.9;
}

/* Botones flotantes */
.arrow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: white;
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.arrow-btn.left {
  left: 10px;
}

.arrow-btn.right {
  right: 10px;
}

.arrow-btn:hover {
  background: #0d6efd;
  color: white;
  transform: scale(1.1);
}

/* ========================= BENEFICIOS ========================= */
.benefits {
  max-width: 1200px;
  margin: 40px auto 100px;
  padding: 0 20px;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.1);
  background-color: var(--color-gris-suave);
}

.benefit-item:hover {
  transform: translateY(-5px);
  /* Efecto de levante */
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.15);
  /* Sombra más profunda al pasar el mouse */
}

.benefits-header {
  text-align: center;
  margin-bottom: 60px;
}

.tagline {
  color: var(--color-gris-suave);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.85rem;
  font-weight: 700;
}

.benefits h2 {
  font-size: 2.5rem;
  color: #1a1a1a;
  margin-top: 10px;
  font-weight: 800;
}

.divider {
  width: 50px;
  height: 4px;
  background: #527557;
  margin: 20px auto;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.benefit-item {
  background: #ffffff;
  padding: 40px 30px;
  border-radius: 4px 16px 16px 4px;
  /* Esquinas asimétricas modernas */
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.4s ease;
  border: 1px solid #f0f0f0;
  display: flex;
}

/* La línea innovadora lateral */
.benefit-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 4px;
  background: var(--color-negro);
  transition: width 0.3s ease;
}

.benefit-item:hover {
  transform: translateX(10px);
  /* Se desplaza ligeramente a la derecha */
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.1);
}

.benefit-item:hover::before {
  width: 8px;
  /* La línea se engrosa al interactuar */
}

.benefit-content strong {
  display: block;
  font-size: 1.25rem;
  color: #1a1a1a;
  margin-bottom: 12px;
  font-weight: 700;
}

.benefit-content p {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

/* ========================= CTA FINAL ========================= */
.cta {
  background: linear-gradient(135deg, #1a1a1a 0%, #333333 100%);
  padding: 100px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.cta-card {
  background: rgba(255, 255, 255, 0.05);
  /* Efecto cristal sutil */
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  max-width: 1000px;
  width: 100%;
  padding: 60px;
  border-radius: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.cta-info {
  text-align: left;
}

.cta h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
}

.cta p {
  font-size: 1.2rem;
  color: #e0e0e0;
  margin: 0;
}

/* Botón con estilo único */
.btn-cta {
  background: #ffffff;
  color: #1e3c72;
  padding: 20px 40px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  white-space: nowrap;
}

.btn-cta:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 30px rgba(255, 255, 255, 0.2);
  background: #f8f9fa;
}

/* CONTENEDOR */
.floating-buttons {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  gap: 12px;
  z-index: 2000;
}

/* ESTILO BASE PARA AMBOS */
.floating-buttons a {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.floating-buttons a:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
}

.floating-buttons img {
  width: 32px;
  height: 32px;
}

/* WHATSAPP */
.whatsapp-float {
  background-color: #25d366;
}

/* MAPS */
.map-float {
  background-color: #ffffff;
}

/* ========================= CRÉDITO DESARROLLADOR ========================= */
.dev-credit {
  font-size: 0.85rem;
  color: #fefeff;
}

.dev-credit a {
  color: #dadcdf;
  text-decoration: none;
  font-weight: 600;
  margin-left: 0.25rem;
  position: relative;
  transition: color 0.2s ease;
}

/* Subrayado elegante al hover */
.dev-credit a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background-color: #f8f9fb;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.dev-credit a:hover {
  color: #ffffff;
}

.dev-credit a:hover::after {
  transform: scaleX(1);
}

/* FOOTER */
.footer {
  background-color: #212529;
  color: #ffffff;
  padding: 3rem 1rem 1rem;
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.footer h3,
.footer h4 {
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.footer p {
  font-size: 0.95rem;
  color: #ced4da;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: #adb5bd;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-contact p {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.footer-bottom {
  border-top: 1px solid #343a40;
  margin-top: 2rem;
  padding-top: 1rem;
  text-align: center;
  font-size: 0.85rem;
  color: #adb5bd;
}

/* ========================= MENÚ HAMBURGUESA (CSS) ========================= */
/* 2. Animación a X cuando tiene la clase .active */
#menuToggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

#menuToggle.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}

#menuToggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Botón Hamburguesa: Oculto en PC */
/* 1. Base del botón y las barritas */
.menu-toggle {
  display: none;
  /* Se oculta por defecto, se activa en móvil */
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 10001;
  /* Siempre al frente */
}

.menu-toggle span {
  display: block;
  width: 28px;
  height: 2px;
  background-color: #000;
  /* Color negro sólido */
  /* LA CLAVE: La transición debe estar aquí para que se vea al abrir Y al cerrar */
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  transform-origin: center;
}

.scroll-hint {
  display: none;
}

/*movil*/
@media (max-width: 768px) {

  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .hero {
    position: relative;
    color: #ffffff;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
  }

  .modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    display: none;

    align-items: flex-end;
    /* 👈 antes center */
    justify-content: center;

    z-index: 9999;
    padding: 0;
    /* 👈 importante para que toque el borde inferior */
  }


  .modal.active {
    display: flex;
  }

  .modal-content {
    background: #fff;
    width: 100%;
    max-width: 100%;
    border-radius: 18px 18px 0 0;
    /* solo arriba */
    overflow: hidden;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.25);
    position: relative;

    display: flex;
    flex-direction: column;
 
    padding: 1.5rem;

    /* 👇 comportamiento bottom sheet */
    margin-top: auto;
    /* 🔥 clave real */

    /* evitar que se vaya muy arriba */
    max-height: 90vh;
    overflow-y: auto;

    animation: bottomSheet 0.3s ease;
  }

  .modal-gallery {
    width: 100%;
  }

  .main-image {
    display: none;
  }


  /* contenedor thumbs */
  .thumbs-container {
    position: relative;
    /* necesario para el pseudo-elemento degradado */
  }

  .thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 5px;
    padding-left: 5px;
    /* pequeño margen inicial */
    -webkit-overflow-scrolling: touch;
    /* suaviza scroll en iOS */
  }

  /* thumbnails */
  .thumb {
    flex: 0 0 auto;
    width: 55px;
    height: 55px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 5px;
  }

  .scroll-hint {
    display: block;
    
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    color: #888;
    pointer-events: none;
  }

  /* peek: última miniatura parcialmente visible */
  .thumb:last-child {
    margin-right: 20px;
  }

  .thumbs-container::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 40px;
    height: 100%;
    pointer-events: none;
    background: linear-gradient(to left, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
  }


  @keyframes modalFade {
    from {
      opacity: 0;
      transform: scale(0.95);
    }

    to {
      opacity: 1;
      transform: scale(1);
    }
  }

  /* Imagen */
  .modal-content img {
    width: 100%;
    height: 190px;
    object-fit: cover;
  }

  /* Info */
  .modal-info {
    padding: 16px;
    text-align: center;
  }

  .modal-info h3 {
    
    font-weight: 700;
    margin-bottom: 8px;
  }

  .modal-info p {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.4;
    margin-bottom: 14px;
    text-align: left;
    /* 🔑 CLAVE */
    
  }

  /* Botón */
  .btn-info,
  .btn-arrendar-principal {
    width: 100%;
    padding: 14px;
    font-size: 0.95rem;
    border-radius: 12px;
  }

  .modal-close {
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Transiciones suaves */
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    /* Pequeña sombra para destacar */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    will-change: transform, background, box-shadow;
  }

  .modal-close:hover {
    transform: scale(1.1);
    background: rgba(0, 0, 0, 0.8);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  }

  /* Active/Presionado: vuelve un poco al tamaño original */
  .modal-close:active {
    transform: scale(1);
  }

  .card-buttons .btn-info,
  .card-buttons .btn-arrendar-principal {
    padding: 12px;
    font-size: 0.8rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Servicios */
  .services-grid {
    grid-template-columns: 3fr;
    /* 1 columna en móvil */
  }

  /* Ajustes móviles: apilar botones y hacerlos full-width para mejor UX */
  .card-buttons {
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
    padding-top: 12px;
  }

  .card-buttons .btn-info,
  .card-buttons .btn-arrendar-principal {
    min-width: 0;
    width: 100%;
    flex: 1 1 auto;
    padding: 10px 12px;
  }

  /* Ajuste específico para evitar bordes cortados en móvil */
  .card img {
    height: 180px;
  }



  /* Beneficios */
  .benefits h2 {
    font-size: 1.85rem !important;
  }

  /* CTA */
  .cta h2 {
    font-size: 1.85rem !important;
    line-height: 1.2;
  }

  /* ================= HEADER ================= */
  /* ================= HEADER ================= */
  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    /* Muy importante para que no se encoge */
    z-index: 9999;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
  }

  .site-header .container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 64px;
    padding: 0 16px;
  }

  /* ================= HAMBURGUESA ================= */
  .menu-toggle {
    display: flex;
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10001;
  }

  /* ================= LOGO ================= */
  .logo-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    width: 100%;
  }

  .btn-arrendar-modal {
    background-color: var(--color-gris-oscuro);
    color: #ffffff;
    text-decoration: none;
  }

  .btn-arrendar-modal:hover {
    background-color: var(--color-gris-oscuro);
    border-color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(82, 117, 87, 0.25);
  }

  .btn-arrendar-modal:active {
    transform: translateY(0);
  }

  /* Botón */
  .btn-arrendar-modal {
    width: 100%;
    padding: 14px;
    font-size: 0.95rem;
    border-radius: 12px;
  }

  .btn-arrendar-modal {
    width: 100%;
    padding: 14px;
    font-size: 0.95rem;
    border-radius: 12px;
  }

  .logo-img-link {
    max-width: 180px;
    /* ⬅️ controla ancho */
    margin: 0 auto;
  }

  .logo-img-link img {
    width: 100%;
    height: auto;
    max-height: 56px;
    /* ⬅️ controla alto */
    object-fit: contain;
    display: block;
  }

  /* ================= MENÚ LATERAL ================= */
  #siteNav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 300px;
    /* ⬅️ menú un poco más angosto */
    height: 100vh;
    background: #ffffff;
    z-index: 9000;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.8, 0, 0.2, 1);
  }

  #siteNav.active {
    transform: translateX(0);
  }

  /* ================= LINKS ================= */
  #inicio,
  #servicios,
  #nosotros,
  #contacto {
    scroll-margin-top: 100px;
    /* Ajusta según altura de tu header */
  }

  .nav {
    display: flex;
    flex-direction: column;
    /* Ajuste final: colocar los links más abajo respecto a la X */
    padding: 92px 28px 120px;
    gap: 18px;
    align-items: flex-start;
  }

  .nav-link {
    display: block;
    width: 100%;
    padding: 14px 0;
    font-size: 1.4rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #1a1a1a;
    border-bottom: 1px solid #eee;
  }

  /* Nuevo contenido dentro del menú movil */
  .nav-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: flex-start;
  }

  /* logo removed on request; keep element hidden in case HTML reintroduces it */
  .nav-header { display: none; }

  .nav-contact {
    padding: 12px 28px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-top: 1px solid #fafafa;
    border-bottom: 1px solid #fafafa;
    margin-top: 140px; /* reducir para que el pie no se corte en móviles */
  }

  .nav-contact a {
    color: #222;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.98rem;
    display: inline-flex;
    gap: 10px;
    align-items: center;
  }

  .nav-contact .nav-hours {
    font-weight: 500;
    font-size: 0.85rem;
    color: #666;
  }

  .nav-social {
    padding: 12px 28px;
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: flex-start;
  }

  .nav-social a {
    text-decoration: none;
    color: #1a1a1a;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 6px 10px;
    border-radius: 6px;
    background: rgba(0,0,0,0.03);
  }

  /* Social icon specific styles (mobile) */
  .nav-social .social-icon {
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(0,0,0,0.04);
    text-decoration: none;
  }
  .nav-social svg { display: block; }

  .nav-footer {
    margin-top: auto;
    padding: 18px 32px 40px;
    color: #666;
    font-size: 0.85rem;
    text-align: center;
  }

  /* ================= CTA EN MENÚ ================= */
  .cta-wrapper .nav-link {
    background: var(--color-negro);
    color: #fff;
    text-align: center;
    border-radius: 8px;
    margin-top: 18px;
    padding: 14px;
    font-size: 1.2rem;
  }

  /* ================= INFO INFERIOR ================= */
  .mobile-info {
    position: absolute;
    bottom: 20px;
    left: 32px;
    font-size: 0.9rem;
    color: #ffffff;
  }

  /* ================= BLOQUEO SCROLL ================= */
  body.menu-open {
    position: fixed;
    width: 100%;
    overflow: hidden;
  }

  .cta {
    padding: 40px 16px;
    /* aire arriba/abajo y laterales */
  }

  .cta-info p {
    text-align: center;
  }

  .gallery {
    padding: 50px 0;
  }

  .gallery h2 {
    font-size: 1.35rem;
    /* más pequeño */
    line-height: 1.2;
  }

  .gallery-subtitle {
    font-size: 1rem;
    max-width: 90%;
  }

  .gallery-wrapper {
    padding: 0 20px;
  }

  .gallery-slider {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 12px;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px;
    /* espacio para scroll */
  }

  .gallery-overlay {
    padding: 15px 10px;
    font-size: 0.75rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  }

  .gallery-overlay h4 {
    font-size: 0.95rem;
    margin-bottom: 2px;
  }

  .gallery-overlay p {
    font-size: 0.7rem;
  }

  .gallery-card {
    flex: 0 0 75%;
    /* cada card ocupa 75% del ancho del viewport */
    scroll-snap-align: start;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
  }

  .gallery-card img {
    width: 100%;
    height: auto;
    display: block;
  }

  .cta-card {
    width: 100%;
    max-width: 100%;
    padding: 16px 14px;
    /* antes era más grande */
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    /* menos separación */
    overflow: hidden;
  }

  .cta-button-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .btn-cta {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 16px;
    border-radius: 10px;
    text-align: center;
    white-space: normal;
  }

  .modal {
    display: none;
    /* 👈 CLAVE: vuelve a ocultarlo */
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    align-items: center;
    justify-content: center;
  }

  .modal.active {
    display: flex;
  }

  .modal-content {
    width: 95%;
    max-width: none;
    margin: 10% auto;
    
    border-radius: 16px;
    text-align: center;
  }

  .modal-content img {
    width: 100%;
    height: auto;
    margin-bottom: 15px;
  }

  /* ESTILO BASE PARA AMBOS */
  .floating-buttons {
    position: fixed;
    /* importante */
    bottom: 56px;
    /* aquí decides cuánto subir */
    right: 20px;
    /* distancia del borde derecho */
    display: flex;
    gap: 10px;
  }

  .floating-buttons a {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    bottom: 50px;
    /* más arriba */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  .promo-slide {
    position: fixed;
    bottom: 120px;
    left: 0;


    transform: translate(-100%, -50%) scale(0.80);
    transform-origin: left center;

    width: calc(100% - 24px);
    max-width: 320px;
    padding: 14px;

    background: #fff;
    border-radius: 0 16px 16px 0;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);

    z-index: 2500;
    transition: transform 0.4s ease;

    will-change: transform;
  }

  .promo-slide.active {
    transform: translate(0, -50%) scale(0.80);

  }

  #filtersBar {
    position: fixed;
    bottom: 20px;
    left: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    /* un poquito más compacto */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateY(20px);
    z-index: 10000;
  }

  /* Aparece flotando */
  #filtersBar.floating {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  /* Botones */
  .filter-btn {
    flex: 0 0 auto;
    padding: 6px 10px;
    /* más pequeño y compacto */
    border-radius: 6px;
    border: 1px solid #ccc;
    background-color: #f5f5f5;
    color: #333;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    text-align: center;
    font-size: 0.9rem;
    /* ligeramente más pequeño */
  }

  /* Hover ligero */
  .filter-btn:hover {
    background-color: #e0e0e0;
  }

  /* Activo */
  .filter-btn.active {
    background-color: #333;
    color: #fff;
    border-color: #333;
  }
}


/* Evita scroll del body cuando se abre menú */
body.menu-open {
  position: fixed;
  overflow: hidden;
  width: 100%;
}

body.menu-open {
  position: fixed;
  overflow: hidden;
  width: 100%;
}

/* --- REGLA PARA PC (Desktop) Corregida --- */
@media (min-width: 769px) {
  .site-header .container {
    max-width: 100% !important;
    padding: 0 60px !important;
    /* Más aire a los costados */
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    height: 100px;
    /* Reducimos un poco para más elegancia */
    overflow: visible !important;
  }

  .site-header::after {
    content: "";
    position: absolute;
    bottom: -1px;
    /* ajusta para que toque el blanco */
    left: 0;
    width: 100vw;
    /* ancho total de la pantalla */
    height: 1px;
    /* línea más fina */
    background-color: #000;
  }

  .logo-wrapper {
    flex: none !important;
    /* Evita que crezca de más */
    display: flex !important;
    justify-content: center !important;
    width: auto !important;
  }

  .logo-img-link img {
    height: 85px !important;
    /* Ajusta este número: menor valor = logo más pequeño */
    width: auto !important;
    margin: 0 auto !important;
    display: block !important;
    object-fit: contain;
    /* Asegura que no se deforme */
  }

  .logo-img-link:hover img {
    transform: scale(1.02) translateY(2px);
    /* un poco más suave */
    transition: transform 0.3s ease;
    /* asegúrate de tener transición */
  }

  .btn-arrendar-modal:hover {
    background-color: var(--color-gris-oscuro);
    border-color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(82, 117, 87, 0.25);
  }

  .btn-arrendar-modal:active {
    transform: translateY(0);
  }

  .btn-arrendar-modal {
    display: inline-block;
    width: auto;
    padding: 12px 24px;
    margin-top: 20px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 8px;
    background-color: var(--color-gris-oscuro);
    color: #ffffff;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
  }

  .btn-arrendar-modal:hover {
    background-color: #333;
    /* un cambio visual al pasar el mouse */
  }




  .nav {
    display: flex !important;
    flex-direction: row !important;
    gap: 3rem !important;
    align-items: center !important;
  }

  .nav-link-cta {
    background-color: var(--color-negro);
    color: white !important;
    padding: 10px 25px !important;
    border-radius: 50px;
    transition: all 0.3s ease;
  }

  .nav-link-cta:hover {
    background-color: var(--color-gris-oscuro);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  }

  /* Quitar la línea inferior solo a este botón */
  .nav-link-cta::after {
    display: none;
  }

  /* Limpieza total de rastros móviles en PC */
  .menu-toggle,
  .mobile-info {
    display: none !important;
  }

  /* Ocultar bloques exclusivos del menú móvil en escritorio */
  #siteNav .nav-contact,
  #siteNav .nav-social,
  #siteNav .nav-footer {
    display: none !important;
  }

  /* ========================== MODAL PRODUCTO ========================== */
  .modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
  }

  .modal.active {
    display: flex;
  }

  /* CONTENIDO DEL MODAL */
  .modal-content {
    background: #ffffff;
    max-width: 900px;
    width: 90%;
    padding: 2.5rem;
    border-radius: 14px;
    position: relative;

    display: flex;
    flex-direction: column;
    /* vertical en móviles */
    gap: 2rem;
  }

  /* TÍTULO */
  .modal-content h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: #222;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
  }


  /* GALERÍA */
  .modal-gallery {
    display: flex;
    flex-direction: column;
    /* imagen arriba, miniaturas debajo */
    gap: 1rem;
    flex: 1;
  }

  .modal-info {
    flex: 1;
  }


  .main-image {
    width: 100%;
    border-radius: 10px;
    object-fit: cover;
  }

  .thumbs {
    display: flex;
    gap: 10px;
  }

  .thumb {
    width: 70px;
    height: 70px;
    object-fit: cover;
    cursor: pointer;
    border-radius: 6px;
    opacity: 0.7;
    transition: all 0.2s ease;
  }

  .thumb:hover,
  .thumb.active {
    opacity: 1;
    border: 2px solid var(--color-gris-oscuro);
  }

  /* DESCRIPCIÓN */
  #modalDescription {
    margin-top: 0;
    /* se alinea al top en pantallas grandes */
    line-height: 1.6;
    color: #444;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }

  /* Botón cerrar fijo en la esquina del modal */
  .modal-close {
    position: absolute;
    /* ya lo tienes */
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    outline: none;
  }






  .filters-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 2rem;
    position: sticky;
    top: 125px;
    /* ajusta según tu header */
    z-index: 10;
    padding: 0.8rem 1rem;
    background-color: #fff;
    /* mantiene fondo sólido al hacer scroll */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    /* sombra sutil para destacar */
    border-radius: 10px;
    /* bordes suaves */
    transition: all 0.3s ease;
  }

  .filter-btn {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 0.5rem 1.2rem;
    cursor: pointer;
    font-weight: 600;
    color: #555;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  }

  .filter-btn:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }

  .filter-btn.active {
    background-color: #000;
    color: #fff;
    border-color: #000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
  }

  .filters-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 2rem;
    position: sticky;
    top: 110px;
    /* ajusta según tu header */
    z-index: 10;
    padding: 0.8rem 1rem;
    background-color: #fff;
    /* mantiene fondo sólido al hacer scroll */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    /* sombra sutil para destacar */
    border-radius: 10px;
    /* bordes suaves */
    transition: all 0.3s ease;
  }

  .filter-btn {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 0.5rem 1.2rem;
    cursor: pointer;
    font-weight: 600;
    color: #555;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  }

  .filter-btn:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }

  .filter-btn.active {
    background-color: #000;
    color: #fff;
    border-color: #000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
  }

  .filters-bar {
    position: sticky;
    top: 121px;
    /* Ajusta según la altura de tu header */
    z-index: 10;
    background-color: #fff;
    /* Para que no se vea transparente sobre las tarjetas */
    padding: 1rem 0;
    /* Opcional, para que tenga separación */
  }

  /* Consolidated filter button styles — mejora visual y evita saltos */
  .filters-bar {
    align-items: center;
    gap: 0.9rem;
    padding: 0.75rem 1rem;
  }

  .filter-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px !important;
    border-radius: 999px !important;
    background: linear-gradient(180deg,#ffffff 0%, #f5f6f7 100%) !important;
    border: 1px solid #e6e6e6 !important;
    color: #444 !important;
    font-weight: 700 !important;
    box-shadow: 0 6px 14px rgba(0,0,0,0.06) !important;
    transition: background 180ms ease, box-shadow 180ms ease, color 180ms ease !important;
    min-width: 110px !important;
    white-space: nowrap !important;
    flex: 0 0 auto !important;
    text-align: center !important;
    transform: none !important;
  }

  .filter-btn:hover {
    background: linear-gradient(180deg,#fbfbfb 0%, #efefef 100%) !important;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08) !important;
    transform: none !important;
  }

  .filter-btn.active {
    background: #111 !important;
    color: #fff !important;
    border-color: #111 !important;
    box-shadow: 0 12px 30px rgba(0,0,0,0.18) !important;
    transform: none !important;
  }

  .filter-btn:focus {
    outline: 3px solid rgba(17,17,17,0.06) !important;
    outline-offset: 3px !important;
  }

  @media (max-width: 520px) {
    .filters-bar { gap: 0.6rem; }
    .filter-btn { min-width: auto !important; padding: 8px 12px !important; }
  }

  .promo-slide {
    position: fixed;
    bottom: 120px;
    right: -320px;
    /* fuera de pantalla */
    width: 280px;
    text-decoration: none;
    /* quita subrayado */

    background: #ffffff;
    border-left: 4px solid var(--color-negro);
    border-radius: 16px 0 0 16px;
    padding: 20px;
    box-shadow: -8px 10px 30px rgba(0, 0, 0, 0.15);

    z-index: 2500;
    transition: right 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .promo-slide.active {
    right: 0;
    /* entra animado */
  }
}

.promo-tag {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--color-acento-plata);
}

.promo-slide h4 {
  font-size: 1.2rem;
  margin: 10px 0 6px;
  color: var(--color-negro);
  text-decoration: none;
}

.promo-slide p {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.4;
  margin-bottom: 14px;
}

.promo-btn {
  display: block;
  text-align: center;
  background: var(--color-negro);
  color: #fff;
  padding: 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
}

.promo-btn:hover {
  background: var(--color-gris-oscuro);
  transform: translateY(-2px);
}

.promo-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: none;
  background: none;
  font-size: 1.1rem;
  cursor: pointer;
  color: #999;
}

.promo-close:hover {
  color: #000;
}

.promo-link {
  text-decoration: none;
  /* quita subrayado */
}