:root {
  --bg: #9e9c895a;
  --text: rgba(0, 0, 0, 0.82);
  --muted: #ffffff;
  --primary: rgba(30, 90, 60, 0.741);
  --accent: rgb(30, 90, 60);
  --border: #e6e8eb;
  --font-brand: 'Rajdhani', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --title: rgba(183, 183, 183, 0.934);
  --titlehover: rgb(255, 255, 255);
  
  
}


* { box-sizing: border-box; }
html { scroll-padding-top: 56px; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Rajdhani', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}


/* Títulos y navegación con la del logo */
h1, h2, h3,
.nav-list a, .submenu-toggle {
  font-family: var(--font-brand);
  font-weight: 800;           /* similar al grosor del logo */
  letter-spacing: .2px;       /* leve ajuste */
  margin: 0 0 0.5rem;
  color: var(--accent);
}
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}



@media (min-width: 1024px) {
  .container {
    width: min(1900px, 99%);
  }
}
.narrow { width: min(800px, 92%); margin: 0 auto; }

.section { padding: 4rem 0; }
.section.bg-muted { background: var(--muted); }
.section-head {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 0.5rem; margin-bottom: 2rem;
}
.section-head h2 {
  position: relative; display: inline-block; padding-bottom: 0.6rem;
}
.section-head h2::after {
  content: '';
  position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 48px; height: 3px;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.4s ease;
}
.section-head:hover h2::after { width: 80px; }
.section-head .ver-todo { color: var(--primary); text-decoration: none; border-bottom: 1px solid transparent; font-size: 0.9rem; }
.section-head .ver-todo:hover { border-bottom-color: var(--primary); }

/* Animación reveal al scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}



/* =======================
   Navbar
   ======================= */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1200;
  background: transparent;
  transition: background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.07), 0 4px 20px rgba(0,0,0,0.05);
  border-bottom: 1px solid var(--accent);
}
/* Nav links blancos sobre el hero */
.site-header:not(.scrolled) .nav-list a  {
  color: var(--title);
}
.site-header:not(.scrolled) .nav-list a:hover {
  background:  transparent;
  color: var(--titlehover);
}
.site-header:not(.scrolled) .submenu-toggle {
  color: var(--title);
}


.site-header:not(.scrolled) .submenu-toggle:hover {
  background: transparent;
  color: var(--titlehover);
}
.site-header:not(.scrolled) .nav-toggle {
  color: var(--title);
}
.site-header:not(.scrolled) .nav-toggle:hover {
  background: rgba(255,255,255,0.15);
  color: var(--titlehover);
}


  .site-header:not(.scrolled) .submenu {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  }
  .site-header:not(.scrolled) .submenu a {
    color: var(--title);
  }
  .site-header:not(.scrolled) .submenu a:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
  }

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 86px;
  transition: height 0.35s ease;
  padding: 0 1rem;
  position: relative;
}

@media (min-width: 1024px) {
  .nav-container {
    padding: 0 4rem;
  }
}
.site-header.scrolled .nav-container {
  height: 56px;
}

.site-header.scrolled .logo-img {
  height: 44px;
  margin-top: 0;
  margin-bottom: 0;
}
.site-header.scrolled .nav-list {
  margin-top: 0;
  gap: 0;
  align-items: center;
}
.site-header.scrolled .nav-list a,
.site-header.scrolled .submenu-toggle {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  font-weight: 700;
  padding: 0.7rem 0.7rem 0.2rem;
  color: var(--accent);
}

.site-header.scrolled .nav-list > li {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

/* DESPUÉS ✅ */
.site-header.scrolled .nav-list > li + li::before {
  content: '';
  display: inline-block;
  width: 1.5px;
  height: 12px;
  background: var(--primary);
  opacity: 0.25;
  flex-shrink: 0;
  position: relative;
  top: 0;
  margin: 0 6px;    /* ← 6px a izquierda Y derecha del separador */
  padding: 0;
  vertical-align: middle;
}


@media (max-width: 1024px) {
  .nav-container {
    justify-content: center;
    position: relative;
  }

  .nav-toggle {
    position: absolute;
    right: 1rem;
  }
}

/* Breadcrumb */
.breadcrumb,
.breadcrumb-back {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  display: none;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-family: var(--font-main, 'Rajdhani', sans-serif);
  letter-spacing: 0.06em;
  font-weight: 600;
  white-space: nowrap;
  color: var(--accent);
  text-decoration: none;
}

.site-header.scrolled .breadcrumb,
.site-header.scrolled .breadcrumb-back {
  display: flex;
}


.breadcrumb a {
  color: var(--accent);
  text-decoration: none;
  opacity: 0.75;
  transition: opacity 0.2s;
}

.breadcrumb a:hover { opacity: 1; }
.breadcrumb .sep { opacity: 0.45; }
.breadcrumb .current { opacity: 0.9; }
.breadcrumb-back { opacity: 0.75; transition: opacity 0.2s; }

@media (min-width: 1024px) {
  .breadcrumb,
  .breadcrumb-back { display: none !important; }
  
}

@media (max-width: 1023px) {
  .breadcrumb,
  .breadcrumb-back {
    z-index: 1500;
    pointer-events: auto;
    min-height: 44px;
    padding: 0 0.5rem;
  }

  .nav-container {
    pointer-events: none;
  }
  .nav-container * {
    pointer-events: auto;
  }
}

.site-header.nav-open .breadcrumb,
.site-header.nav-open .breadcrumb-back { display: none !important; }
.breadcrumb-back:hover { opacity: 1; }

.logo-link { display: flex; align-items: center; text-decoration: none; }
.logo-img  {
  margin-top: 26px;
  height: 100px;
  display: block;
  transition: height 0.35s ease, opacity 0.35s ease;
}
.site-header:not(.scrolled) .logo-img {
  opacity: 0.83;
}

.site-header.scrolled .logo-img { 
  height: 96px;
  margin-top: 26px;
  margin-bottom: 16px;
}

/* Desktop nav */
.nav-desktop {
  display: flex; align-items: center;
  position: absolute; left: 50%; transform: translateX(-50%);
}
.nav-list {
  display: flex;
  gap: 0.15rem;
  list-style: none;
  margin: 0; padding: 0;
  margin-top: 19px;
}

.nav-list a,
.submenu-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.8rem;
  font-family: var(--font-brand);
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  background: transparent;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: color 0.2s;
  vertical-align: middle;
}

/* Línea subrayado animada */
.nav-list a::after,
.submenu-toggle::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0.8rem;
  right: 0.8rem;
  height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s ease;
}
.nav-list a:hover::after,
.submenu-toggle:hover::after,
.has-submenu.open > .submenu-toggle::after {
  transform: scaleX(1);
}

.nav-list a:hover,
.submenu-toggle:hover {
  background: transparent;
  color: var(--accent);
}

/* Submenú */
.has-submenu { position: relative; }

/* Puente invisible que cubre el gap entre el botón y el submenú */
.has-submenu::before {
  content: '';
  position: absolute;
  top: 100%;
  left: -10px;
  right: -10px;
  height: 20px;
}

.submenu {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  display: none;
  min-width: 190px;
  background: rgba(255, 255, 255, 0.97);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.15);
  padding: 0.4rem;
  list-style: none;
  margin: 0;
  z-index: 7000;
}
.has-submenu.open > .submenu { display: block; }
@media (hover: hover) { .has-submenu:hover > .submenu { display: block; } }

.submenu a {
  display: block;
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  color: var(--primary);
  text-decoration: none;
  font-family: var(--font-brand);
  font-size: 0.95rem;
  font-weight: 500;
  transition: background 0.9s;
}
.submenu a:hover { background: #eef2ee;}

.submenu-toggle i { transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1); font-size: 0.75em; }
.submenu-toggle[aria-expanded="true"] i,
.has-submenu.open > .submenu-toggle i,
.has-submenu:hover > .submenu-toggle i { transform: rotate(180deg); }

/* Redes sociales header */
.nav-socials {
  display: flex; align-items: center; gap: 0.6rem;
}
.nav-socials a {
  font-size: 1rem; width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; transition: background 0.2s, color 0.2s;
  text-decoration: none;
}
.site-header:not(.scrolled) .nav-socials a { color: rgba(255,255,255,0.8); }
.site-header:not(.scrolled) .nav-socials a:hover { background: rgba(255,255,255,0.15); color: #fff; }
.site-header.scrolled .nav-socials a { color: var(--accent); }
.site-header.scrolled .nav-socials a:hover { background: var(--accent); color: #fff; }
@media (max-width: 1024px) { .nav-socials { display: none; } }

/* Hamburger */
.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 1.35rem;
  cursor: pointer;
  color: var(--primary);
  padding: 0.4rem 0.5rem;
  border-radius: 8px;
  transition: background 0.15s;
  z-index: 1300;
}
.nav-toggle:hover { background: #eef2ee; }

/* Mobile nav */
.nav-mobile {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  background: #fff;
  border-top: 1px rgba(0, 107, 43, 0.481);
}
.nav-mobile.is-open {
  max-height: 600px;
  border-top-color: var(--border);
}
.nav-mobile ul { list-style: none; margin: 0; padding: 0.5rem 1.25rem 1rem; }
.nav-mobile ul li a {
  display: block;
  padding: 0.75rem 0;
  font-family: var(--font-brand);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
}
.nav-mobile ul li:last-child a { border-bottom: none; }
.nav-mobile ul li a:hover { color: var(--accent); }
.nav-mobile-socials {
  display: flex; justify-content: center; gap: 1.2rem;
  padding: 1rem 1.25rem 1.5rem;
  border-top: 1px solid rgba(30,90,60,0.1);
  margin-top: 0.5rem;
}
.nav-mobile-socials a {
  color: var(--accent); font-size: 1.3rem;
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; transition: background 0.2s, color 0.2s;
  text-decoration: none;
}
.nav-mobile-socials a:hover { background: var(--accent); color: #fff; }

@media (max-width: 1024px) {
  .nav-desktop { display: none; }
  .nav-toggle   { display: flex; }
}

/* Footer tablet: mapa ocupa fila completa abajo */
@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .footer-col:last-child {
    grid-column: 1 / -1;
  }
}

/* =======================
   Hero
   ======================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid; place-items: center;
  color: #fff;
  padding-top: 83px;
  background-image: url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?q=80&w=1600&auto=format&fit=crop');
  background-size: cover; background-position: center;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13,27,42,0.55), rgba(13,27,42,0.55));
}
.hero-content { position: relative; text-align: center; }
.hero h1 {
  font-weight: 500;
  color: #fff;
  font-size: clamp(3.5rem, 7vw, 6rem);
  line-height: 1.1;
  text-align: center;
  margin-bottom: 2.9rem;
  text-shadow: 0 0 20px rgba(0, 0, 0, 0.8), 0 0 40px rgba(0, 0, 0, 0.5);
}
.hero-sub-text {
 
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.9), 0 2px 6px rgba(0, 0, 0, 0.7);
}

.hero p  { 
  font-weight: 500;
  margin: 0.25rem 0 1.5rem; opacity: 0.9; font-size: 1.25rem;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.9), 0 2px 6px rgba(0, 0, 0, 0.7); 
}

/* Palabras principales del h1 */
.hero-word {
  display: inline-block;
}

/* Fila con líneas a ambos lados de inmobiliaria */
.hero-sub-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 39px;
}

/* Texto "inmobiliaria" más chico y delgado */
.hero-sub-text {
  display: inline-block;
  font-size: clamp(0.95rem, 2vw, 1.3rem);
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  white-space: nowrap;
}

/* Líneas verdes — base visible sin animación */
.hero-line-left,
.hero-line-right {
  height: 1.5px;
  width: 56px;
  background: rgba(30, 160, 90, 0.9);
  border-radius: 2px;
  flex-shrink: 0;
}

/* ── Animaciones de entrada del hero ────────────────────────── */
@media (prefers-reduced-motion: no-preference) {

  /* 1. Drift del fondo via ::before (solo hero de index) */
  .hero--index {
    overflow: hidden;
    background-image: none;
  }
  .hero--index::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?q=80&w=1600&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    transform: scale(1.08);
    animation: hero-drift 7s ease-in-out alternate infinite;
  }

  /* Estados iniciales (invisibles hasta que JS agrega .hero--animated) */
  .hero-word       { opacity: 0; }
  .hero-sub-text   { opacity: 0; }
  .hero-line-left,
  .hero-line-right { width: 0; }
  .hero--index #buscador { opacity: 0; }

  /* 2. Stagger palabras principales */
  .hero--animated .hero-word {
    animation: word-drop 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  }
  .hero--animated .hero-word:nth-child(1) { animation-delay: 0s; }
  .hero--animated .hero-word:nth-child(2) { animation-delay: 0.14s; }
  .hero--animated .hero-sub-text {
    animation: word-drop 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.28s forwards;
  }

  /* 3. Líneas verdes desde el centro hacia afuera */
  .hero--animated .hero-line-left,
  .hero--animated .hero-line-right {
    animation: line-draw 0.6s ease-out 0.7s forwards;
  }

  /* 4. Buscador fade up (solo hero de index) */
  .hero--index.hero--animated #buscador {
    animation: fade-up 0.6s ease-out 1.1s forwards;
  }

  @keyframes word-drop {
    from { opacity: 0; transform: translateY(-22px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  @keyframes line-draw {
    from { width: 0; }
    to   { width: 56px; }
  }
  @keyframes fade-up {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  @keyframes hero-drift {
    from { transform: scale(1.08) translateY(0); }
    to   { transform: scale(1.08) translateY(-18px); }
  }
}

.search-form {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.9fr 0.7fr 0.8fr 0.8fr auto;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  padding: 1rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255,255,255,0.3);
}
.search-form input, .search-form select {
  padding: 0.7rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  font-size: 0.95rem;
  background: rgba(20, 20, 20, 0.18);
  backdrop-filter: blur(8px);
  color: #fff;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.search-form input::placeholder { color: rgb(255, 255, 255); }
.search-form select option { background: #8a8a8a8b; color: #000000; }
.search-form input:focus, .search-form select:focus {
  border-color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.25);
  color: black;
}
.btn {
  background: var(--primary); border: none; 
  color: #fff; font-weight: 600; padding: 0.6rem 1rem;
  border-radius: 8px; cursor: pointer;
}
.btn:hover { filter: brightness(0.95); }
.search-form .btn {
  background: rgba(255, 255, 255, 0.36);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
  border-radius: 10px;
  border: none;
  padding: 1.3rem 3.9rem;
  letter-spacing: 0.04em;
  transition: background 0.2s, transform 0.2s;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.25);
  }
.search-form .btn:hover {
  background: var(--accent);
  transform: scale(1.03);
  filter: none;
}




/* =======================
   Cards
   ======================= */
.grid-cards, .disponibles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

/* Slider destacadas */
.slider-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 0.5rem 0 1.5rem;
}
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-60%);
  z-index: 2;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 20%;
  width: 2.4rem;
  height: 2.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
  transition: background 0.2s, opacity 0.2s;
  opacity: 0.85;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.slider-btn:hover { opacity: 1; background: var(--accent-dark, var(--accent)); }
.slider-btn:disabled { opacity: 0.25; cursor: default; }
.slider-btn--prev { left: 0.5rem; }
.slider-btn--next { right: 0.5rem; }
.slider-track {
  display: flex !important;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0.5rem 2rem 0.5rem;
  flex: 1;
}
.slider-track::-webkit-scrollbar { display: none; }
.slider-track .card {
  flex: 0 0 calc(50% - 0.75rem);
  scroll-snap-align: start;
  min-width: 300px;
}
@media (min-width: 1100px) {
  .slider-track .card { flex: 0 0 calc(33.333% - 1rem); min-width: 320px; }
}
.slider-scrollbar {
  width: min(320px, 60%);
  height: 4px;
  background: rgba(30,90,60,0.15);
  border-radius: 4px;
  margin: 0.8rem auto 0;
  position: relative;
  overflow: hidden;
}
.slider-thumb {
  position: absolute;
  left: 0; top: 0;
  height: 100%;
  background: var(--accent);
  border-radius: 4px;
  transition: left 0.15s ease, width 0.15s ease;
}
@media (max-width: 560px) {
  .slider-track .card { flex: 0 0 85%; min-width: unset; }
  .nav-mobile ul li a { border-bottom: none; }
}

.card {
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 14px rgba(0,0,0,0.07);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
  border: none;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(0,0,0,0.13);
}

/* Imagen */
.card-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  display: block;
  text-decoration: none;
  background: #e8ede9;
}
.card-img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.card:hover .card-img { transform: scale(1.06); }

/* Overlay precio */
.card-price-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.68) 0%, transparent 100%);
  padding: 2.5rem 0.9rem 0.7rem;
}
.card-price {
  color: #fff;
  font-weight: 700;
  font-size: 1.6rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.65), 0 1px 2px rgba(0,0,0,0.5);
}

/* Badge operación (encima imagen) */
.card .badge {
  position: absolute;
  top: 0.7rem; left: 0.7rem;
  background: var(--primary);
  color: #fff;
  border: none;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  backdrop-filter: blur(2px);
}
.card .badge-credit {
  position: absolute;
  top: 0.7rem; left: auto; right: 1rem;
  background: #1a6ac0bd;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 6rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  backdrop-filter: blur(2px);
}

/* Body */
.card-body {
  padding: 1rem 1.1rem 1.15rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.3rem;
  color: var(--primary);
  line-height: 1.35;
}
.card-meta {
  font-size: 0.875rem;
  color: #555;
  margin: 0 0 1rem;
  flex: 1;
}

/* Botón outline */
.btn-outline {
  display: inline-block;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-family: var(--font-brand);
  font-weight: 600;
  background: transparent;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  border-radius: 8px;
  text-align: center;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
}
.btn-outline:hover { background: var(--accent); color: #fff; }

@media (max-width: 900px) { .grid-cards, .disponibles { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 560px) { .grid-cards, .disponibles { grid-template-columns: 1fr; } }


/* =======================
   Franja Instagram
   ======================= */
.instagram-banner {
  background: var(--bg);
  color: #000000;
  padding: 2.5rem 0;
}

.instagram-banner__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

@media (max-width: 600px) {
  .instagram-banner__inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .instagram-banner__inner div { flex: unset; }

  .instagram-banner__btn { width: 100%; text-align: center; }
}

.instagram-banner__icon {
  font-size: 2.2rem;
  flex-shrink: 0;
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.instagram-banner__inner div { flex: 1; }

.instagram-banner__inner h2 {
  font-family: var(--font-brand);
  font-size: 1.4rem;
  margin-bottom: 0.2rem;
}

.instagram-banner__inner p {
  font-size: 0.9rem;
  opacity: 0.85;
}

.instagram-banner__btn {
  background: transparent;
  color: var(--accent);
  font-weight: 700;
  white-space: nowrap;
  border-radius: 6px;
  padding: 0.6rem 1.4rem;
  text-decoration: none;
  font-family: var(--font-brand);
  transition: opacity 0.2s;
}

.instagram-banner__btn:hover { 
  opacity: 0.85;
  background: var(--accent);
  color: #fff;
}

/* =======================
   Footer
   ======================= */
.site-footer {
  background: var(--accent); color: #e9edf2;
  padding-top: 3rem; border-top: 1px solid #0a1320;
}
.footer-logo-wrap {
  display: flex; justify-content: center;
  padding-bottom: 2.5rem;
}
.footer-logo-img { height: 90px; width: auto; }
.footer-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  align-items: start; gap: 2.5rem; padding-bottom: 2rem;
}
.footer-col h3 { margin-top: 0; color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; }
.contact-list { list-style: none; padding: 0; margin: 0 0 0.6rem; }
.contact-list li { margin: 0.4rem 0; font-size: 0.9rem; }
.contact-list a { color: #e9edf2; text-decoration: none;
  border-bottom: 1px solid transparent; }
.contact-list a:hover { border-bottom-color: #e9edf2; }
.socials a { color: #e9edf2; margin-right: 0.6rem; font-size: 1.2rem; }
.footer-nav { list-style: none; padding: 0; margin: 0; }
.footer-nav li { margin: 0.4rem 0; }
.footer-nav a { color: #e9edf2; text-decoration: none; font-size: 0.9rem;
  border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.footer-nav a:hover { border-bottom-color: #e9edf2; }
.footer-map iframe { width: 100%; height: 160px; border: none; border-radius: 6px; filter: grayscale(30%); }
.brand-footer { font-size: 1.2rem; color: #fff; }
.copy { text-align: center; border-top: 1px solid rgba(255,255,255,0.1);
  padding: 0.8rem 0; margin: 0; color: #a9b6c7; font-size: 0.85rem; }

/* =======================
   Utils
   ======================= */
.muted { color: #667085; }
#ver-mas {
  background: none; border: none; color: var(--accent);
  font-size: 0.9rem; opacity: 0.7; letter-spacing: 0.04em;
  cursor: pointer; display: inline-flex; align-items: center; gap: 0.4rem;
  transition: opacity 0.2s; box-shadow: none; padding: 0;
}
#ver-mas::after { content: ' →'; transition: margin-left 0.2s; }
#ver-mas:hover { opacity: 1; }
#ver-mas:hover::after { margin-left: 4px; }
.ver-todas-wrap { text-align: center; margin-top: 1rem; }
.ver-todas-link {
  color: var(--accent); font-size: 0.9rem; text-decoration: none;
  opacity: 0.7; letter-spacing: 0.04em;
  transition: opacity 0.2s; display: inline-flex; align-items: center; gap: 0.4rem;
}
.ver-todas-link:hover { opacity: 1; }
.ver-todas-link:hover i { transform: translateX(4px); }
.ver-todas-link i { transition: transform 0.2s; }

/* Toggle disponibles */
.disponibles-toggle {
  display: flex; align-items: center; justify-content: center;
  gap: 0.6rem; margin: 0 auto 1.5rem;
  background: none; border: 2px solid var(--accent);
  color: var(--accent); border-radius: 12px;
  padding: 0.7rem 2rem; font-family: var(--font-brand);
  font-size: 1rem; font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase; cursor: pointer;
  transition: background 0.25s, color 0.25s, transform 0.25s;
}
.disponibles-toggle:hover { background: var(--accent); color: #fff; }
.disponibles-toggle i {
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
}
.disponibles-toggle[aria-expanded="true"] i { transform: rotate(180deg); }
.disponibles-toggle[aria-expanded="true"] { background: var(--accent); color: #fff; }

.disponibles-collapse {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.55s ease, opacity 0.4s ease;
}
.disponibles-collapse.open {
  max-height: 9999px;
  opacity: 1;
}
.center { text-align: center; }
.mt-3 { margin-top: 2rem; }

/* =======================
   Responsive
   ======================= */

/* Notebooks */
@media (max-width: 1600px) {
  .search-form { grid-template-columns: 1fr 1fr 1fr 1fr auto; }
}

/* Tablets / pantallas medianas */
@media (max-width: 1024px) {
  .search-form { grid-template-columns: 1fr 1fr 1fr; }
  .search-form .btn { grid-column: 1 / -1; }
}

/* Tablets chicas: ocultar precios */
@media (max-width: 700px) {
  .search-form { grid-template-columns: 1fr 1fr; }
  .search-form #precioMin, .search-form #precioMax { display: none; }
}

/* Mobile y nav colapsable */
@media (max-width: 800px) {
  .grid-cards { grid-template-columns: 1fr 1fr; }

  /* Mantener 3 columnas para centrar logo, con el toggle a la derecha */
  .header-grid { grid-template-columns: 1fr auto 1fr; }

  /* Mostrar botón y ocultar menús por defecto */
  .nav-toggle { display: inline-flex; justify-self: end; }
  .nav-left, .nav-right { display: none; }

  /* Al abrir (agregar .is-open al header) mostramos ambos menús en bloque */
  .site-header.is-open .nav-left,
  .site-header.is-open .nav-right {
    display: block;
    grid-column: 1 / -1; /* ocupar todo el ancho debajo del header */
    /*justify-self: stretch;*/
    margin-top: 0.5rem;
  }

  /* Caja de las listas en mobile */
  .site-header.is-open .nav-list {
    /*position: static;*/
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.6rem;
    /*display: flex;*/
    flex-direction: column;
    /*gap: 0.2rem;*/
    box-shadow: 0 10px 24px rgba(0,0,0,0.08);
  }

  /* Submenú en mobile: inline (no flotante) */
  .submenu { position: static; box-shadow: none; border: none; padding: 0; display: none; }
  .has-submenu.open .submenu { display: block; }

  /* Logo un poco más chico en mobile si es imagen */
  .brand img { height: 48px; }
}

/* Teléfonos pequeños */
@media (max-width: 560px) {
  .hero { align-items: flex-start; padding-top: 160px; padding-bottom: 3rem; }
  .grid-cards { grid-template-columns: 1fr; }
  .search-form { grid-template-columns: 1fr; }
  .search-form #tipo { display: block; }
  .search-form #precioMin, .search-form #precioMax { display: none; }



  /* Footer mobile */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  .footer-col h3 { margin-bottom: 0.6rem; }
  .contact-list li { justify-content: center; display: flex; align-items: center; gap: 0.4rem; }
  .socials { justify-content: center; display: flex; }
  .footer-nav { display: flex; flex-direction: column; align-items: center; }
  .footer-map iframe { height: 140px; }

 /* 2 filas centradas (arriba y abajo) */
  .subheader-grid{
    display: flex;
    flex-direction: column;
    align-items: center;   /* centra los bloques */
    gap: .5rem;
    padding: 0;
  }

  /* Los dos grupos ocupan todo el ancho y se centran */
  .sub-header .nav-left,
  .sub-header .nav-right{
    width: 100%;
    display: flex;
    justify-content: center; /* centra el grupo */
  }

  /* Listas centradas y compactas */
  .sub-header .nav-left  .nav-list,
  .sub-header .nav-right .nav-list{
    display: flex;
    justify-content: center; /* centra los ítems */
    flex-wrap: wrap;
    gap: .35rem .6rem;
    margin: 0;
    padding: 0;
  }
  /* Botones compactos */
  .sub-header .nav-list a,
  .sub-header .submenu-toggle{
    display: inline-flex;
    align-items: center;
    padding: .45rem .6rem;
    border-radius: 8px;
    font-size: .95rem;
  }

  /* Submenú de Servicios como popover (igual a desktop) */
  .sub-header .has-submenu { position: relative; }
  .sub-header .submenu{
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: min(240px, 85vw);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 12px 28px rgba(0,0,0,.12);
    display: none;
    z-index: 5600;                 /* encima del hero */


    /* (opcional) centrar el popover de "Servicios" bajo el botón */
  .sub-header .has-submenu{ position: relative; }
  .sub-header .submenu{
    position: absolute;
    top: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%); /* queda centrado respecto al botón */
    min-width: min(240px, 85vw);
  }
  }
  .sub-header .has-submenu.open > .submenu{ display: block; }

  

}





/* ===== Estilos para páginas de servicios (ventas, alquileres, temporarios) ===== */

/* Sección principal */
.contenido-pagina {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Hero de cada página */
.hero-pagina {
  text-align: center;
  margin-bottom: 3rem;
}

.hero-pagina h1 {
  font-size: 2.5rem;
  color: var(--verde, #0d1b2a); /* usa tu variable de color si ya la tenés */
  margin-bottom: 0.5rem;
}

.hero-pagina p {
  font-size: 1.2rem;
  color: #555;
}

/* Listado de propiedades */
.listado-propiedades {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

/* Tarjeta de propiedad */
.propiedad {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.propiedad:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.propiedad img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.propiedad h2 {
  font-size: 1.4rem;
  margin: 1rem;
  color: #222;
}

.propiedad p {
  margin: 0 1rem 0.5rem;
  color: #666;
}

.propiedad a {
  display: inline-block;
  margin: 1rem;
  padding: 0.6rem 1.2rem;
  background: var(--verde, #0d1b2a);
  color: #fff;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
}

.propiedad a:hover {
  background: #0d1b2a;
}







/* =======================
   subheader movimiento
   ======================= */

   /* Subheader colapsado/expandido */
.sub-header {
  background: #f4f4f4d1;
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
  position: sticky;    /* o 'relative' si no querés que se pegue arriba al scrollear */
  top: 0;
  z-index: 6000;       /* por encima del hero */
 
  max-height: 0;
  opacity: 0;
  transform: translateY(-8px);
  transition: max-height .35s ease, opacity .25s ease, transform .35s ease;
  
}
.sub-header.is-open {
  max-height: 500px;   /* ajustá si necesitás más */
  opacity: 1;
  transform: translateY(0);
  
}

/* Animación de la flecha */
.subheader-toggle i {
  transition: transform .25s ease;
}
.subheader-toggle[aria-expanded="true"] i {
  transform: rotate(180deg);
}

.header-logo { cursor: pointer; }




/* === El dropdown debe flotar y tener capa alta === */





/* Footer con logo de fondo (marca de agua) */
.site-footer {
  position: relative;          /* para posicionar el ::before */
  overflow: hidden;            /* por si el logo se sale */
}

/* Versión general (desktop/tablet) */
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../data/img/logoblanco.png"); /* ← ruta del logo */
  background-repeat: no-repeat;
  background-position: center, 5% center;       /* posición general */
  background-size: clamp(300px, 30vw, 620px); /* tamaño responsive */
  opacity: 0.4;                               /* transparencia */
  filter: grayscale(100%);                     /* opcional: desaturar */
  mix-blend-mode: multiply;                    /* si el fondo es claro */
  pointer-events: none;                        /* no tapa clics */
  z-index: 0;
}

/* Asegura que el contenido del footer quede por encima del logo */
.site-footer > * {
  position: relative;
  z-index: 1;
}

/* Versión móvil (≤ 560px) */
@media (max-width: 560px) {
  .site-footer::before {
    background-position: center ;           /* centrado arriba */
    background-size: min(100vw, 560px);         /* un poco más chico */
    opacity: 0.4;                              /* leve más visible en mobile */
  }
}





/* =======================
   Sección "Propiedades disponibles" en index.html
   ======================= */

/* =======================
   Página de Propiedad
   ======================= */
#propiedad { padding: 2rem 0 4rem; }


.layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
  align-items: start;
  margin-bottom: 3rem;
}

/* Galería */
.galeria-principal {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #e8ede9;
  aspect-ratio: 16/9;
  margin-bottom: 0.75rem;
}
.galeria-principal img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.ctrl {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.92);
  border: none;
  width: 42px; height: 42px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: background 0.2s;
  z-index: 2;
}
.ctrl:hover { background: #fff; }
.ctrl.prev { left: 0.85rem; }
.ctrl.next { right: 0.85rem; }

.thumbs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scrollbar-width: thin;
  padding-bottom: 4px;
}
.thumbs img {
  width: 80px; height: 58px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  opacity: 0.65;
  border: 2px solid transparent;
  transition: opacity 0.2s, border-color 0.2s;
  flex-shrink: 0;
}
.thumbs img:hover, .thumbs img.active { opacity: 1; border-color: var(--accent); }

/* Info */
.info h1 { font-size: clamp(1.3rem, 2.5vw, 1.9rem); margin-bottom: 0.2rem; }
.info .meta { color: #888; margin-bottom: 1rem; font-size: 0.95rem; }

.precio-op {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.op-badge {
  background: var(--accent);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: var(--font-brand);
}
.precio {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--primary);
  font-family: var(--font-brand);
}

.amenities {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.amenities li {
  background: #eef2ee;
  color: var(--primary);
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  font-size: 0.875rem;
  border: 1px solid #d4e0d6;
}

.descripcion, .caracteristicas { margin-bottom: 1.5rem; }
.descripcion h2, .caracteristicas h2 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #999;
  font-weight: 700;
  margin-bottom: 0.6rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
#caracteristicas-list {
  list-style: none;
  padding: 0; margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem 1rem;
}
#caracteristicas-list li { font-size: 0.95rem; }

.acciones {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}
.acciones .btn { flex: 1; min-width: 130px; text-align: center; padding: 0.75rem 1rem; }
.btn.primary { background: #25d366; color: #fff; border: none; }
.btn.primary:hover { background: #1ebe5a; }

/* Sidebar */
.sidebar { position: sticky; top: 90px; }
.sidebar .card {
  padding: 1.5rem;
  border-radius: 16px;
  margin-bottom: 1rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.09);
  display: block;
  border: 1px solid var(--border);
}
.precio-lg {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
  font-family: var(--font-brand);
  margin-bottom: 1rem;
}
.datos-rapidos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}
.datos-rapidos .item {
  text-align: center;
  padding: 0.65rem 0.5rem;
  background: #f2f6f3;
  border-radius: 10px;
  font-size: 0.82rem;
  color: #666;
}
.datos-rapidos .item strong {
  display: block;
  font-size: 1.05rem;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 0.15rem;
}
.id-ref {
  text-align: center;
  font-size: 0.78rem;
  color: #aaa;
  margin-top: 0.75rem;
  margin-bottom: 0;
}

/* Relacionadas */
.relacionadas {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.relacionadas h2 { margin-bottom: 1.5rem; }

/* Responsive propiedad */
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  #caracteristicas-list { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .galeria-principal { aspect-ratio: 4/3; }
  .acciones { flex-direction: column; }
  .acciones .btn { min-width: unset; }
}


/* ── Botón WhatsApp flotante ──────────────────────────────── */
.wa-float {
  position: fixed;
  bottom: 5.5rem;
  right: 2rem;
  z-index: 900;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #25d366;
  color: #505050f1;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.3s ease, visibility 0.3s ease;
}
.wa-float.visible {
  opacity: 1;
  visibility: visible;
}
.wa-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37,211,102,0.6);
  color: #fff;
}

/* ── Botón WhatsApp en tarjetas ───────────────────────────── */
.card-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.btn-wa {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.85rem;
  font-size: 0.9rem;
  font-family: var(--font-brand);
  font-weight: 600;
  background: #25d366;
  color: #505050f1;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s;
  white-space: nowrap;
}
.btn-wa:hover { 
  
  color: #fff; 
}

/* ── Botón "volver arriba" ─────────────────────────────────── */
#btn-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 900;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(30,90,60,0.25);
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(8px);
  color: var(--accent);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s ease;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
#btn-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
#btn-top:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* ── Quiénes somos ─────────────────────────────────────────── */
.quienes-hero {
  background: #fff;
  padding: calc(90px + 4rem) 0 4rem;
}

.quienes-hero .container {
  max-width: 1100px;
}

.quienes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.quienes-texto h1 {
  margin-top: 0;
  margin-bottom: 2rem;
  font-size: clamp(2.5rem, 5vw, 3.75rem);
}

.quienes-texto {
  padding-right: 2rem;
}

.quienes-texto p {
  font-size: 1.1rem;
  line-height: 1.8;
}

.quienes-foto img {
  width: 100%;
  height: 550px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.12);
}

@media (min-width: 768px) and (max-width: 1024px) {
  .quienes-foto img { height: 450px; }
}

@media (max-width: 768px) {
  .quienes-hero {
    padding-top: calc(66px + 1.5rem);
  }
  .quienes-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .quienes-foto img { height: 350px; }
}

/* ── Animaciones slide ────────────────────────────────────────── */
.reveal-left {
  opacity: 0;
  transform: translateX(-70px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal-right {
  opacity: 0;
  transform: translateX(70px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal-left.visible,
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ── Nuestro equipo ─────────────────────────────────────────── */
.equipo { padding: 5rem 0; }

.equipo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 2rem;
  justify-items: center;
}

.equipo-card img {
  height: auto;
  width: 300px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center top;
  border-radius: 8px;
  filter: grayscale(0.15) contrast(1.02) saturate(0.95);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: filter 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
}

.equipo-card img:hover {
  filter: none;
  transform: scale(1.01);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

.equipo-card h3 {
  margin: 1rem 0 0.25rem;
  color: var(--accent);
  font-size: 1.15rem;
}

.equipo-rol {
  margin: 0;
  font-size: 0.9rem;
  color: #666;
  font-weight: 500;
}

.equipo-card {
  text-align: center;
}

@media (max-width: 768px) {
  .equipo { padding: 3rem 0; }
  .equipo-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .equipo-card img { max-width: 240px; }
}

/* ── Reseñas ─────────────────────────────────────────── */
.resenas { padding: 5rem 0; background: #f9f9f6; }

.resenas-resumen {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  margin-bottom: 60px;
}

.resenas-rating { text-align: center; }

.rating-numero {
  display: block;
  font-family: var(--font-brand);
  font-weight: 800;
  font-size: 3.5rem;
  color: var(--accent);
  line-height: 1;
}

.rating-estrellas {
  color: #f4b400;
  font-size: 1.5rem;
  letter-spacing: 2px;
}

.rating-total {
  font-size: 0.9rem;
  color: #666;
  margin: 8px 0 0;
}

.btn-google {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 2px solid var(--accent);
  color: var(--accent);
  padding: 12px 24px;
  border-radius: 4px;
  font-family: var(--font-brand);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  transition: background 0.3s, color 0.3s;
}

.btn-google__logo {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.btn-google:hover { background: var(--accent); color: #fff; }

.resenas-carrusel {
  overflow: hidden;
  position: relative;
  width: 100%;
  mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
}

.resenas-track {
  display: flex;
  gap: 2rem;
  width: max-content;
  animation: scroll-resenas 40s linear infinite;
}

@keyframes scroll-resenas {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.resenas-carrusel:hover .resenas-track { animation-play-state: paused; }

.resena-card {
  width: 380px;
  flex-shrink: 0;
  padding: 24px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.resena-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.resena-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.resena-autor { flex: 1; }

.resena-nombre {
  font-family: var(--font-brand);
  font-weight: 600;
  font-size: 1rem;
  color: #222;
  margin: 0;
}

.resena-fecha {
  font-size: 0.8rem;
  color: #888;
  margin: 2px 0 0;
}

.resena-logo-google {
  width: 20px;
  height: 20px;
  opacity: 0.7;
  flex-shrink: 0;
}

.resena-estrellas {
  color: #f4b400;
  font-size: 1rem;
  letter-spacing: 1px;
}

.resena-texto {
  line-height: 1.6;
  color: #444;
  font-size: 0.9375rem;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

@media (min-width: 768px) and (max-width: 1024px) {
  .resena-card { width: 320px; }
}

@media (max-width: 768px) {
  .resenas { padding: 3rem 0; }
  .resenas-resumen { flex-direction: column; gap: 2rem; }
  .resenas-carrusel {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    mask-image: none;
    -webkit-mask-image: none;
    scrollbar-width: none;
  }
  .resenas-carrusel::-webkit-scrollbar { display: none; }
  .resenas-track { animation: none; }
  .resena-card { width: 300px; scroll-snap-align: start; }
}


.contacto-form select {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--accent);
  border-radius: 8px;
  font-family: var(--font-brand);
  font-size: 0.95rem;
  color: #818181;
  background: #f4f8f5;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%231e5a3c' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  cursor: pointer;
  transition: border-color 0.2s;
}

.contacto-form select:focus {
  outline: none;
  border-color: var(--accent);
}


/* ==================== PÁGINA CONTACTO ==================== */

.contacto-hero {
  padding-top: calc(56px + 4rem);
  padding-bottom: 2rem;
  text-align: center;
}
.contacto-hero h1 {
  margin-bottom: 1rem;
  color: var(--accent);
}
.contacto-subtitulo {
  max-width: 700px;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: #4f4f4f;
  margin: 0 auto;
}

.contacto-columnas {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: stretch;
}

.contacto-info,
.contacto-formulario {
  height: 100%;
}

.contacto-info .contacto-card {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 0;
  height: 100%;
}

/* info-item como <a>: reset de link */
a.info-item {
  text-decoration: none;
  color: inherit;
}
a.info-item:hover .info-valor {
  color: var(--accent);
}

.info-items {
  display: flex;
  flex-direction: column;
}

.info-item {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--prop-border);
  min-width: 0;
}
.info-items .info-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.info-items .info-item:first-child {
  padding-top: 0;
}
.info-icono {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--prop-green-lt);
  color: var(--accent);
  font-size: 1rem;
  border: 1px solid rgba(30, 90, 60, 0.15);
}
.info-label {
  font-size: 0.8rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 4px 0;
  font-weight: 600;
}
.info-contenido {
  min-width: 0;
}

.info-valor {
  font-size: 1rem;
  color: #222;
  line-height: 1.5;
  margin: 0;
  overflow-wrap: break-word;
}
a.info-valor {
  text-decoration: none;
  transition: color 0.2s;
}
a.info-valor:hover {
  color: var(--accent);
}

.info-redes {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid #e5e5e5;
}
.redes-iconos {
  display: flex;
  gap: 1rem;
  margin-top: 12px;
}
.red-icono {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  transition: opacity 0.2s;
}
.red-icono:hover {
  opacity: 0.85;
}
.red-icono i {
  font-size: 18px;
}

/* .contacto-formulario envuelve .contacto-card para neutralizar
   el min(680px) del esquema anterior sin tocar propiedad.css */
.contacto-formulario {
  width: 100%;
}
.contacto-formulario .contacto-card {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 0;
  height: 100%;
}

.contacto-mapa {
  width: 100%;
  margin: 0;
}
.mapa-container {
  width: 100%;
  height: 450px;
  overflow: hidden;
}
.mapa-container iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

@media (max-width: 1024px) {
  .contacto-columnas {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .mapa-container {
    height: 400px;
  }
}

@media (max-width: 768px) {
  .contacto-hero {
    padding-bottom: 0.5rem;
  }
  .contacto-grid.section {
    padding-top: 1.5rem;
  }
  .mapa-container {
    height: 350px;
  }
  .info-item {
    gap: 0.75rem;
  }
}

.hp-field { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }

/* ── Modal consulta cards ───────────────────────────────────────────────────── */
.mc-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.mc-overlay[aria-hidden="false"] { display: flex; }

.mc-box {
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  width: min(420px, 100%);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.mc-box h3 { margin: 0; font-size: 1.1rem; }
.mc-close {
  position: absolute;
  top: .75rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #666;
  line-height: 1;
}
.mc-prop-info { font-size: .85rem; color: #666; margin: 0; }
#mc-form { display: flex; flex-direction: column; gap: .75rem; }
#mc-form input {
  padding: .65rem 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: .95rem;
  font-family: inherit;
}
#mc-form input:focus { outline: 2px solid var(--color-primary, #c8973a); border-color: transparent; }

@media (max-width: 500px) {
  .card .badge-credit {
    font-size: 0.70rem;
    padding: 0.3rem 3rem;
  }
}

