/* =====================================================
   MODEL 5: VANGUARDIA — Avant-garde, asymmetric, arch-magazine
   Audience: Boutique / architect-led agencies
   Personality: Swiss design, MVRDV/BIG/Dezeen editorial
   Rule: MONOCHROME + ONE vivid accent (#FF3366)
   ===================================================== */

/* --- Base / Body --- */
body {
  background-color: var(--immo-bg);
  color: #111111;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.95rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: #111111;
  letter-spacing: -0.02em;
}

a {
  color: #111111;
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--immo-primary);
}

/* --- Link hover bar effect (general) --- */
.vg-link {
  position: relative;
  display: inline-block;
}
.vg-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--immo-primary);
  transition: width 0.3s ease;
}
.vg-link:hover::after {
  width: 100%;
}

/* --- Navbar (always hamburger, minimal) --- */
.navbar-immo {
  background: var(--immo-navbar-bg, transparent) !important;
  box-shadow: none;
  padding: 1.25rem 0;
  transition: border-color 0.4s ease, padding 0.3s ease;
  border-bottom: 1px solid transparent;
  z-index: 1000;
}

.navbar-immo.scrolled {
  border-bottom: 1px solid rgba(17, 17, 17, 0.1);
  padding: 0.75rem 0;
}

.navbar-immo .navbar-brand img {
  height: 40px;
  width: auto;
}

/* Hide the default collapse nav — always show hamburger */
.navbar-immo .navbar-collapse {
  display: none !important;
}

.navbar-immo .navbar-toggler {
  display: flex !important;
  align-items: center;
  justify-content: center;
  border: none;
  padding: 0;
  width: 28px;
  height: 28px;
  background: transparent;
  cursor: pointer;
}

.navbar-immo .navbar-toggler:focus {
  box-shadow: none;
}

.navbar-immo .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23111111' stroke-linecap='square' stroke-width='2' d='M4 8h22M4 15h22M4 22h22'/%3e%3c/svg%3e");
  width: 20px;
  height: 20px;
}

/* --- Fullscreen Overlay Menu --- */
.vg-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #111111;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.vg-overlay.active {
  opacity: 1;
  visibility: visible;
}

.vg-overlay-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: none;
  border: none;
  color: #FAFAFA;
  font-size: 2rem;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1;
  padding: 0.5rem;
  transition: color 0.3s ease;
}

.vg-overlay-close:hover {
  color: var(--immo-primary);
}

.vg-overlay-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
}

.vg-overlay-nav li {
  margin: 1rem 0;
}

.vg-overlay-nav a {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 4rem);
  color: #FAFAFA;
  text-decoration: none;
  text-transform: none;
  letter-spacing: -0.02em;
  transition: color 0.3s ease;
  display: inline-block;
}

.vg-overlay-nav a:hover {
  color: var(--immo-primary);
}

.vg-overlay-fav {
  position: absolute;
  bottom: 3rem;
  color: #888888;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.9rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.3s ease;
}

.vg-overlay-fav:hover {
  color: var(--immo-primary);
}

.vg-overlay-fav .nav-fav-count {
  background: var(--immo-primary);
  color: #FAFAFA;
  font-size: 0.7rem;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
}

/* --- Hero (split layout) --- */
.hero {
  height: 100vh;
  min-height: 100vh;
  background: none !important;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  position: relative;
  overflow: hidden;
}

.hero::before {
  display: none;
}

.hero-content {
  text-align: left;
  position: static;
  z-index: auto;
  color: #111111;
}

.hero-split {
  display: flex;
  width: 100%;
  height: 100%;
}

.hero-left {
  width: 40%;
  background: #FAFAFA;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 3rem 4rem 5%;
  position: relative;
  z-index: 2;
}

.hero-left h1 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(3rem, 6vw, 7rem);
  color: #111111;
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 2rem;
  text-shadow: none;
}

.hero-search {
  display: flex;
  align-items: center;
  border-bottom: 2px solid #111111;
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
  max-width: 400px;
}

.hero-search input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.9rem;
  color: #111111;
  padding: 0.5rem 0;
}

.hero-search input::placeholder {
  color: #888888;
}

.hero-search button {
  background: none;
  border: none;
  color: var(--immo-primary);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: transform 0.3s ease;
}

.hero-search button:hover {
  transform: scale(1.15);
}

.hero-slogan {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.9rem;
  color: #888888;
  max-width: 360px;
  line-height: 1.6;
}

.hero-right {
  width: 60%;
  position: relative;
  overflow: hidden;
}

/* Hero slideshow images */
.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: polygon(10% 0, 100% 0, 100% 100%, 0% 100%);
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero-slide.active {
  opacity: 1;
}

/* Slide dots */
.hero-slide-dots {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  gap: 6px;
  z-index: 3;
}

.hero-slide-dot {
  width: 24px;
  height: 3px;
  background: rgba(255,255,255,0.35);
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-slide-dot.active {
  background: var(--immo-primary);
  width: 36px;
}

/* --- Section Titles (left-aligned, massive) --- */
.section-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3.5rem);
  color: #111111;
  text-transform: none;
  letter-spacing: -0.02em;
  text-align: left;
  display: block;
  position: relative;
  margin-bottom: 2.5rem;
}

.section-title::after {
  display: none;
}

/* --- Buttons --- */
.btn-immo {
  background: var(--immo-primary);
  color: #FAFAFA;
  border: none;
  padding: 0.8rem 2rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9rem;
  border-radius: 0;
  text-transform: none;
  letter-spacing: 0;
  transition: background 0.3s ease, transform 0.2s ease;
  box-shadow: none;
}

.btn-immo:hover {
  background: var(--immo-primary-hover);
  color: #FAFAFA;
  transform: none;
  box-shadow: none;
}

.btn-immo-outline {
  background: transparent;
  color: #111111;
  border: 2px solid #111111;
  padding: 0.8rem 2rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9rem;
  border-radius: 0;
  transition: all 0.3s ease;
}

.btn-immo-outline:hover {
  background: #111111;
  color: #FAFAFA;
}

/* --- Property Cards (transparent, no card styling) --- */
.property-card {
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
  transition: none;
  position: relative;
  height: auto;
  padding-left: 0;
  border-left: 2px solid transparent;
  transition: border-color 0.3s ease;
}

.property-card:hover {
  transform: none;
  box-shadow: none;
  border-left-color: var(--immo-primary);
}

.property-card::before {
  display: none;
}

.property-card .card-img-container {
  border-radius: 0;
  overflow: hidden;
  height: 220px;
}

.property-card .card-img-container img {
  border-radius: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.property-card:hover .card-img-container img {
  transform: scale(1.03);
}

/* Carousel dots — coral squares */
.carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
  z-index: 3;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.property-card:hover .carousel-dots {
  opacity: 1;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.4);
  transition: background 0.3s ease;
}

.carousel-dot.active {
  background: var(--immo-primary);
}

.property-badge {
  position: static;
  display: inline-block;
  background: transparent;
  color: #888888;
  font-family: var(--font-body);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.7rem;
  border-radius: 0;
  padding: 0;
  margin-top: 0.75rem;
  margin-bottom: 0.15rem;
}

.property-price {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--immo-primary);
  position: static;
  background: transparent;
  padding: 0;
  border-radius: 0;
  display: block;
  margin-bottom: 0.25rem;
}

.card-body {
  padding: 0.75rem 0;
  background: transparent;
}

.card-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: #111111;
  margin-bottom: 0.15rem;
  transition: color 0.3s ease;
}

.property-card:hover .card-title {
  color: var(--immo-primary);
}

.property-location {
  color: #888888;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.85rem;
}

.property-location i {
  color: #888888;
}

.property-features span {
  color: #888888;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.8rem;
}

.property-features span i {
  color: #888888;
}

/* Fav button — minimal, no bg */
.fav-btn {
  background: transparent;
  border: none;
  border-radius: 0;
  color: #FAFAFA;
  font-size: 1.1rem;
  transition: color 0.3s ease;
  box-shadow: none;
}

.fav-btn:hover {
  background: transparent;
  border: none;
  color: var(--immo-primary);
}

.fav-btn.active {
  background: transparent;
  border: none;
  color: var(--immo-primary);
}

/* --- Property Grid (asymmetric) --- */
.vg-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.vg-grid > *:first-child {
  grid-column: span 2;
}

.vg-grid > *:first-child .card-img-container {
  height: 320px;
}

@media (max-width: 991px) {
  .vg-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .vg-grid > *:first-child {
    grid-column: span 2;
  }
}

@media (max-width: 575px) {
  .vg-grid {
    grid-template-columns: 1fr;
  }
  .vg-grid > *:first-child {
    grid-column: span 1;
  }
  .vg-grid > *:first-child .card-img-container {
    height: 220px;
  }
}

/* --- Search Card --- */
.search-card {
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 2rem 0;
  margin-top: 0;
}

/* --- Forms (borderless, bottom border only) --- */
.form-select,
.form-control {
  background-color: transparent;
  border: none;
  border-bottom: 1px solid #888888;
  border-radius: 0;
  color: #111111;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.9rem;
  padding: 0.6rem 0;
  height: auto;
  transition: border-color 0.3s ease;
}

.form-select:focus,
.form-control:focus {
  border-color: var(--immo-primary);
  box-shadow: none;
  background-color: transparent;
  color: #111111;
}

.form-select option {
  background: #FAFAFA;
  color: #111111;
}

.form-floating label {
  color: #888888;
  font-family: var(--font-body);
  font-weight: 300;
}

textarea.form-control {
  min-height: 100px;
}

/* --- Contact Section --- */
.contact-section {
  background: #FAFAFA;
}

/* --- Detail Page --- */
.detail-info-card {
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.detail-info-card h3 {
  font-family: var(--font-heading);
  font-weight: 800;
  color: #111111;
}

.detail-price {
  font-family: var(--font-heading);
  color: var(--immo-primary) !important;
  font-size: 1.8rem;
  font-weight: 700;
}

.detail-section-title {
  color: #111111;
  font-family: var(--font-body);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.8rem;
}

.detail-features .feature-item {
  color: #111111;
}

.detail-features .feature-item i {
  color: var(--immo-primary);
}

.detail-carousel .carousel-item img {
  border-radius: 0 !important;
}

.map-container iframe {
  border-radius: 0;
}

/* --- Share bar --- */
.share-btn {
  border-radius: 0;
  background: transparent;
  border: 1px solid #888888;
  color: #111111;
  transition: all 0.3s ease;
}

.share-btn:hover {
  background: var(--immo-primary);
  border-color: var(--immo-primary);
  color: #FAFAFA;
}

/* --- Not Available Banner --- */
.not-available-banner {
  background: #FAFAFA;
  border: 1px solid #e0e0e0;
  border-radius: 0;
}

.not-available-banner h2 {
  color: #111111;
}

/* --- Pagination --- */
.pagination .page-link {
  background: transparent;
  border: 1px solid #e0e0e0;
  color: #111111;
  border-radius: 0;
  font-family: var(--font-body);
  font-weight: 400;
  transition: all 0.3s ease;
}

.pagination .page-link:hover {
  background: #111111;
  border-color: #111111;
  color: #FAFAFA;
}

.pagination .page-item.active .page-link {
  background: var(--immo-primary);
  border-color: var(--immo-primary);
  color: #FAFAFA;
}

/* --- Footer (white bg, minimal) --- */
.footer-immo {
  background: var(--immo-footer-bg, #FAFAFA);
  border-top: 1px solid #e0e0e0;
  color: var(--immo-footer-text, #111111);
}

.footer-immo h5 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--immo-footer-heading, #111111);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-immo a {
  color: var(--immo-footer-text, #888888);
  transition: color 0.3s ease;
}

.footer-immo a:hover {
  color: var(--immo-primary);
}

.footer-social a {
  color: #111111;
  border: 1px solid #e0e0e0;
  border-radius: 0;
  transition: all 0.3s ease;
}

.footer-social a:hover {
  background: var(--immo-primary);
  border-color: var(--immo-primary);
  color: #FAFAFA;
}

.footer-bottom {
  border-top-color: #e0e0e0;
  color: #888888;
}

/* --- Toggle filters --- */
.btn-toggle-filters {
  color: var(--immo-primary);
  font-family: var(--font-body);
  font-weight: 500;
}

/* --- Service cards --- */
.service-card {
  background: transparent;
  border: 1px solid #e0e0e0;
  border-radius: 0;
  transition: border-color 0.3s ease;
}

.service-card:hover {
  border-color: var(--immo-primary);
}

.service-card h5 {
  color: #111111;
  font-family: var(--font-heading);
  font-weight: 700;
}

.service-icon i {
  color: var(--immo-primary);
}

/* --- View toggle --- */
.btn-outline-secondary {
  border-color: #e0e0e0;
  color: #888888;
  border-radius: 0;
}

.btn-outline-secondary.active,
.btn-outline-secondary:hover {
  background: #111111;
  border-color: #111111;
  color: #FAFAFA;
}

/* --- WhatsApp --- */
.btn-whatsapp {
  border-radius: 0;
}

.wa-widget .wa-toggle {
  border-radius: 0;
}

/* --- Page offset (propiedades, detalle, etc) --- */
.page-offset {
  background: #FAFAFA;
}

/* --- Form validated --- */
.was-validated .form-control:valid,
.was-validated .form-select:valid {
  border-color: var(--immo-primary);
}

/* --- Animations (slide-in from different directions) --- */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.vg-slide-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.vg-slide-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.vg-slide-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.vg-slide-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* --- Subtle radius (soften the angular look) --- */
.btn-immo,
.btn-immo-outline,
.btn-whatsapp,
.share-btn,
.fav-btn,
.pagination .page-link,
.service-card,
.footer-social a,
.btn-outline-secondary,
.wa-widget .wa-toggle,
.not-available-banner,
.detail-carousel,
.detail-carousel .carousel-item img {
  border-radius: 4px !important;
}

.property-card .card-img-container,
.property-card .card-img-container img,
.map-container iframe {
  border-radius: 4px;
}

/* --- Asymmetric Z-Index Scroll Stacking --- */

/* Hero is just a spacer — children are fixed */
.vg-sticky-section {
  position: relative;
  height: 100vh;
  z-index: auto;
}

.vg-sticky-section .hero-split {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
}

/* Hero LEFT (name + search): ALWAYS on top in desktop */
.vg-sticky-section .hero-left {
  position: fixed;
  top: 0;
  left: 0;
  width: 40%;
  height: 100vh;
  z-index: 50;
  background: #FAFAFA;
}

/* Hero RIGHT (gallery): z-index 30 — gets covered by inmuebles */
.vg-sticky-section .hero-right {
  position: fixed;
  top: 0;
  right: 0;
  width: 60%;
  height: 100vh;
  z-index: 30;
}

/* Inmuebles: full width */
.vg-stack-right {
  position: relative;
  z-index: 31;
  background: var(--immo-bg);
  width: 100%;
  margin-left: 0;
  padding-top: 3rem !important;
  padding-bottom: 3rem !important;
}

/* Equipo: z-index 33 — full width, stack layout */
.vg-stack-equipo {
  position: relative;
  z-index: 33;
  background: var(--immo-bg);
  width: 100%;
  margin-left: 0;
  padding-top: 4rem !important;
  padding-bottom: 4rem !important;
  display: block;
  box-sizing: border-box;
}

.vg-stack-equipo > .container {
  width: 100%;
  max-width: 100%;
  padding-left: 2rem;
  padding-right: 2rem;
}

/* Forzar que las cards del equipo se acomoden dentro del 60% sin desbordar */
.vg-stack-equipo .row {
  margin-left: 0;
  margin-right: 0;
}

.vg-stack-equipo .row > [class*="col-"] {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

/* En viewports donde el 60% queda apretado, pasar a 2 columnas */
@media (max-width: 1399px) {
  .vg-stack-equipo .col-lg-4 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

/* Contacto: z-index 35 — full width dark section */
.vg-stack-left {
  position: relative;
  z-index: 35;
  background: #111;
  color: #FAFAFA;
  min-height: 100vh;
  width: 100%;
  margin-left: 0;
  padding-top: 3rem !important;
  padding-bottom: 3rem !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vg-stack-left .container {
  width: 100%;
}

.vg-stack-left .section-title {
  color: #FAFAFA;
}

.vg-stack-left .section-title::after {
  display: none;
}

.vg-stack-left .col-lg-6,
.vg-stack-left .col-md-8 {
  flex: 0 0 50%;
  max-width: 50%;
  margin: 0 auto;
}

/* Dark forms inside contacto */
.vg-stack-left .form-control,
.vg-stack-left .form-select,
.vg-stack-left textarea.form-control {
  background: transparent !important;
  border-bottom-color: #444 !important;
  color: #FAFAFA !important;
}

.vg-stack-left .form-control::placeholder,
.vg-stack-left textarea::placeholder {
  color: #666 !important;
}

.vg-stack-left .form-control:focus,
.vg-stack-left .form-select:focus {
  border-bottom-color: var(--immo-primary) !important;
}

.vg-stack-left .form-floating > label {
  color: #666 !important;
}

.vg-stack-left .form-floating > label i {
  display: none;
}

.vg-stack-left .btn-immo {
  width: 100%;
}

.vg-stack-left .detail-info-card {
  background: transparent;
  border: none;
}

/* Footer — normal flow, z-index above everything */
.footer-immo {
  position: relative;
  z-index: 36;
}

/* Non-stacking fallback */
.page-offset {
  position: relative;
  z-index: 31;
  background: var(--immo-bg);
}

/* --- Servicios VANGUARDIA: full width --- */
.vg-stack-servicios {
  position: relative;
  z-index: 32;
  background: #FAFAFA;
  width: 100%;
  margin-left: 0;
  padding-top: 4rem !important;
  padding-bottom: 4rem !important;
}

.vg-servicios-sub {
  font-family: var(--font-body);
  color: #555;
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 600px;
  margin-bottom: 2.5rem;
}

.vg-servicios-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}

.vg-servicio-item {
  padding: 2rem 0;
  border-top: 1px solid rgba(17, 17, 17, 0.12);
  transition: all 0.3s ease;
}

.vg-servicio-item:hover {
  border-top-color: var(--immo-primary);
  padding-left: 0.5rem;
}

.vg-servicio-featured {
  grid-column: 1 / -1;
  border-top: 2px solid var(--immo-primary);
}

.vg-servicio-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.vg-servicio-head i {
  font-size: 2.25rem;
  color: #111;
  transition: color 0.3s ease;
}

.vg-servicio-item:hover .vg-servicio-head i {
  color: var(--immo-primary);
}

.vg-servicio-num {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: rgba(17, 17, 17, 0.4);
  letter-spacing: 0.05em;
}

.vg-servicio-item h5 {
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  font-weight: 700;
  color: #111;
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
}

.vg-servicio-item p {
  color: #555;
  font-size: 0.98rem;
  line-height: 1.65;
  margin: 0;
}

/* --- Quienes Somos VANGUARDIA: full width, fondo oscuro --- */
.vg-stack-quienes {
  position: relative;
  z-index: 33;
  background: #111111;
  color: #FAFAFA;
  width: 100%;
  margin-left: 0;
  padding-top: 4rem !important;
  padding-bottom: 4rem !important;
  display: block;
}

.vg-stack-quienes .container {
  width: 100%;
}

.vg-quienes-title {
  color: #FAFAFA !important;
}

.vg-quienes-title::after {
  display: none;
}

.vg-quienes-sub {
  color: rgba(250, 250, 250, 0.55);
  font-family: var(--font-body);
  font-size: 1.15rem;
  line-height: 1.6;
}

.vg-quienes-content p {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.85;
  color: rgba(250, 250, 250, 0.75);
  margin-bottom: 1.3rem;
}

.vg-quienes-content p strong {
  color: var(--immo-primary);
  font-weight: 600;
}

.vg-quienes-image {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
  clip-path: polygon(0 0, 100% 0, 100% 90%, 10% 100%);
  filter: grayscale(0.2);
}

/* Mobile: disable fixed hero and stacking */
@media (max-width: 991px) {
  .vg-sticky-section {
    height: auto;
  }

  .vg-sticky-section .hero-split {
    position: relative;
  }

  .vg-sticky-section .hero-left,
  .vg-sticky-section .hero-right {
    position: relative;
    width: 100%;
    height: auto;
    z-index: auto;
  }

  .vg-stack-right,
  .vg-stack-left,
  .vg-stack-servicios,
  .vg-stack-quienes {
    position: relative;
    width: 100%;
    margin-left: 0;
    min-height: auto;
    z-index: auto;
  }

  .vg-servicios-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .vg-servicio-featured {
    grid-column: auto;
  }

  .vg-stack-quienes {
    display: block;
  }

  .vg-stack-left .col-lg-6,
  .vg-stack-left .col-md-8 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* --- Tasar page fix for Model 5 --- */
.hero + section .detail-info-card,
.hero + .container .detail-info-card,
section > .container > .row > .col-lg-8 > .detail-info-card {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 2.5rem;
}

/* Tasar form floating labels fix */
.detail-info-card .form-floating > label,
.contact-form .form-floating > label,
#tasarFormContainer .form-floating > label {
  color: #888 !important;
  font-weight: 300;
}

.detail-info-card .form-floating > label i,
#tasarFormContainer .form-floating > label i {
  display: none;
}

.detail-info-card .form-floating > .form-control,
.detail-info-card .form-floating > .form-select,
#tasarFormContainer .form-floating > .form-control,
#tasarFormContainer .form-floating > .form-select {
  background: #FAFAFA !important;
  border: none !important;
  border-bottom: 1px solid #ccc !important;
  border-radius: 0 !important;
  color: #111 !important;
  height: 56px;
}

.detail-info-card .form-floating > textarea.form-control,
#tasarFormContainer .form-floating > textarea.form-control {
  height: auto !important;
  min-height: 100px;
}

.detail-info-card .form-floating > .form-control:focus,
.detail-info-card .form-floating > .form-select:focus,
#tasarFormContainer .form-floating > .form-control:focus,
#tasarFormContainer .form-floating > .form-select:focus {
  border-bottom-color: var(--immo-primary) !important;
  box-shadow: none !important;
}

.detail-info-card .form-floating > .form-select ~ label,
#tasarFormContainer .form-floating > .form-select ~ label {
  opacity: 0.7;
}

#tasarFormContainer h4,
.detail-info-card h4 {
  font-family: var(--font-heading) !important;
  font-weight: 700;
  color: #111 !important;
  letter-spacing: -0.02em;
}

#tasarFormContainer h4 i {
  color: var(--immo-primary) !important;
}

/* Tasar hero fix */
.hero + section {
  margin-top: 0 !important;
}

/* Dark-mode overrides: contact form inside vg-stack-left
   Necesario porque las reglas .detail-info-card y .contact-form
   tienen mayor especificidad que .vg-stack-left y pisan el dark-mode */
.vg-stack-left .detail-info-card .form-floating > .form-control,
.vg-stack-left .detail-info-card .form-floating > .form-select,
.vg-stack-left .contact-form .form-floating > .form-control,
.vg-stack-left .contact-form .form-floating > .form-select {
  background: transparent !important;
  border: none !important;
  border-bottom: 1px solid #444 !important;
  border-radius: 0 !important;
  color: #FAFAFA !important;
  height: 56px;
}

.vg-stack-left .detail-info-card .form-floating > textarea.form-control,
.vg-stack-left .contact-form .form-floating > textarea.form-control {
  height: auto !important;
  min-height: 100px;
}

.vg-stack-left .detail-info-card .form-floating > .form-control:focus,
.vg-stack-left .detail-info-card .form-floating > .form-select:focus,
.vg-stack-left .contact-form .form-floating > .form-control:focus,
.vg-stack-left .contact-form .form-floating > .form-select:focus {
  border-bottom-color: var(--immo-primary) !important;
  box-shadow: none !important;
}

.vg-stack-left .detail-info-card .form-floating > label,
.vg-stack-left .contact-form .form-floating > label {
  color: #888 !important;
  font-weight: 300;
}

.vg-stack-left .detail-info-card h4,
.vg-stack-left .contact-form h4 {
  color: #FAFAFA !important;
}

/* --- Responsive --- */
@media (max-width: 991px) {
  .hero-split {
    flex-direction: column;
  }

  .hero-left {
    width: 100%;
    height: auto;
    padding: 6rem 2rem 3rem;
    min-height: 50vh;
  }

  .hero-left h1 {
    font-size: clamp(2.5rem, 8vw, 4rem);
  }

  .hero-right {
    width: 100%;
    height: 50vh;
  }

  .hero-slide {
    clip-path: polygon(0 10%, 100% 0, 100% 100%, 0% 100%);
  }

  /* Mobile: fullscreen overlay menu */
  .navbar-immo .navbar-toggler {
    width: 36px;
    height: 36px;
  }

  .navbar-immo .navbar-toggler-icon {
    width: 24px;
    height: 24px;
  }
}

@media (max-width: 575px) {
  .hero-left {
    padding: 5rem 1.5rem 2rem;
  }

  .hero-left h1 {
    font-size: 2.5rem;
  }

  .vg-overlay-nav a {
    font-size: 2rem;
  }

  .hero-slide-dots {
    bottom: 1rem;
    right: 1rem;
  }
}

/* --- Nav fav badge in navbar (hidden in model 5, shown in overlay) --- */
.navbar-immo .nav-fav-badge {
  display: none;
}

/* =================================================================
   VANGUARDIA — Hero fullscreen editorial (refactor)
   Override del split antiguo + nuevas animaciones cinematicas.
   ================================================================= */

body.model-5 .vg-hero-full {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 640px;
  padding: 0;
  margin: 0;
  overflow: hidden;
  background: #0a0a0a;
  display: block;
}

body.model-5 .vg-hero-full .hero-split,
body.model-5 .vg-hero-full .hero-left,
body.model-5 .vg-hero-full .hero-right {
  all: unset;
  display: none;
}

/* Background slideshow */
body.model-5 .vg-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

body.model-5 .vg-hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1.6s cubic-bezier(0.22, 1, 0.36, 1),
              transform 8s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

body.model-5 .vg-hero-slide.active {
  opacity: 1;
  transform: scale(1.02);
}

body.model-5 .vg-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(10,10,12,0.72) 0%, rgba(10,10,12,0.45) 45%, rgba(10,10,12,0.25) 75%, rgba(10,10,12,0.55) 100%),
    linear-gradient(180deg, rgba(10,10,12,0) 50%, rgba(10,10,12,0.65) 100%);
  z-index: 2;
  pointer-events: none;
}

body.model-5 .vg-hero-grain {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0.06;
  mix-blend-mode: overlay;
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.5) 0, rgba(255,255,255,0.5) 1px, transparent 1px, transparent 3px);
}

/* Content */
body.model-5 .vg-hero-content {
  position: absolute;
  left: clamp(1.5rem, 8vw, 7rem);
  bottom: clamp(4rem, 14vh, 10rem);
  max-width: min(860px, 80%);
  z-index: 5;
  color: #fafafa;
}

body.model-5 .vg-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(250,250,250,0.75);
  margin-bottom: 1.5rem;
}

body.model-5 .vg-hero-kicker span {
  display: inline-block;
  width: 48px;
  height: 1px;
  background: var(--immo-primary);
}

body.model-5 .vg-hero-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(3rem, 8vw, 8.5rem);
  line-height: 0.92;
  letter-spacing: -0.035em;
  color: #fafafa;
  margin: 0 0 1.5rem 0;
  text-shadow: 0 2px 40px rgba(0,0,0,0.25);
}

body.model-5 .vg-hero-line {
  display: block;
  overflow: hidden;
}

body.model-5 .vg-hero-slogan {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  line-height: 1.55;
  color: rgba(250,250,250,0.82);
  max-width: 520px;
  margin: 0 0 2.5rem 0;
}

body.model-5 .vg-hero-search {
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(250,250,250,0.45);
  padding-bottom: 0.75rem;
  max-width: 460px;
  transition: border-color 0.3s ease;
}

body.model-5 .vg-hero-search:focus-within {
  border-bottom-color: var(--immo-primary);
}

body.model-5 .vg-hero-search input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.95rem;
  color: #fafafa;
  padding: 0.5rem 0;
}

body.model-5 .vg-hero-search input::placeholder {
  color: rgba(250,250,250,0.55);
}

body.model-5 .vg-hero-search button {
  background: transparent;
  border: 1px solid rgba(250,250,250,0.45);
  color: #fafafa;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.35s ease, border-color 0.35s ease, transform 0.35s ease;
}

body.model-5 .vg-hero-search button:hover {
  background: var(--immo-primary);
  border-color: var(--immo-primary);
  transform: translateX(4px);
}

/* Dots + counter */
body.model-5 .vg-hero-dots {
  position: absolute;
  right: clamp(1.5rem, 4vw, 3rem);
  top: 50%;
  transform: translateY(-50%);
  z-index: 6;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

body.model-5 .vg-hero-dot {
  width: 2px;
  height: 32px;
  background: rgba(250,250,250,0.35);
  cursor: pointer;
  transition: all 0.4s ease;
}

body.model-5 .vg-hero-dot.active {
  background: var(--immo-primary);
  height: 56px;
}

body.model-5 .vg-hero-dot:hover {
  background: rgba(250,250,250,0.75);
}

body.model-5 .vg-hero-counter {
  position: absolute;
  right: clamp(1.5rem, 4vw, 3rem);
  bottom: clamp(3rem, 10vh, 6rem);
  z-index: 6;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: rgba(250,250,250,0.7);
  display: flex;
  align-items: center;
  gap: 6px;
}

body.model-5 .vg-hero-counter-current {
  color: var(--immo-primary);
  font-size: 1.1rem;
  font-weight: 700;
}

body.model-5 .vg-hero-counter-sep {
  opacity: 0.5;
}

/* Scroll indicator */
body.model-5 .vg-hero-scroll {
  position: absolute;
  left: clamp(1.5rem, 8vw, 7rem);
  bottom: 2rem;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(250,250,250,0.6);
}

body.model-5 .vg-hero-scroll i {
  animation: vgScrollBounce 2.4s ease-in-out infinite;
}

@keyframes vgScrollBounce {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50%      { transform: translateY(8px); opacity: 1; }
}

/* Entrance animations */
body.model-5 .vg-hero-anim {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 1s cubic-bezier(0.22, 1, 0.36, 1),
              transform 1s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

body.model-5 .vg-hero-anim.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 991px) {
  body.model-5 .vg-hero-full {
    height: 100vh;
    min-height: 560px;
  }
  body.model-5 .vg-hero-content {
    left: 1.5rem;
    right: 1.5rem;
    bottom: 5rem;
    max-width: 100%;
  }
  body.model-5 .vg-hero-dots {
    right: 1rem;
  }
  body.model-5 .vg-hero-counter {
    right: 1rem;
    bottom: 1.5rem;
  }
  body.model-5 .vg-hero-scroll {
    display: none;
  }
}
