/* Basic Reset */
* { box-sizing: border-box; }

/* Fondo azul claro sutil, amigable con tarjetas blancas */
/* Fondo azul claro similar al área superior del footer */
body {
  background: linear-gradient(180deg, rgba(113,186,216,0.22) 0px, rgba(113,186,216,0.18) 380px, rgba(113,186,216,0.12) 760px, rgba(255,255,255,0.06) 100%);
}
html, body { margin: 0; padding: 0; font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif; color: var(--text); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

:root {
  --bg: #ffffff;
  --text: #1D1D1B; /* negro marca */
  --muted: #64748b;
  /* Paleta de marca */
  --primary: #267599; /* azul oscuro marca */
  --primary-dark: #1f5e7a; /* hover */
  --accent: #71BAD8; /* azul claro marca */
  --surface: #f8fafc;
  --border: #e2e8f0;
  /* Paleta secciones Eco/City */
  --eco: #16a34a; /* verde principal para Eco */
  --eco-soft: rgba(22,163,74,0.35);
  --city: #267599; /* azul City coincide con marca */
  --city-soft: rgba(38,117,153,0.35);
}

.container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.section { padding: 64px 0; }
.section-alt { background: var(--surface); padding: 64px 0; }
.section-title { 
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.8rem;
  font-weight: 600;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
  color: #0f172a;
  line-height: 1.1;
}
.section-subtitle { 
  color: #64748b;
  margin: 0 0 2.5rem;
  font-size: 1.125rem;
  font-weight: 300;
  line-height: 1.7;
  letter-spacing: 0.005em;
  max-width: 700px;
}

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.9); backdrop-filter: blur(6px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 108px; }
/* ===== Logo Profesional con Efectos ===== */
.logo { 
  display: inline-flex; 
  gap: 10px; 
  align-items: center; 
  font-weight: 800;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.logo:hover {
  transform: translateY(-2px);
}

/* Normalize logo size across all pages */
.logo img { 
  height: 84px; 
  width: auto;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 2px 8px rgba(38, 117, 153, 0.15));
}

.logo:hover img {
  filter: drop-shadow(0 4px 16px rgba(38, 117, 153, 0.25));
  transform: scale(1.02);
}

/* Efecto de brillo en el logo */
.logo::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(38, 117, 153, 0.1), transparent);
  transition: left 0.6s;
  border-radius: 8px;
}

.logo:hover::before {
  left: 100%;
}
/* ===== Navegación Profesional ===== */
.nav { 
  display: none; 
  gap: 8px; 
  align-items: center; 
}

.nav a { 
  padding: 0.75rem 1rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  border-radius: 8px;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.nav a:hover {
  color: var(--primary);
  background: rgba(38, 117, 153, 0.08);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(38, 117, 153, 0.15);
}

.nav a.active { 
  font-weight: 600;
  color: var(--primary);
  background: rgba(38, 117, 153, 0.1);
  box-shadow: 0 2px 8px rgba(38, 117, 153, 0.12);
}

.nav a.active:hover {
  background: rgba(38, 117, 153, 0.15);
  box-shadow: 0 6px 16px rgba(38, 117, 153, 0.2);
}

/* Efecto de brillo en enlaces de navegación */
.nav a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(38, 117, 153, 0.1), transparent);
  transition: left 0.5s;
}

.nav a:hover::before {
  left: 100%;
}

.menu-close-btn {
  display: none;
}
/* Botón menú móvil profesional */
.menu-toggle { 
  display: none;
  background: none; 
  border: 1px solid var(--border); 
  padding: 8px 12px; 
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

@media (max-width: 859px) {
  .menu-toggle {
    display: block;
  }
}

.menu-toggle:hover {
  border-color: var(--primary);
  background: rgba(38, 117, 153, 0.08);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(38, 117, 153, 0.15);
}

.menu-toggle:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(38, 117, 153, 0.2);
}

@media (min-width: 860px) {
  .nav { display: flex; }
  .menu-toggle { display: none; }
}

/* ===== Hero con Efecto Hover Elegante ===== */
.hero { 
  position: relative; 
  min-height: 70vh; 
  display: grid; 
  align-items: center; 
  isolation: isolate;
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-bg { 
  position: absolute; 
  inset: 0; 
  overflow: hidden; 
  z-index: -2; 
}

.hero-bg video { 
  width: 100%; 
  height: 100%; 
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero::after { 
  content: ""; 
  position: absolute; 
  inset: 0; 
  background: linear-gradient(180deg, rgba(0,0,0,0.2), rgba(0,0,0,0.3)); 
  z-index: -1;
  transition: background 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero:hover::after {
  background: linear-gradient(180deg, rgba(0,0,0,0.5), rgba(0,0,0,0.6));
}

.hero:hover .hero-bg video {
  transform: scale(1.05);
}

.hero .hero-layer { 
  position: relative; 
  color: #fff; 
}

.hero-content {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.hero:hover .hero-content {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.hero h1 { 
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 46px; 
  line-height: 1.1; 
  margin: 0 0 12px;
  transform: translateY(20px);
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.1s;
}

.hero:hover h1 {
  transform: translateY(0);
}

.hero p { 
  color: #e6eef7; 
  font-size: 18px; 
  margin: 0 0 20px;
  transform: translateY(20px);
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
}

.hero:hover p {
  transform: translateY(0);
}

.grid { display: grid; gap: 20px; }
.cards { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.properties { grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); justify-content: center; gap: 1.5rem; }
.testimonials { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.card { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 16px; box-shadow: 0 3px 10px rgba(2,132,199,0.05); }
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); }

/* Services */
.service-card { border-radius: 14px; transition: box-shadow .2s ease, transform .2s ease; }
.service-card:hover { transform: translateY(-2px); box-shadow: 0 8px 26px rgba(38,117,153,0.12); }
.service-card .service-actions { margin-top: 10px; }
.service-card .read-more { padding: 0; border: none; background: none; color: var(--primary); }
.service-desc { line-height: 1.6; }
/* clamp: show ~3 lines and then expand */
.service-desc.clamp { display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Compact visual services */
.service-head { display: grid; grid-template-columns: 48px 1fr; gap: 12px; align-items: center; margin-bottom: 8px; }
.service-icon { width: 48px; height: 48px; border-radius: 12px; display: inline-grid; place-items: center; color: #fff; }
.service-icon.primary { background: var(--primary); box-shadow: 0 8px 22px rgba(38,117,153,0.18); }
.service-icon.accent { background: var(--accent); color: #0a3141; box-shadow: 0 8px 22px rgba(113,186,216,0.25); }
.service-icon svg { width: 24px; height: 24px; display: block; }
.service-card h3 { margin: 0; font-size: 18px; }
.service-card .service-kicker { color: var(--muted); font-size: 13px; margin: 0 0 6px; }

/* Footer contact icons */
.site-footer ul { list-style: none; padding-left: 0; }
#contactPhone, #contactEmail, #contactAddress { position: relative; padding-left: 28px; }
#contactPhone::before, #contactEmail::before, #contactAddress::before { content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; color: var(--primary); opacity: 0.9; }
#contactPhone::before { 
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="%23000" d="M6.62 10.79a15.05 15.05 0 0 0 6.59 6.59l2.2-2.2a1 1 0 0 1 1.01-.24c1.12.37 2.33.57 3.58.57a1 1 0 0 1 1 1V21a1 1 0 0 1-1 1C10.3 22 2 13.7 2 3a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.46.57 3.58a1 1 0 0 1-.24 1.01l-2.2 2.2Z"/></svg>') center/contain no-repeat; 
  background: currentColor;
}
#contactEmail::before { 
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="%23000" d="M20 4H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2Zm0 4-8 5L4 8V6l8 5l8-5v2Z"/></svg>') center/contain no-repeat; 
  background: currentColor;
}
#contactAddress::before { 
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="%23000" d="M12 2a7 7 0 0 0-7 7c0 5.25 7 13 7 13s7-7.75 7-13a7 7 0 0 0-7-7Zm0 9.5A2.5 2.5 0 1 1 12 6a2.5 2.5 0 0 1 0 5.5Z"/></svg>') center/contain no-repeat; 
  background: currentColor;
}

.property { overflow: hidden; padding: 0; }
.property .media { aspect-ratio: 16/10; overflow: hidden; }
.property .media img { width: 100%; height: 100%; object-fit: cover; }
.property .content { padding: 14px; }
.property .meta { display: flex; gap: 10px; color: var(--muted); font-size: 14px; }
.property .price { font-weight: 800; color: var(--primary-dark); }

.testimonial { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; }
.testimonial .avatar { width: 44px; height: 44px; border-radius: 999px; object-fit: cover; }
.testimonial .name { font-weight: 700; }

.cta { background: linear-gradient(180deg, #fff 0%, var(--accent) 100%); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 24px; }

.site-footer { border-top: 1px solid var(--border); background: #fff; }
/* Logo del footer con efectos */
.site-footer .logo { 
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-footer .logo img { 
  height: 60px; 
  width: auto;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 2px 6px rgba(38, 117, 153, 0.1));
}

.site-footer .logo:hover {
  transform: translateY(-1px);
}

.site-footer .logo:hover img {
  filter: drop-shadow(0 3px 12px rgba(38, 117, 153, 0.2));
  transform: scale(1.02);
}
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 24px; padding: 24px 0; }
.footer-brand { font-weight: 800; font-size: 18px; margin-bottom: 8px; }
.footer-title { font-weight: 700; margin-bottom: 8px; }
.footer-cols { display: grid; grid-template-columns: repeat(2, minmax(160px, 1fr)); gap: 16px; }
.footer-bottom { border-top: 1px solid var(--border); padding: 12px 0; color: var(--muted); font-size: 14px; }

/* ===== Botones Profesionales ===== */
.btn { 
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  padding: 0.875rem 1.75rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.025em;
}

.btn-primary { 
  background: linear-gradient(135deg, #267599 0%, #2980b9 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(38, 117, 153, 0.25),
              0 2px 6px rgba(38, 117, 153, 0.15);
}

.btn-primary:hover { 
  background: linear-gradient(135deg, #1e5a7a 0%, #2471a3 100%);
  box-shadow: 0 8px 25px rgba(38, 117, 153, 0.35),
              0 4px 12px rgba(38, 117, 153, 0.25);
  transform: translateY(-2px);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(38, 117, 153, 0.3);
}

.btn-outline { 
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(38, 117, 153, 0.25);
  transform: translateY(-1px);
}

/* Botones en contextos específicos */
.site-header .btn-primary {
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
  border-radius: 6px;
}

.hero .btn-primary {
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(38, 117, 153, 0.3),
              0 3px 8px rgba(38, 117, 153, 0.2);
}

.hero .btn-primary:hover {
  box-shadow: 0 10px 30px rgba(38, 117, 153, 0.4),
              0 5px 15px rgba(38, 117, 153, 0.3);
  transform: translateY(-3px);
}

/* Contenedor de botones del hero */
.hero-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  transform: translateY(20px);
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
}

.hero:hover .hero-cta {
  transform: translateY(0);
}

/* Hero Search Bar */
.hero-search {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 1.5rem;
  margin: 2rem 0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transform: translateY(20px);
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.15s;
}

.hero:hover .hero-search {
  transform: translateY(0);
}

.search-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  gap: 1rem;
  align-items: center;
}

.search-field {
  position: relative;
  display: flex;
  align-items: center;
}

.search-field i {
  position: absolute;
  left: 1rem;
  color: var(--primary);
  font-size: 1rem;
  z-index: 2;
}

.search-field input,
.search-field select {
  width: 100%;
  padding: 1rem 1rem 1rem 2.75rem;
  border: 2px solid var(--border);
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: inherit;
  background: #fff;
  transition: all 0.3s ease;
  appearance: none;
}

.search-field input:focus,
.search-field select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(38, 117, 153, 0.1);
}

.search-field select {
  cursor: pointer;
}

.hero-search .btn-primary {
  padding: 1rem 2rem;
  font-size: 1rem;
  white-space: nowrap;
}

/* Trust Statistics */
.trust-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  margin: 2rem auto 0;
  max-width: 900px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transform: translateY(20px);
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
}

.hero:hover .trust-stats {
  transform: translateY(0);
}

.stat-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-number {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.25rem;
  font-weight: 500;
}

.stat-divider {
  width: 1px;
  height: 28px;
  background: linear-gradient(180deg, transparent, var(--border), transparent);
}

@media (max-width: 768px) {
  .trust-stats {
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 0.4rem;
    padding: 0.3rem 0.6rem;
    margin: 1rem auto 0;
    border-radius: 14px;
    max-width: 680px;
  }
  
  .stat-divider {
    width: 1px;
    height: 16px;
  }
  
  .stat-number {
    font-size: 1.1rem;
  }

  .stat-label {
    font-size: 0.62rem;
    margin-top: 0.08rem;
  }
}

@media (max-width: 768px) {
  .search-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-search {
    padding: 1rem;
    margin: 1.5rem 0;
  }
  
  .hero-search .btn-primary {
    width: 100%;
  }
}

/* Botón WhatsApp en el hero */
.hero .btn-whatsapp {
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.cta .btn-primary {
  padding: 1rem 1.75rem;
  font-size: 1rem;
  white-space: normal;
  width: 100%;
  max-width: 280px;
  text-align: center;
}

/* Botones pequeños */
.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  border-radius: 6px;
}

/* Efecto de brillo sutil */
.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.btn-primary:hover::before {
  left: 100%;
}

/* ===== Botón WhatsApp con Azul Corporativo ===== */
.btn-whatsapp {
  background: linear-gradient(135deg, #267599 0%, #2980b9 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 14px rgba(38, 117, 153, 0.25),
              0 2px 6px rgba(38, 117, 153, 0.15);
}

.btn-whatsapp:hover {
  background: linear-gradient(135deg, #1e5a7a 0%, #2471a3 100%);
  box-shadow: 0 8px 25px rgba(38, 117, 153, 0.35),
              0 4px 12px rgba(38, 117, 153, 0.25);
  transform: translateY(-2px);
}

.btn-whatsapp:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(38, 117, 153, 0.3);
}

/* Efecto de brillo para WhatsApp */
.btn-whatsapp::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.btn-whatsapp:hover::before {
  left: 100%;
}

/* Responsive para botones */
@media (max-width: 768px) {
  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }
  
  .hero .btn-primary,
  .hero .btn-whatsapp {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
  }
  
  .site-header .btn-primary {
    padding: 0.625rem 1.25rem;
    font-size: 0.85rem;
  }
  
  .cta .btn-primary {
    padding: 1rem 1.75rem;
    font-size: 1rem;
    white-space: normal;
    width: 100%;
    max-width: 280px;
    text-align: center;
  }
  
  .hero-cta {
    flex-direction: column;
    gap: 0.75rem;
    align-items: stretch;
  }
  
  .hero-cta .btn {
    text-align: center;
  }
  
  /* En móviles, mostrar siempre el contenido */
  .hero-content {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  
  .hero h1,
  .hero p,
  .hero-cta {
    transform: translateY(0);
  }
  
  .hero::after {
    background: linear-gradient(180deg, rgba(0,0,0,0.5), rgba(0,0,0,0.6));
  }
}

.link { color: var(--primary); font-weight: 600; }

/* Social icons (footer) */
#socialLinks { display: flex; gap: 10px; align-items: center; padding: 0; margin: 0; list-style: none; }
#socialLinks .social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  color: var(--primary);
  background: #fff;
  border: 1px solid rgba(38, 117, 153, 0.22);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

#socialLinks .social:hover {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(38, 117, 153, 0.25);
}

#socialLinks .social:active {
  transform: translateY(0);
}
/* Clamp SVG icon size across ALL pages */
#socialLinks .social .icon, .site-footer #socialLinks svg { width: 18px !important; height: 18px !important; display: block; flex: 0 0 18px; }
#socialLinks .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Asegurar que el <li> no agregue estilos por defecto */
#socialLinks li { list-style: none; margin: 0; padding: 0; }

/* Tema oscuro del footer moderno (index.html) */
.site-footer .social-links #socialLinks .social {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: none;
}

.site-footer .social-links #socialLinks .social:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.muted { color: var(--muted); }
.content { color: var(--text); line-height: 1.8; font-size: 18px; }
.content h1, .content h2, .content h3 { margin-top: 24px; }
.content ul { padding-left: 18px; }
.content strong { color: var(--primary); }

/* WhatsApp floating button */
.wa-float { position: fixed; right: 16px; bottom: 16px; width: 56px; height: 56px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; background: #25D366; color: #fff; box-shadow: 0 8px 24px rgba(0,0,0,0.18); z-index: 100; }
.wa-float:hover { background: #1ebe5d; }
.wa-float svg { width: 28px; height: 28px; display: block; }

.form { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 16px; }
.form-grid { grid-template-columns: 1fr 1fr; }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font-size: 14px; color: var(--muted); margin: 0 0 6px; }
input, textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; font: inherit; }
.form-msg { margin-top: 12px; color: var(--muted); }

.filters { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
#searchInput { flex: 1; }

/* ===== Estilos del Footer ===== */
.site-footer {
  background: #1a1a1a;
  color: #fff;
  padding: 4rem 0 0;
  margin-top: 4rem;
  position: relative;
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  padding-bottom: 3rem;
}

/* Estilos para la columna de la marca */
.footer-brand-col {
  padding-right: 2rem;
}

.footer-logo-img {
  max-width: 180px;
  margin-bottom: 1.5rem;
  filter: brightness(0) invert(1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.footer-logo-img:hover {
  filter: brightness(0) invert(1) drop-shadow(0 3px 12px rgba(255, 255, 255, 0.3));
  transform: scale(1.02) translateY(-1px);
}

.footer-about {
  color: #b3b3b3;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* Estilos para la columna de contacto */
.footer-contact-col .footer-title,
.footer-services-col .footer-title {
  color: #fff;
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
  position: relative;
  padding-bottom: 0.75rem;
}

.footer-contact-col .footer-title::after,
.footer-services-col .footer-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 2px;
  background: var(--accent);
}

.footer-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
  color: #b3b3b3;
  line-height: 1.5;
}

.footer-contact-item i {
  color: var(--accent);
  margin-right: 12px;
  margin-top: 4px;
  width: 16px;
  text-align: center;
}

.footer-contact-item a {
  color: #b3b3b3;
  transition: color 0.3s ease;
  text-decoration: none;
}

.footer-contact-item a:hover {
  color: #fff;
}

/* Estilos para la columna de servicios */
.footer-services-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-services-list li {
  margin-bottom: 0.75rem;
}

.footer-services-list a {
  color: #b3b3b3;
  text-decoration: none;
  transition: color 0.3s ease, padding-left 0.3s ease;
  display: block;
}

.footer-services-list a:hover {
  color: #fff;
  padding-left: 5px;
}

/* Estilos para el pie de página inferior */
.footer-bottom {
  background: #111;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copyright {
  color: #777;
  font-size: 0.9rem;
}

.footer-legal {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.footer-legal a {
  color: #999;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-legal a:hover {
  color: #fff;
}

.divider {
  color: #444;
  font-size: 1.2rem;
  line-height: 0;
}

/* Estilos para iconos de redes sociales */
.social-links {
  display: flex;
  gap: 12px;
  margin-top: 1.5rem;
}

.social-links ul {
  display: flex;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.social-links a {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-links a:hover {
  background: var(--accent);
  transform: translateY(-3px);
  color: #fff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.social-links .icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Mejoras para el footer */
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
}

/* Estilos para páginas de servicios */
.service-card {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.service-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  line-height: 1;
}

.service-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--primary);
}

.service-card p {
  color: var(--muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.service-card ul {
  text-align: left;
  margin-bottom: 1.5rem;
}

.service-card li {
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 1.5rem;
}

.service-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
}

/* Estilos para proceso */
.step {
  text-align: center;
}

.step-number {
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.25rem;
  margin: 0 auto 1rem;
}

.step h4 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.step p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Estilos para contenido de páginas legales */
.content-body {
  line-height: 1.7;
}

.content-body h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--primary);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.5rem;
}

.content-body h2:first-child {
  margin-top: 0;
}

.content-body p {
  margin-bottom: 1.5rem;
}

.content-body ul {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.content-body li {
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.content-body a {
  color: var(--primary);
  text-decoration: none;
  border-bottom: 1px dotted var(--primary);
}

.content-body a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.footer-cols {
  display: flex;
  gap: 2rem;
}

@media (max-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }
  
  .footer-cols {
    flex-direction: column;
    gap: 1rem;
  }
}

/* Responsive */
@media (max-width: 859px) {
  .hero .container { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  /* Slightly smaller logo on mobile for consistency */
  .logo img { 
    height: 67px; 
  }
  
  /* Efectos más sutiles en móvil */
  .logo:hover {
    transform: translateY(-1px);
  }
  
  .logo:hover img {
    transform: scale(1.01);
  }
}

/* -------- Modal de Proyecto -------- */
.modal[aria-hidden="true"] { display: none; }
.modal[aria-hidden="false"] { display: flex; align-items: center; justify-content: center; }
.modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.55); z-index: 80; }
.modal-dialog { position: fixed; inset: 5% 50% auto 50%; transform: translateX(-50%); width: min(1100px, 92vw); max-height: 90vh; overflow:auto; background:#fff; border-radius: 16px; border: 1px solid var(--border); z-index: 90; }

/* Modal de contacto con z-index más alto */
#contactModal .modal-backdrop { z-index: 9998; }
#contactModal .modal-dialog { z-index: 9999; }
.modal-close { position: absolute; right: 10px; top: 10px; border: 1px solid var(--border); background: #fff; border-radius: 999px; width: 36px; height: 36px; font-size: 20px; }
.modal-body { display: grid; grid-template-columns: 1.2fr 1fr; gap: 18px; padding: 16px; }
.modal-media { display: grid; gap: 12px; }
/* Galería con scroll horizontal - estilos al final del archivo */
.gallery .thumb { padding: 0; margin: 0; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: #fff; }
.gallery img { width: 100%; height: 100%; object-fit: cover; display: block; }
.video iframe { width: 100%; aspect-ratio: 16/9; }

/* Video destacado con estilo de hero (amplio y esquinas redondeadas) */
#proyectos-destacados .video-hero iframe { border-radius: 18px; box-shadow: 0 18px 40px rgba(38,117,153,0.18); width: 100%; aspect-ratio: 16/9; }

/* Outline buttons over images: ensure visibility */
.btn.btn-outline { 
  color: #fff; 
  border: 2px solid rgba(255,255,255,0.8); 
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
}
.tile .btn.btn-outline:hover { 
  background: rgba(255,255,255,0.2); 
  border-color: rgba(255,255,255,1);
  box-shadow: 0 4px 14px rgba(255,255,255,0.2);
  transform: translateY(-1px);
}
.attrs { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 6px; }
.attrs li { padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; }
/* Preserve line breaks in project description */
#projectDescription { white-space: pre-line; }

@media (max-width: 859px) {
  .modal-dialog { inset: 5% 4% auto 4%; transform: none; width: auto; }
  .modal-body { grid-template-columns: 1fr; }
}

/* ---------- ECO vs CITY tiles ---------- */
.split-tiles { grid-template-columns: repeat(2, minmax(260px, 1fr)); gap: 18px; }
.tile { position: relative; border-radius: 18px; overflow: hidden; min-height: 240px; display: grid; place-items: end; color: #fff; box-shadow: 0 12px 28px rgba(38,117,153,0.16); border: 1px solid rgba(38,117,153,0.25); }
.tile .tile-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.15), rgba(0,0,0,0.55)); }
.tile .tile-content { position: relative; z-index: 2; padding: 18px; display: grid; gap: 8px; }
.tile h3 { font-size: 28px; margin: 0; font-weight: 800; letter-spacing: 0.2px; }
.tile p { margin: 0 0 4px; color: #e6eef7; }
.tile-eco {
  background:
    url('../assets/eco.jpeg') center/cover no-repeat,
    radial-gradient(1200px 600px at 0% 0%, rgba(22,163,74,0.06), rgba(22,163,74,0.12));
  background-color: var(--eco); /* fallback si falta imagen */
}
.tile-eco .tile-overlay { background: linear-gradient(180deg, rgba(0,0,0,0.03), rgba(0,0,0,0.08)); }
.tile-city { 
  background:
    url('../assets/city.jpg') center/cover no-repeat,
    radial-gradient(1200px 600px at 100% 0%, var(--city-soft), rgba(38,117,153,0.65));
  background-color: var(--primary); /* fallback */
}
.tile:hover { transform: translateY(-3px); transition: transform .25s ease; }

@media (max-width: 859px) {
  .split-tiles { grid-template-columns: 1fr; }
}

/* ---------- About brief ---------- */
.about-brief { grid-template-columns: 1.1fr 0.9fr; gap: 20px; align-items: center; }
.about-media img { border-radius: 14px; border: 1px solid var(--border); box-shadow: 0 8px 28px rgba(38,117,153,0.12); }
.about-actions { display: flex; gap: 12px; margin-top: 12px; }

/* Tarjeta grande para 'Quiénes somos' (misma estética que el video) */
.about-card { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 20px; padding: 22px; border: 1px solid var(--border); border-radius: 18px; background: #fff; box-shadow: 0 18px 40px rgba(38,117,153,0.12); align-items: center; overflow: hidden; min-height: 60vh; }
.about-card .about-media img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; aspect-ratio: 16/9; }
.about-card .about-bullets { margin: 10px 0; padding-left: 18px; }
.about-card .about-bullets li { margin: 6px 0; }

@media (max-width: 859px) {
  .about-brief { grid-template-columns: 1fr; }
  .about-card { grid-template-columns: 1fr; min-height: unset; }
}

/* ---------- Subtle blue accents ---------- */
.section-header { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.hero .btn-primary { box-shadow: 0 8px 22px rgba(38,117,153,0.28); }

/* ---------- Badges y Specs para Proyectos/Propiedades ---------- */
.card.property { 
  position: relative; 
  max-width: 400px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 16px;
  background: #fff;
}

.card.property:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.card.property:hover .media img {
  transform: scale(1.08);
}

.card.property .media { 
  position: relative; 
  overflow: hidden; 
  border-radius: 16px 16px 0 0; 
  height: 220px;
  aspect-ratio: 16/9;
}

.card.property .media img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.card.property .content {
  padding: 1.5rem;
  position: relative;
}

.badge {
  position: absolute;
  top: 12px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  z-index: 10;
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.badge.featured {
  right: 12px;
  background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
  color: #fff;
}

.badge.type {
  left: 12px;
  background: rgba(38, 117, 153, 0.95);
  color: #fff;
}

.badge.sold {
  right: 12px;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #fff;
}

.badge.rented {
  right: 12px;
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  color: #fff;
}

.badge.new {
  right: 12px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
}

.card.property h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.25rem;
  margin: 0 0 0.5rem 0;
  line-height: 1.3;
  font-weight: 600;
  color: #0f172a;
}

.card.property .meta {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.card.property .price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  display: block !important;
  margin: 0.75rem 0 !important;
  letter-spacing: -0.01em;
}

.card.property .price::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
}

.card.property .specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.card.property .specs span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  background: var(--surface);
  border-radius: 8px;
  font-size: 0.8rem;
  color: var(--text);
  font-weight: 500;
  transition: background 0.2s ease;
}

.card.property .specs span:hover {
  background: var(--accent);
  color: #fff;
}

/* Ver detalles button on hover */
.card.property .view-details {
  position: absolute;
  bottom: 1.25rem;
  right: 1.25rem;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card.property:hover .view-details {
  opacity: 1;
  transform: translateY(0);
}

/* Fade-in animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger animation delays for cards */
.card:nth-child(1) { transition-delay: 0.1s; }
.card:nth-child(2) { transition-delay: 0.2s; }
.card:nth-child(3) { transition-delay: 0.3s; }
.card:nth-child(4) { transition-delay: 0.4s; }
.card:nth-child(5) { transition-delay: 0.5s; }
.card:nth-child(6) { transition-delay: 0.6s; }

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

/* Section reveal animation */
.section {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.section.fade-in-visible {
  opacity: 1;
  transform: translateY(0);
}
.features-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 0 0;
  display: grid;
  gap: 6px;
}

.features-list li {
  padding: 6px 12px;
  background: var(--surface);
  border-radius: 6px;
  font-size: 14px;
  color: var(--text);
}

/* ---------- Calculadora de Hipoteca ---------- */
.calculator-section {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--surface);
  border-radius: 12px;
  border: 1px solid var(--border);
}

.calc-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--border);
}

.calc-tab {
  flex: 1;
  padding: 0.75rem 1rem;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.3s;
}

.calc-tab:hover {
  color: var(--primary);
  background: rgba(38, 117, 153, 0.05);
}

.calc-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  background: rgba(38, 117, 153, 0.1);
}

.calc-tab-content {
  display: none;
}

.calc-tab-content.active {
  display: block;
  animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.calculator-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.calc-input-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.calc-input-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}

.calc-input {
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s;
}

.calc-input:focus {
  outline: none;
  border-color: var(--primary);
}

.calc-input:read-only {
  background: #f1f5f9;
  color: var(--muted);
}

.calc-slider {
  width: 100%;
  height: 6px;
  border-radius: 5px;
  background: linear-gradient(to right, var(--primary) 0%, var(--primary) 20%, #e2e8f0 20%, #e2e8f0 100%);
  outline: none;
  margin-bottom: 0.5rem;
  -webkit-appearance: none;
  appearance: none;
}

.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(38, 117, 153, 0.3);
  transition: transform 0.2s;
}

.calc-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.calc-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 6px rgba(38, 117, 153, 0.3);
  transition: transform 0.2s;
}

.calc-slider::-moz-range-thumb:hover {
  transform: scale(1.2);
}

.calc-results {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: white;
  border-radius: 12px;
  border: 2px solid var(--primary);
  box-shadow: 0 4px 12px rgba(38, 117, 153, 0.1);
}

.calc-result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.calc-result-item:last-child {
  border-bottom: none;
}

.calc-result-item.highlight {
  background: linear-gradient(135deg, rgba(38, 117, 153, 0.1) 0%, rgba(113, 186, 216, 0.1) 100%);
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

.calc-label {
  font-weight: 600;
  color: var(--text);
}

.calc-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}

.calc-result-item.highlight .calc-value {
  font-size: 1.75rem;
  color: var(--primary);
}

.calc-result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.calc-result-grid .calc-result-item {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
  background: var(--surface);
}

.modal-large .modal-dialog {
  max-width: 900px;
}

@media (max-width: 860px) {
  .calc-input-group {
    grid-template-columns: 1fr;
  }
  
  .modal-large .modal-dialog {
    max-width: 95%;
  }
}

/* -------- Galería con Scroll Horizontal -------- */
.gallery {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
}

.gallery .thumb {
  flex: 0 0 auto;
  width: 200px;
  height: 150px;
  scroll-snap-align: start;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.gallery .thumb:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.gallery::-webkit-scrollbar {
  height: 8px;
}

.gallery::-webkit-scrollbar-track {
  background: var(--surface);
  border-radius: 4px;
}

.gallery::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 4px;
}

.gallery::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* -------- Lightbox para Imágenes -------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: fixed;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 28px;
  cursor: pointer;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
  color: var(--text);
  font-weight: bold;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: white;
  transform: scale(1.1);
}

.lightbox-close {
  top: 20px;
  right: 20px;
  font-size: 32px;
  line-height: 1;
}

.lightbox-prev {
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 40px;
  line-height: 1;
}

.lightbox-next {
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 40px;
  line-height: 1;
}

.lightbox-prev:hover {
  transform: translateY(-50%) scale(1.1);
}

.lightbox-next:hover {
  transform: translateY(-50%) scale(1.1);
}

.lightbox-counter {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.9);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

@media (max-width: 768px) {
  .lightbox-prev,
  .lightbox-next {
    width: 40px;
    height: 40px;
    font-size: 32px;
  }
  
  .lightbox-prev {
    left: 10px;
  }
  
  .lightbox-next {
    right: 10px;
  }
  
  .lightbox-close {
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
  }
}

/* ===== Footer Actualizado ===== */
.footer-section {
  display: flex;
  flex-direction: column;
}

.footer-section .footer-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1.25rem;
  letter-spacing: 0.5px;
}

.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #e5e5e5;
  font-size: 0.95rem;
}

.footer-contact li svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: #71BAD8;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  color: #1a1a1a;
  transition: all 0.3s ease;
  text-decoration: none;
}

.footer-social a:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(113, 186, 216, 0.4);
  background: #71BAD8;
  color: #ffffff;
}

.footer-social a svg {
  width: 20px;
  height: 20px;
}

/* Responsive Footer */
@media (max-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-section {
    text-align: left;
  }
  
  .footer-social {
    justify-content: flex-start;
  }
}

/* ===== Servicios Modernos ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
  justify-content: center;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  align-items: start;
}
.service-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), 
              0 1px 3px rgba(0, 0, 0, 0.04);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid #f1f5f9;
  width: 100%;
}

.service-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(38, 117, 153, 0.12),
              0 3px 6px rgba(38, 117, 153, 0.06);
  border-color: #71BAD8;
}

.service-card-inner {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  height: 100%;
}

.service-icon-wrapper {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #267599 0%, #71BAD8 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(38, 117, 153, 0.2);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.service-card:hover .service-icon-wrapper {
  transform: scale(1.05) rotate(3deg);
}

.service-icon-wrapper svg {
  width: 18px;
  height: 18px;
  color: #ffffff;
  stroke-width: 2;
}

.service-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0;
  line-height: 1.1;
  letter-spacing: -0.01em;
  min-height: 1.8rem;
  display: flex;
  align-items: center;
}

.service-preview {
  color: #475569;
  font-size: 0.7rem;
  line-height: 1.3;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

.service-bullets {
  margin: 0.25rem 0 0;
  padding-left: 1.05rem;
  color: #475569;
  font-size: 0.78rem;
  line-height: 1.35;
  display: grid;
  gap: 0.25rem;
}

.service-bullets li {
  margin: 0;
}

.service-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.6rem;
}

.service-cta {
  flex: 1;
  border: none;
  cursor: pointer;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.85rem;
  color: #ffffff;
  background: linear-gradient(135deg, #267599 0%, #71BAD8 100%);
  box-shadow: 0 10px 22px rgba(38, 117, 153, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(38, 117, 153, 0.28);
}

.service-cta:active {
  transform: translateY(0);
}

.service-full-content {
  max-height: 0 !important;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.3s ease,
              margin 0.3s ease;
  opacity: 0 !important;
  margin-top: 0;
}

.service-card.expanded .service-full-content {
  max-height: 500px !important;
  opacity: 1 !important;
  margin-top: 0.5rem;
}

.service-description {
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0;
  padding: 1rem;
  background: #f8fafc;
  border-radius: 8px;
  border-left: 3px solid #71BAD8;
}

.service-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: transparent;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.75rem 1.25rem;
  color: #267599;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 0.5rem;
  outline: none;
}

@media (max-width: 1100px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 92%;
  }
}

@media (max-width: 640px) {
  .services-grid {
    grid-template-columns: 1fr;
    max-width: 92%;
  }
  .service-card {
    max-width: 100%;
  }
  .service-actions {
    flex-direction: column;
  }
  .service-toggle {
    width: 100%;
  }
}

.service-toggle:hover {
  background: #f1f5f9;
  border-color: #71BAD8;
  color: #1e40af;
}

.service-card.expanded .service-toggle {
  background: #267599;
  border-color: #267599;
  color: #ffffff;
}

.service-card.expanded .service-toggle:hover {
  background: #1e5a7a;
  border-color: #1e5a7a;
}

/* Asegurar que solo las tarjetas con clase expanded se muestren */
.service-card:not(.expanded) .service-full-content {
  max-height: 0 !important;
  opacity: 0 !important;
  margin-top: 0 !important;
}

.toggle-icon {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}

.toggle-text {
  font-family: inherit;
}

/* Animación de entrada */
.service-card {
  animation: fadeInUp 0.5s ease backwards;
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }

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

/* Responsive para servicios */
@media (max-width: 1200px) {
  .services-grid {
    grid-template-columns: repeat(3, minmax(0, 0.9fr));
    gap: 1.25rem;
    max-width: 85%;
    align-items: start;
  }
}

@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    max-width: 90%;
    align-items: start;
  }
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    align-items: start;
  }
  
  .service-card-inner {
    padding: 1.25rem;
  }
  
  .service-icon-wrapper {
    width: 44px;
    height: 44px;
  }
  
  .service-icon-wrapper svg {
    width: 20px;
    height: 20px;
  }
  
  .service-title {
    font-size: 0.9rem;
    min-height: 2rem;
  }
  
  .service-preview {
    font-size: 0.75rem;
  }
  
  .service-toggle {
    font-size: 0.7rem;
    padding: 0.4rem 0.6rem;
  }
}

/* ===== Testimonios Modernos ===== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.testimonial-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05),
              0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  border: 1px solid #f1f5f9;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(38, 117, 153, 0.15),
              0 4px 8px rgba(38, 117, 153, 0.08);
  border-color: #71BAD8;
}

.testimonial-card-inner {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.testimonial-avatar {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #267599 0%, #71BAD8 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s ease;
  overflow: hidden;
  position: relative;
}

.testimonial-card:hover .testimonial-avatar {
  transform: scale(1.08);
}

.testimonial-avatar svg {
  width: 28px;
  height: 28px;
  color: #ffffff;
}

.testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  border-radius: 50%;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
}

.testimonial-avatar.has-image {
  background: transparent;
  padding: 0;
  border: 2px solid #e0f2f7;
  box-shadow: 0 2px 8px rgba(38, 117, 153, 0.15);
}

.testimonial-info {
  flex: 1;
}

.testimonial-name {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 0.25rem 0;
  line-height: 1.3;
}

.testimonial-stars {
  display: flex;
  gap: 0.25rem;
}

.testimonial-stars svg {
  width: 16px;
  height: 16px;
  color: #fbbf24;
}

.testimonial-quote-icon {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  opacity: 0.1;
  transition: opacity 0.3s ease;
}

.testimonial-card:hover .testimonial-quote-icon {
  opacity: 0.15;
}

.testimonial-quote-icon svg {
  width: 48px;
  height: 48px;
  color: #267599;
}

.testimonial-preview {
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0;
  font-style: italic;
}

.testimonial-full-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.3s ease,
              margin 0.3s ease;
  opacity: 0;
  margin-top: 0;
}

.testimonial-card.expanded .testimonial-full-content {
  max-height: 500px;
  opacity: 1;
  margin-top: 0.5rem;
}

.testimonial-description {
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0;
  padding: 1rem;
  background: #f8fafc;
  border-radius: 8px;
  border-left: 3px solid #fbbf24;
  font-style: italic;
}

.testimonial-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: transparent;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.75rem 1.25rem;
  color: #267599;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 0.5rem;
  outline: none;
}

.testimonial-toggle:hover {
  background: #f1f5f9;
  border-color: #71BAD8;
  color: #1e40af;
}

.testimonial-card.expanded .testimonial-toggle {
  background: #267599;
  border-color: #267599;
  color: #ffffff;
}

.testimonial-card.expanded .testimonial-toggle:hover {
  background: #1e5a7a;
  border-color: #1e5a7a;
}

/* Animación de entrada para testimonios */
.testimonial-card {
  animation: fadeInUp 0.5s ease backwards;
}

.testimonial-card:nth-child(1) { animation-delay: 0.1s; }
.testimonial-card:nth-child(2) { animation-delay: 0.2s; }
.testimonial-card:nth-child(3) { animation-delay: 0.3s; }
.testimonial-card:nth-child(4) { animation-delay: 0.4s; }

/* Responsive para testimonios */
@media (max-width: 768px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .testimonial-card-inner {
    padding: 1.5rem;
  }
  
  .testimonial-avatar {
    width: 48px;
    height: 48px;
  }
  
  .testimonial-avatar svg {
    width: 24px;
    height: 24px;
  }
  
  .testimonial-avatar img {
    width: 100%;
    height: 100%;
  }
  .testimonial-quote-icon svg {
    width: 36px;
    height: 36px;
  }
}

/* Títulos responsive para móviles */
@media (max-width: 680px) {
  .section-title {
    font-size: 1.85rem;
  }
  
  .section-subtitle {
    font-size: 1rem;
  }
}

/* Estilos elegantes para página Nosotros */
.about-hero {
  padding: 4rem 0 3rem;
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  border-bottom: 1px solid #e2e8f0;
}

.about-title {
  font-size: 3rem;
  font-weight: 500;
  margin: 0 0 1.25rem;
  letter-spacing: -0.03em;
  color: #0f172a;
  line-height: 1.1;
}

.about-subtitle {
  color: #64748b;
  margin: 0;
  font-size: 1.2rem;
  font-weight: 300;
  line-height: 1.7;
  letter-spacing: 0.005em;
  max-width: 650px;
}

@media (max-width: 680px) {
  .about-hero {
    padding: 3rem 0 2rem;
  }
  
  .about-title {
    font-size: 2.25rem;
  }
  
  .about-subtitle {
    font-size: 1.05rem;
  }
}

/* Estilos para contenido dinámico de About (Markdown) */
.about-panel h1,
#aboutContent h1 {
  font-size: 2.75rem;
  font-weight: 500;
  margin: 0 0 1.5rem;
  letter-spacing: -0.03em;
  color: #0f172a;
  line-height: 1.15;
}

.about-panel h2,
#aboutContent h2 {
  font-size: 2rem;
  font-weight: 500;
  margin: 3rem 0 1.25rem;
  letter-spacing: -0.02em;
  color: #0f172a;
  line-height: 1.25;
}

.about-panel h3,
#aboutContent h3 {
  font-size: 1.5rem;
  font-weight: 500;
  margin: 2rem 0 1rem;
  letter-spacing: -0.01em;
  color: #1e293b;
  line-height: 1.35;
}

/* Primer párrafo destacado (lead text) */
.about-panel h1 + p,
#aboutContent h1 + p {
  color: #475569;
  font-size: 1.15rem;
  font-weight: 300;
  line-height: 1.8;
  margin: 0 0 2rem;
}

.about-panel p,
#aboutContent p {
  color: #475569;
  font-size: 1rem;
  line-height: 1.7;
  margin: 0 0 1rem;
}

.about-panel ul,
#aboutContent ul {
  color: #475569;
  line-height: 1.7;
  margin: 0 0 1rem;
  padding-left: 1.5rem;
}

.about-panel li,
#aboutContent li {
  margin: 0.5rem 0;
}

@media (max-width: 680px) {
  .about-panel h1,
  #aboutContent h1 {
    font-size: 2rem;
    margin: 0 0 1rem;
  }
  
  .about-panel h2,
  #aboutContent h2 {
    font-size: 1.65rem;
    margin: 2rem 0 1rem;
  }
  
  .about-panel h3,
  #aboutContent h3 {
    font-size: 1.3rem;
    margin: 1.5rem 0 0.75rem;
  }
  
  .about-panel h1 + p,
  #aboutContent h1 + p {
    font-size: 1.05rem;
    margin: 0 0 1.5rem;
  }
  
  .about-panel p,
  #aboutContent p {
    font-size: 0.95rem;
  }
}

/* ===== Infinite Scroll Carousel para Servicios ===== */
.services-carousel-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin: 2rem 0;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  padding: 1rem 0;
}

.services-carousel-track {
  display: flex;
  animation: infinite-scroll-services 40s linear infinite;
  width: fit-content;
  will-change: transform; /* Optimizar animación */
}

.services-carousel-items {
  display: flex;
  gap: 1.5rem;
  padding: 0 1rem;
  min-width: max-content;
}

.services-carousel-items .service-card {
  flex-shrink: 0;
  width: 320px;
  min-width: 320px;
  height: 360px; /* Altura fija para todas las tarjetas */
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(2,132,199,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.services-carousel-items .service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(2,132,199,0.18);
}

.services-carousel-items .service-card .icon {
  flex-shrink: 0;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  position: relative;
  overflow: hidden;
}

.services-carousel-items .service-card .icon::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.6s;
}

.services-carousel-items .service-card:hover .icon::before {
  left: 100%;
}

.services-carousel-items .service-card .icon svg {
  width: 48px;
  height: 48px;
  color: white;
  z-index: 1;
  position: relative;
}

.services-carousel-items .service-card .content {
  flex: 1;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.services-carousel-items .service-card .content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.75rem 0;
  color: var(--text);
  line-height: 1.3;
}

.services-carousel-items .service-card .content p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.services-carousel-items .service-card .content .btn {
  margin-top: 1rem;
  align-self: flex-start;
}

/* Pausar animación al pasar el mouse */
.services-carousel-container:hover .services-carousel-track {
  animation-play-state: paused;
}

/* Animación infinita para servicios */
@keyframes infinite-scroll-services {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Responsive para el carrusel de servicios */
@media (max-width: 1200px) {
  .services-carousel-items .service-card {
    width: 300px;
    min-width: 300px;
    height: 340px;
  }
}

@media (max-width: 1024px) {
  .services-carousel-items .service-card {
    width: 280px;
    min-width: 280px;
    height: 320px;
  }
  
  .services-carousel-items .service-card .icon {
    height: 100px;
  }
  
  .services-carousel-items .service-card .icon svg {
    width: 40px;
    height: 40px;
  }
  
  .services-carousel-items .service-card .content {
    padding: 1.25rem;
  }
  
  .services-carousel-items .service-card .content h3 {
    font-size: 1.125rem;
  }
}

@media (max-width: 768px) {
  .services-carousel-container {
    margin: 1.5rem 0;
    padding: 0.5rem 0;
    border-radius: 12px;
  }
  
  .services-carousel-items {
    gap: 1rem;
    padding: 0 0.5rem;
  }
  
  .services-carousel-items .service-card {
    width: 260px;
    min-width: 260px;
    height: 300px;
  }
  
  .services-carousel-items .service-card .icon {
    height: 90px;
  }
  
  .services-carousel-items .service-card .icon svg {
    width: 36px;
    height: 36px;
  }
  
  .services-carousel-items .service-card .content {
    padding: 1rem;
  }
  
  .services-carousel-items .service-card .content h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }
  
  .services-carousel-items .service-card .content p {
    font-size: 0.9rem;
    -webkit-line-clamp: 2;
  }
}

@media (max-width: 640px) {
  .services-carousel-container {
    margin: 1rem 0;
    padding: 0.25rem 0;
    border-radius: 8px;
  }
  
  .services-carousel-items {
    gap: 0.75rem;
    padding: 0 0.25rem;
  }
  
  .services-carousel-items .service-card {
    width: 240px;
    min-width: 240px;
    height: 280px;
  }
  
  .services-carousel-items .service-card .icon {
    height: 80px;
  }
  
  .services-carousel-items .service-card .icon svg {
    width: 32px;
    height: 32px;
  }
  
  .services-carousel-items .service-card .content {
    padding: 0.875rem;
  }
  
  .services-carousel-items .service-card .content h3 {
    font-size: 0.95rem;
  margin-bottom: 0.375rem;
  }
  
  .services-carousel-items .service-card .content p {
    font-size: 0.85rem;
    -webkit-line-clamp: 2;
  }
  
  .services-carousel-items .service-card .content .btn {
    margin-top: 0.75rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }
}

@media (max-width: 480px) {
  .services-carousel-container {
    margin: 0.75rem 0;
    padding: 0.125rem 0;
  }
  
  .services-carousel-items {
    gap: 0.5rem;
    padding: 0 0.125rem;
  }
  
  .services-carousel-items .service-card {
    width: 220px;
    min-width: 220px;
    height: 260px;
  }
  
  .services-carousel-items .service-card .icon {
    height: 70px;
  }
  
  .services-carousel-items .service-card .icon svg {
    width: 28px;
    height: 28px;
  }
  
  .services-carousel-items .service-card .content {
    padding: 0.75rem;
  }
  
  .services-carousel-items .service-card .content h3 {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
  }
  
  .services-carousel-items .service-card .content p {
    font-size: 0.8rem;
    -webkit-line-clamp: 2;
    line-height: 1.4;
  }
  
  .services-carousel-items .service-card .content .btn {
    margin-top: 0.5rem;
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
  }
}

/* ===== Infinite Scroll Carousel para Testimonios ===== */

/* ===== Infinite Scroll Carousel para Testimonios ===== */
.testimonials-carousel-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin: 2rem 0;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  padding: 1rem 0;
}

.testimonials-carousel-track {
  display: flex;
  animation: infinite-scroll-testimonials 35s linear infinite;
  width: fit-content;
  will-change: transform; /* Optimizar animación */
}

.testimonials-carousel-items {
  display: flex;
  gap: 1.5rem;
  padding: 0 1rem;
  min-width: max-content;
}

.testimonials-carousel-items .testimonial-card {
  flex-shrink: 0;
  width: 380px;
  min-width: 380px;
  height: 280px; /* Altura fija para todas las tarjetas */
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(2,132,199,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonials-carousel-items .testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(2,132,199,0.18);
}

.testimonials-carousel-items .testimonial-card-inner {
  flex: 1;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.testimonials-carousel-items .testimonial-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-shrink: 0;
}

.testimonials-carousel-items .testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.testimonials-carousel-items .testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonials-carousel-items .testimonial-avatar svg {
  width: 24px;
  height: 24px;
  color: var(--muted);
}

.testimonials-carousel-items .testimonial-info {
  flex: 1;
}

.testimonials-carousel-items .testimonial-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.25rem 0;
}

.testimonials-carousel-items .testimonial-stars {
  display: flex;
  gap: 2px;
}

.testimonials-carousel-items .testimonial-stars svg {
  width: 16px;
  height: 16px;
  color: #fbbf24;
}

.testimonials-carousel-items .testimonial-quote {
  flex: 1;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-style: italic;
}

/* Pausar animación al pasar el mouse */
.testimonials-carousel-container:hover .testimonials-carousel-track {
  animation-play-state: paused;
}

/* Animación infinita para testimonios */
@keyframes infinite-scroll-testimonials {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Responsive para el carrusel de testimonios */
@media (max-width: 1200px) {
  .testimonials-carousel-items .testimonial-card {
    width: 350px;
    min-width: 350px;
    height: 260px;
  }
}

@media (max-width: 1024px) {
  .testimonials-carousel-items .testimonial-card {
    width: 320px;
    min-width: 320px;
    height: 250px;
  }
  
  .testimonials-carousel-items .testimonial-card-inner {
    padding: 1.25rem;
  }
}

@media (max-width: 768px) {
  .testimonials-carousel-container {
    margin: 1.5rem 0;
    padding: 0.5rem 0;
    border-radius: 12px;
  }
  
  .testimonials-carousel-items {
    gap: 1rem;
    padding: 0 0.5rem;
  }
  
  .testimonials-carousel-items .testimonial-card {
    width: 300px;
    min-width: 300px;
    height: 240px;
  }
  
  .testimonials-carousel-items .testimonial-card-inner {
    padding: 1rem;
  }
  
  .testimonials-carousel-items .testimonial-avatar {
    width: 44px;
    height: 44px;
  }
  
  .testimonials-carousel-items .testimonial-name {
    font-size: 0.9rem;
  }
  
  .testimonials-carousel-items .testimonial-quote {
    font-size: 0.875rem;
    -webkit-line-clamp: 3;
  }
}

@media (max-width: 640px) {
  .testimonials-carousel-container {
    margin: 1rem 0;
    padding: 0.25rem 0;
    border-radius: 8px;
  }
  
  .testimonials-carousel-items {
    gap: 0.75rem;
    padding: 0 0.25rem;
  }
  
  .testimonials-carousel-items .testimonial-card {
    width: 280px;
    min-width: 280px;
    height: 220px;
  }
  
  .testimonials-carousel-items .testimonial-card-inner {
    padding: 0.875rem;
  }
  
  .testimonials-carousel-items .testimonial-avatar {
    width: 40px;
    height: 40px;
  }
  
  .testimonials-carousel-items .testimonial-name {
    font-size: 0.85rem;
  }
  
  .testimonials-carousel-items .testimonial-quote {
    font-size: 0.8rem;
    -webkit-line-clamp: 3;
    line-height: 1.5;
  }
}

@media (max-width: 480px) {
  .testimonials-carousel-container {
    margin: 0.75rem 0;
    padding: 0.125rem 0;
  }
  
  .testimonials-carousel-items {
    gap: 0.5rem;
    padding: 0 0.125rem;
  }
  
  .testimonials-carousel-items .testimonial-card {
    width: 260px;
    min-width: 260px;
    height: 200px;
  }
  
  .testimonials-carousel-items .testimonial-card-inner {
    padding: 0.75rem;
  }
  
  .testimonials-carousel-items .testimonial-avatar {
    width: 36px;
    height: 36px;
  }
  
  .testimonials-carousel-items .testimonial-name {
    font-size: 0.8rem;
  }
  
  .testimonials-carousel-items .testimonial-quote {
    font-size: 0.75rem;
    -webkit-line-clamp: 2;
    line-height: 1.4;
  }
}

/* ===== Infinite Scroll Carousel para Proyectos Recientes ===== */
.projects-carousel-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin: 2rem 0;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  padding: 1rem 0;
}

.projects-carousel-track {
  display: flex;
  animation: infinite-scroll 30s linear infinite;
  width: fit-content;
  will-change: transform; /* Optimizar animación */
}

.projects-carousel-items {
  display: flex;
  gap: 1.5rem;
  padding: 0 1rem;
  min-width: max-content;
}

.projects-carousel-items .property-card {
  flex-shrink: 0;
  width: 350px;
  min-width: 350px;
  height: 400px; /* Altura fija para todas las tarjetas */
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(2,132,199,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.projects-carousel-items .property-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(2,132,199,0.15);
}

.projects-carousel-items .property-card .media {
  flex-shrink: 0;
  height: 220px; /* Altura fija para imágenes */
  overflow: hidden;
  position: relative;
}

.projects-carousel-items .property-card .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
}

.projects-carousel-items .property-card:hover .media img {
  transform: scale(1.05);
}

.projects-carousel-items .property-card .content {
  flex: 1;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.projects-carousel-items .property-card .content h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
  color: var(--text);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.projects-carousel-items .property-card .content .meta {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.projects-carousel-items .property-card .content .price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0;
}

/* Pausar animación al pasar el mouse */
.projects-carousel-container:hover .projects-carousel-track {
  animation-play-state: paused;
}

/* Animación infinita */
@keyframes infinite-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Responsive para el carrusel */
@media (max-width: 1200px) {
  .projects-carousel-items .property-card {
    width: 320px;
    min-width: 320px;
    height: 380px;
  }
  
  .projects-carousel-items .property-card .media {
    height: 200px;
  }
}

@media (max-width: 1024px) {
  .projects-carousel-items .property-card {
    width: 300px;
    min-width: 300px;
    height: 360px;
  }
  
  .projects-carousel-items .property-card .media {
    height: 180px;
  }
  
  .projects-carousel-items .property-card .content {
    padding: 1rem;
  }
}

@media (max-width: 768px) {
  .projects-carousel-container {
    margin: 1.5rem 0;
    padding: 0.5rem 0;
    border-radius: 12px;
  }
  
  .projects-carousel-items {
    gap: 1rem;
    padding: 0 0.5rem;
  }
  
  .projects-carousel-items .property-card {
    width: 280px;
    min-width: 280px;
    height: 340px;
  }
  
  .projects-carousel-items .property-card .media {
    height: 180px;
  }
  
  .projects-carousel-items .property-card .content {
    padding: 1rem;
  }
  
  .projects-carousel-items .property-card .content h3 {
    font-size: 1rem;
  }
  
  .projects-carousel-items .property-card .content .price {
    font-size: 1.125rem;
  }
}

@media (max-width: 640px) {
  .projects-carousel-container {
    margin: 1rem 0;
    padding: 0.25rem 0;
    border-radius: 8px;
  }
  
  .projects-carousel-items {
    gap: 0.75rem;
    padding: 0 0.25rem;
  }
  
  .projects-carousel-items .property-card {
    width: 260px;
    min-width: 260px;
    height: 320px;
  }
  
  .projects-carousel-items .property-card .media {
    height: 160px;
  }
  
  .projects-carousel-items .property-card .content {
    padding: 0.875rem;
  }
  
  .projects-carousel-items .property-card .content h3 {
    font-size: 0.95rem;
  }
  
  .projects-carousel-items .property-card .content .price {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .projects-carousel-container {
    margin: 0.75rem 0;
    padding: 0.125rem 0;
  }
  
  .projects-carousel-items {
    gap: 0.5rem;
    padding: 0 0.125rem;
  }
  
  .projects-carousel-items .property-card {
    width: 240px;
    min-width: 240px;
    height: 300px;
  }
  
  .projects-carousel-items .property-card .media {
    height: 160px;
  }
  
  .projects-carousel-items .property-card .content {
    padding: 0.75rem;
  }
  
  .projects-carousel-items .property-card .content h3 {
    font-size: 0.9rem;
  }
  
  .projects-carousel-items .property-card .content .price {
    font-size: 0.95rem;
  }
}

/* ===== Responsive para tarjetas de proyectos/propiedades ===== */
@media (max-width: 1200px) {
  .properties {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }
}

@media (max-width: 768px) {
  .properties {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
  }
  
  .card.property {
    max-width: 100%;
  }
  
  .card.property .media img {
    height: 160px;
  }
}

@media (max-width: 480px) {
  .properties {
    grid-template-columns: 1fr;
  }
  
  .card.property .media img {
    height: 180px;
  }
}

/* Estilos para Calculadora Compleja */
.calc-tabs {
  display: flex;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 1rem;
}

.calc-tab {
  flex: 1;
  padding: 0.75rem;
  border: none;
  background: none;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
  font-weight: 500;
  color: #64748b;
}

.calc-tab:hover {
  background-color: #f8fafc;
  color: #374151;
}

.calc-tab.active {
  border-bottom-color: #2563eb !important;
  color: #2563eb;
  font-weight: 600;
}

.calc-tab-content {
  display: none;
}

.calc-tab-content.active {
  display: block;
}

.calculator-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.calc-input-group {
  display: flex;
  flex-direction: column;
}

.calc-input-group label {
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #374151;
  font-size: 0.875rem;
}

.calc-input {
  padding: 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: border-color 0.3s ease;
  background: white;
}

.calc-input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.calc-slider {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: #e2e8f0;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  margin: 0.5rem 0;
}

.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #2563eb;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.calc-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #2563eb;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.calc-results {
  background: #f8fafc;
  padding: 1.5rem;
  border-radius: 0.75rem;
  margin-top: 1rem;
  border-left: 4px solid #2563eb;
}

.calc-results h4 {
  margin: 0 0 1rem 0;
  color: #1e40af;
  font-size: 1.125rem;
  font-weight: 600;
}

.calc-input-group small {
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: #64748b;
}

/* Estilos específicos para pestañas de arriendo e inversión */
#tab-rent .calc-results {
  background: #f0fdf4;
  border-left-color: #166534;
}

#tab-rent .calc-results h4 {
  color: #166534;
}

#tab-investment .calc-results {
  background: #fef3c7;
  border-left-color: #92400e;
}

#tab-investment .calc-results h4 {
  color: #92400e;
}

/* Responsive para calculadora */
@media (max-width: 768px) {
  .calculator-grid {
    grid-template-columns: 1fr;
  }
  
  .calc-tabs {
    flex-wrap: wrap;
  }
  
  .calc-tab {
    min-width: 33.333%;
    text-align: center;
    font-size: 0.875rem;
  }
  
  .calc-input-group[style*="grid-column: 1 / -1"] {
    grid-column: 1;
  }
}

@media (max-width: 480px) {
  .calc-tabs {
    flex-direction: column;
  }
  
  .calc-tab {
    border-bottom: 1px solid #e2e8f0;
    border-right: none;
    min-width: auto;
  }
  
  .calc-tab.active {
    border-bottom-color: #2563eb !important;
    border-left: 4px solid #2563eb;
  }
}

/* ===== HEADER MÓVIL PROFESIONAL ===== */
@media (max-width: 859px) {
  /* Header compacto en móvil */
  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
  }
  
  .header-inner {
    height: 70px;
    padding: 0 1rem;
  }
  
  /* Logo más pequeño en móvil */
  .logo img {
    height: 50px;
    width: auto;
  }
  
  /* Botón hamburguesa profesional */
  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 2px solid var(--border);
    border-radius: 10px;
    background: #fff;
    color: var(--primary);
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  }
  
  .menu-toggle:hover {
    border-color: var(--primary);
    background: rgba(38, 117, 153, 0.05);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(38, 117, 153, 0.15);
  }
  
  .menu-toggle:active {
    transform: scale(0.98);
  }
  
  .menu-toggle.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
  }
  
  /* Overlay oscuro cuando el menú está abierto */
  .mobile-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  .mobile-menu-overlay.show {
    display: block;
    opacity: 1;
  }
  
  /* Menú móvil como drawer deslizable */
  .nav {
    display: flex;
    position: fixed;
    top: 0;
    right: -100%;
    width: min(320px, 85vw);
    height: 100vh;
    background: #fff;
    flex-direction: column;
    padding: 5rem 1.5rem 2rem;
    gap: 0.5rem;
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.15);
    z-index: 999;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    border-left: 1px solid var(--border);
  }
  
  .nav.show {
    right: 0;
  }
  
  /* Enlaces del menú móvil */
  .nav a {
    width: 100%;
    text-align: left;
    padding: 1rem 1.25rem;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text);
    border: 1px solid transparent;
    transition: all 0.2s ease;
  }
  
  .nav a:hover {
    background: rgba(38, 117, 153, 0.08);
    border-color: rgba(38, 117, 153, 0.2);
    color: var(--primary);
    transform: translateX(4px);
  }
  
  /* Botón CTA en el menú móvil */
  .nav .btn-primary {
    margin-top: 1rem;
    width: 100%;
    text-align: center;
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }
  
  /* Header de navegación móvil */
  .nav::before {
    content: 'Menú';
    position: absolute;
    top: 1.25rem;
    left: 1.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    font-family: 'Playfair Display', Georgia, serif;
  }
  
  /* Botón cerrar en el menú (elemento real) */
  .menu-close-btn {
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(38, 117, 153, 0.1);
    color: var(--primary);
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    z-index: 10000;
    padding: 0;
    pointer-events: auto;
  }
  
  .menu-close-btn:hover {
    background: var(--primary);
    color: #fff;
  }
  
  /* Ocultar el pseudo-elemento ::after del nav en móvil ya que usamos botón real */
  .nav::after {
    display: none;
  }
  
  /* Prevenir scroll del body cuando el menú está abierto */
  body.menu-open {
    overflow: hidden;
  }
  
  /* Ajustar contenido principal para header fixed */
  main {
    margin-top: 70px;
  }
  
  /* Hero ajustado para header fixed */
  .hero {
    min-height: calc(70vh - 70px);
  }
}

/* Móvil pequeño - ajustes adicionales */
@media (max-width: 480px) {
  .header-inner {
    height: 64px;
  }
  
  .logo img {
    height: 44px;
  }
  
  .menu-toggle {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }
  
  main {
    margin-top: 64px;
  }
  
  .hero {
    min-height: calc(70vh - 64px);
  }
  
  .nav {
    width: min(300px, 90vw);
    padding: 4.5rem 1.25rem 1.5rem;
  }
}

/* ===== Advanced Filters Panel ===== */
.filters-panel {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.filters-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 140px;
  flex: 1;
}

.filter-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.filter-group select {
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.9rem;
  background: #ffffff;
  cursor: pointer;
  transition: border-color 0.2s;
}

.filter-group select:focus {
  outline: none;
  border-color: var(--primary);
}

.filter-buttons {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.filter-buttons button {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #ffffff;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-buttons button:hover {
  border-color: var(--primary);
}

.filter-buttons button.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.filters-actions {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  justify-content: space-between;
  align-items: center;
}

#resultsCount {
  font-size: 0.9rem;
  color: var(--muted);
}

.filter-buttons-group {
  display: flex;
  gap: 0.5rem;
}

.btn-secondary {
  background: #f3f4f6;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: #e5e7eb;
}

@media (max-width: 768px) {
  .filters-panel {
    padding: 1rem;
  }

  .filters-row {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-group {
    min-width: auto;
  }

  .filters-actions {
    flex-direction: column;
  }

  .filter-actions button {
    flex: 1;
  }
}

