/* styles.css (archivo completo: lo tuyo + reglas del sector nuevas) */
:root{
  --accent: #bdddbe;
  --accent-dark: #1f434d;
  --muted:#f7f5f3;
  --card:#ffffff;
  --text:#1f434d;
}
html,body{height:100%}
body{
  font-family: "Poppins", sans-serif;
  color:var(--text);
  background:white;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  overflow-x:hidden;
}

a:hover, a:focus, a:active, .form-control:focus, .form-control:active, .form-control:hover, [type=button]:not(:disabled), [type=reset]:not(:disabled), [type=submit]:not(:disabled), button:not(:disabled), .btn-success.focus, .btn-success:focus, .form-select,
button:hover, button:active, button:focus, .btn-success, .btn, [type=button], [type=reset], [type=submit], button,
.btn:hover, .btn:active, .btn:focus {
    outline: 0!important;
    box-shadow: none!important;
}

.section .d-flex {
  flex-wrap: wrap;
}

.section {
  overflow-x: hidden;
}
.swiper-pagination-bullet, .swiper-pagination-bullet-active {
  background: #bdddbe;
}

.image-card {
  max-width: 100%;
  box-sizing: border-box;
}


/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  background: transparent;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.desktop-nav {
  margin-left: auto;
  margin-right: 0;
  display: flex;
  justify-content: flex-end;
 
}

header .desktop-nav ul li a {
  color: white;
   position: relative;
}

header .desktop-nav ul li a:before {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: -6px;
  left: 0;
  background-color: #bdddbe;
  visibility: hidden;
  width: 0px;
  transition: all 0.3s ease-in-out 0s;
}
header .desktop-nav ul li a:hover:before, 
header .desktop-nav ul li a:hover > header .desktop-nav ul li a:before, 
header .desktop-nav ul li a.active:before {
  visibility: visible;
  width: 100%;
}
header .desktop-nav ul li a:hover, 
header .desktop-nav ul li a.active, 
header .desktop-nav ul li a.active:focus, 
header .desktop-nav ul li a:hover > a {
  color: #bdddbe;
}

header.scrolled .desktop-nav ul li a {
  color: #1f434d;
}

header #openMenu i::before {
  color: white;
}

header #openMenu {
  border-color: white;
  border-radius: 50px;
}

header.scrolled #openMenu {
  border-color: #1f434d;
  border-radius: 50px;
}

header.scrolled #openMenu i::before {
  color: #1f434d;
}

header.scrolled {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
header .logo img {
  transition: filter 0.3s ease;
  filter: brightness(0) invert(1);
}
header.scrolled .logo img {
  filter: none;
}

.logo img {
  max-height: 80px;
  width: 100%;
}

/* HERO - BASE (mantengo tu pref) */
.hero{
  position:relative;
  /* ahora el hero ocupa casi toda la ventana: 100vh en desktop, 90vh en mobile */
  height:100vh;
  min-height:720px;
  display:block;
  overflow:hidden;
}

/* envoltorio para centrar verticalmente el contenido respetando .container */
.hero-content-wrap {
  height: 100%;
  display: flex;
  align-items: center; /* centra verticalmente */
  padding-top: 72px; /* espacio por header fijo */
  padding-bottom: 0;
}

/* Contenido del hero (texto) */
.hero .hero-content{
  z-index:12; /* por encima del slide, por debajo de flechas si se necesita */
  max-width:720px;
  color: #ffffff; /* texto sobre imagen */
  position: relative;
  left: 2.5%; /* margin a la izquierda para que no quede pegado al borde */
  transform: translateY(-6%); /* lo subo un poco para que no quede tan abajo */
}
.hero-title {
  font-size:42px;
  line-height:1.02;
  margin: 0 0 1rem;
  color: #fff;
  font-weight:700;
}
.hero-lead {
  color: rgba(255,255,255,0.95);
  margin-bottom:1rem;
  max-width:560px;
}

/* agente foto */
.agent-photo img{
  width:56px;height:56px;border-radius:50%;object-fit:cover;
}

.btn-outline-secondary {
   border-radius: 50px;
    padding: 12px 20px;
}
.btn-outline-secondary {
    border-radius: 50px;
    padding: 12px 20px;
    color: #bdddbe;
    border-color: #bdddbe;
}


.btn-outline-secondary:hover,
.btn-outline-secondary:active,
.btn-outline-secondary:focus {
  background-color: #1f434d;
}

/* botones */
.btn-accent {
    background: var(--accent);
    color: #1f434d;
    border-radius: 50px;
    padding: 12px 20px;
    border: 0;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.btn-accent:hover,
.btn-accent:active,
.btn-accent:focus {
  background-color: #1f434d;
}

/* resto de tu CSS original (dejado intacto) */
.section {
  padding: 3rem 0;
}
.image-card{
  background:var(--card);
  border-radius:8px;
  box-shadow: 0 8px 30px rgba(30,30,30,0.05);
  overflow:hidden;
}

.floorplan{
  display:flex;
  gap:30px;
  align-items:flex-start;
}
.floorplan .plan{
  flex:0 0 420px;
  border-radius:8px;
  background:linear-gradient(180deg,#fff,#fbfbfb);
  padding:18px;
  box-shadow: 0 10px 30px rgba(20,20,20,0.04);
}

.stats{
  background:linear-gradient(180deg,#fff,#fbfaf9);
  padding:3rem;
  border-radius:12px;
  box-shadow:0 8px 30px rgba(10,10,10,0.03);
}
.stat-number{
  font-weight:700;
  font-size:28px;
  color:#e75a35;
}

.projects .card{
  border-radius:8px;
  overflow:hidden;
}
.projects .card img{height:220px; object-fit:cover; width:100%}

footer{
  background: #263238;
    color: #c7d0d3;
    padding: 4rem 0rem;
    z-index: 1;
    position: relative;
}

/* MOBILE MENU (custom offcanvas-like) */
.mobile-menu{
  display:none;
  position:fixed;
  top:0;
  right:0;
  bottom:0;
  width:360px;
  background:white;
  box-shadow:-10px 0 30px rgba(0,0,0,0.2);
  transform:translateX(110%);
  transition:transform .3s ease;
  z-index:10000;
}
.mobile-menu.open{
  transform:translateX(0);
}
.mobile-menu .close-btn{
  position:absolute;
  top:18px;
  right:18px;
  background:#1f434d;
  color:white;
  width:46px;
  height:46px;
  border-radius:50px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:20px;
  z-index:11000;
}
.mobile-menu .menu-list{
  padding:90px 30px 30px;
}
.mobile-menu .menu-list a{
  display:block;
  padding:18px 12px;
  font-weight:700;
  letter-spacing:.6px;
  color:#2a2a2a;
  border-bottom:1px solid #f0efef;
  text-decoration:none;
}
.mobile-menu .menu-list a.active{
  color:var(-accent-dark);
  background:linear-gradient(90deg, rgb(195 187 184 / 4%), transparent);
  border-left:4px solid var(--accent);
  padding-left:8px;
}

/* Overlay */
.menu-overlay {
  display:none;
  position:fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;
  background:rgba(0,0,0,0.4);
  z-index:9998;
  opacity:0;
  transition:opacity .3s ease;
}
.menu-overlay.show {
  display:block;
  opacity:1;
}

.ask-cta{
  position:fixed;
  right:18px;
  bottom:18px;
  background:#1ca550;
  color:white;
  padding:12px 18px;
  border-radius:28px;
  box-shadow:0 10px 30px rgba(231, 230, 235, 0.233);
  z-index:6000;
  display:flex;
  gap:10px;
  align-items:center;
  text-decoration: none;
}

/* responsive tweaks (ajustes importantes) */
@media (max-width:991.98px){
  .hero{
    /* en móviles ocupa casi todo el viewport pero dejamos margen para header */
    height:92vh;
    min-height:unset;
  }
  .hero-content-wrap {
    padding-top: 64px;
  }
  .hero .hero-content{
    left: 0;
    transform: translateY(-10%); /* bajamos un poco en móvil para que quede centrado visualmente */
    padding: 0 1.25rem; /* margen lateral para que no quede tan pegado */
  }
  .hero-title { font-size:34px; }
  .mobile-menu{display:block}
  .desktop-nav{display:none}
}
@media (max-width:575.98px){
  .hero{height:95vh}
  .hero-title{font-size:28px}
  .floorplan{flex-direction:column}
  .floorplan .plan{flex:1}
  .hero .hero-content{transform: translateY(-8%); padding:0 1rem;}
}

/* =====================================================
   Reglas añadidas para Swiper hero (fade) y curva
   ===================================================== */

/* Contenedor Swiper en hero: ocupa todo el area hero y queda detrás del contenido */
.hero-swiper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

/* Aseguramos que el wrapper y slides ocupen 100% de la altura */
.hero-swiper .swiper-wrapper,
.hero-swiper .swiper-slide {
  height: 100%;
}

/* Fondo de cada slide (usa background-image inline) */
.hero-slide-bg {
  position: absolute;
  right: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-size: cover;         /* cover para ocupar, puede recortar si la proporción no coincide */
  background-position: center center;
  background-repeat: no-repeat;
  z-index: 0;
  will-change: opacity, transform;
  backface-visibility: hidden;
  transform: translateZ(0); /* ayuda al render */
}

/* Paginación: la dejamos visible pero sutil */
.hero-swiper .swiper-pagination {
  position: absolute;
  bottom: 64px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
}

/* Flechas de navegación (visibles y clickeables) - desktop */
.hero-swiper .swiper-button-prev,
.hero-swiper .swiper-button-next {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  box-shadow: 0 6px 18px rgba(20,20,20,0.08);
  color: #333;
  display:flex;
  align-items:center;
  justify-content:center;
  z-index: 14; /* por encima de todo para ser clickeables */
  transition: transform .18s ease, opacity .18s ease;
  top: 42%;
}
.hero-swiper .swiper-button-prev {
  left: 18px;
}
.hero-swiper .swiper-button-next {
  right: 18px;
}
.hero-swiper .swiper-button-prev::after,
.hero-swiper .swiper-button-next::after {
  font-size: 16px;
  color: #333;
}
.hero-swiper .swiper-button-prev:hover,
.hero-swiper .swiper-button-next:hover {
  transform: translateY(-3px);
}

/* Ocultar flechas en mobile para limpiar UI (según tu pedido) */
@media (max-width: 991.98px) {
  .hero-swiper .swiper-button-prev,
  .hero-swiper .swiper-button-next {
    display: none;
  }
}

/* Curva blanca en la parte inferior - ahora fuera del swiper pero dentro del hero */
.hero-bottom-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  z-index: 8; /* por debajo del contenido (12) y por encima del slide (0) */
  pointer-events: none;
  display: block;
  max-height: 240px;
}

/* Ajustes para evitar micro-gaps en transiciones */
.hero-slide-bg,
.hero-swiper .swiper-slide {
  background-color: transparent;
}

/* Si necesitás que el contenido quede a la izquierda con más margen en pantallas grandes */
@media (min-width: 1200px) {
  .hero .hero-content { max-width: 640px; padding-left: 2rem; }
}

/* Fin de adiciones Swiper/hero */

.bg-uno {
    background-image: url(../imagenes/diagonal.png);
    background-repeat: no-repeat;
    background-size: 75%;
    background-position: -129% 47%;
    background-attachment: fixed;
    overflow: hidden;
}

section .pretitle {
    font-size: 13px;
    letter-spacing: 1px;
    font-weight: 400;
    padding: 8px 0px;
    margin: 0;
    color: #1f434d;
    display: inline-block;
    text-transform: uppercase;
}

/* ===============================
   BLOQUE LOTES (CÍRCULO + TEXTO)
   =============================== */

.bloque-lotes {
  display: flex;
  align-items: center;
  gap: 30px;
  padding-top: 60px;
}

.bloque-circulo {
  position: relative;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: white; /* verde oscuro del centro */
  flex-shrink: 0;
}

/* Círculo interior blanco */
.bloque-circulo::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: #b6d7a8;
}

/* Círculo exterior verde claro */
.bloque-circulo::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 3px solid #1b5e20; /* verde claro */
}

.circulo-nucleo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  background: #1b5e20; /* verde más oscuro */
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

/* Texto */
.bloque-texto {
  flex: 1;
}

.bloque-titulo {
  font-size: 20px;
  font-weight: 400;
  color: #1f434d;
  margin-bottom: 15px;
}

.bloque-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  color: #1f434d;
  margin: 5px 0;
}

.bloque-item i {
  color: #b6d7a8; /* flecha verde claro */
  font-size: 18px;
  margin-top: 2px;
}

/* ===========
   NUEVAS REGLAS: SECTOR TABS + SWIPER
   =========== */

/* CARD que contiene la lista de tabs (izquierda desktop) */
.tabs-card .pretitle {
  color: var(--text);
}
.tabs-card .title-sm {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
}

/* lista de tabs */
.tabs-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}
.tab-btn {
  text-align: left;
  border: 0;
  background: transparent;
  padding: 12px 14px;
  border-radius: 10px;
  font-weight:600;
  color: var(--text);
  cursor: pointer;
  transition: background .18s ease, color .18s ease, transform .12s ease;
  box-shadow: none;
}
.tab-btn:hover {
  transform: translateX(6px);
}
.tab-btn.active {
  background: linear-gradient(90deg, rgba(189,221,190,0.14), rgba(189,221,190,0.06));
  color: var(--accent-dark);
  border-left: 4px solid var(--accent);
  padding-left: 10px;
}

/* contenido desktop (a la derecha) */
.tab-content-wrapper {
  min-height: 220px;
}
.tab-content-item {
  display: none;
}
.tab-content-item.active {
  display: block;
  padding: 20px;
}

/* mobile tabs swiper */
.tabs-swiper {
  width: 100%;
  --swiper-navigation-size: 36px;
  margin-bottom: 8px;
}
.tabs-swiper .swiper-slide {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}
.tabs-swiper .card {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
}
.tabs-swiper .card-img-top {
  height: 450;
  object-fit: cover;
}

.swiper-slide {
  min-height: 780px;
    background: white;
    border-radius: 50px;
}

.swiper-button-next, .swiper-button-prev {
  color: #1b5e20;
}
/* mobile compact row of buttons */
.mobile-tab-row {
  flex-wrap: wrap;
}
.mobile-tab-btn {
  border: 0;
  padding: 8px 10px;
  border-radius: 8px;
  background: white;
  font-weight:600;
  font-size:14px;
}
.mobile-tab-btn.active {
  background: #1b5e20;
  color: #fff;
}

/* AOS tweaks para que las cards se vean bien */
@media (max-width: 991.98px) {
  .tabs-card { padding: 18px; }
  .tabs-swiper .swiper-button-prev,
  .tabs-swiper .swiper-button-next { display: none; } /* ocultamos flechas en móvil */
}

/* accesibilidad: focus styles */
.tab-btn:focus, .mobile-tab-btn:focus {
  outline: 3px solid rgba(189,221,190,0.3);
  outline-offset: 2px;
}

/* =========================
   RESPONSIVE (ajustes previos)
   ========================= */

@media (max-width: 767px) {
  .bloque-lotes {
    flex-direction: column;
    gap: 20px;    
    text-align: center;
  }

  .bloque-circulo {
    width: 100px;
    height: 100px;
  }

  .bloque-texto {
    padding: 0 15px;
  }

  .bloque-titulo {
    font-size: 18px;
  }

  .bloque-item {
    justify-content: center;
    font-size: 16px;
  }
}

/* Sector preventa destacado */

.section-preventa {
  background-color: #1f434d;
  background-image: url(../imagenes/recurso.png);
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  color: #fff;
  position: relative;
}

.lote-box {
  background: rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}
.lote-box:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-3px);
}

.oportunidad-box {
  background-color: #9bc7b0;
  color: #1f434d;
  font-weight: 600;
  text-transform: uppercase;
  border: 2px solid #9bc7b0;
  transition: all 0.3s ease;
}
.oportunidad-box:hover {
  background-color: transparent;
  color: #9bc7b0;
  border-color: #9bc7b0;
}

.bordeado {
   border: 1px solid #1b5e20;
    padding: 20px;
    border-radius: 25px;
    margin: 10px;
}

.section-servicios {
  padding: 60px 0;
}

.servicios-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.servicio-card {
  flex: 1 1 300px;
  background-color: #ffffff;
  border: 2px solid #d3e1dd;
  border-radius: 12px;
  padding: 30px;
  transition: all 0.3s ease;
  max-width: 360px;
}

.servicio-card:hover {
  transform: translateY(-5px);
  border-color: #8fbfaf;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.servicio-card .title {
  font-size: 1.15rem;
  text-transform: uppercase;
  color: #1f434d;
  font-weight: 700;
  margin-bottom: 15px;
}

.servicio-card p {
  color: #2f2f2f;
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.servicio-card i {
  color: #1f434d;
  margin-right: 6px;
}



.destacado h2 {
  background: #b6d7a8;
    border-radius: 25px;
    padding: 20px;
    color: #1b5e20;
    font-size: 1.2rem;
    letter-spacing: 0.10rem;
    width: 100%;
    text-align: center;
}
.prefooter {
  position: fixed;
  bottom: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .servicios-grid {
    flex-direction: column;
    align-items: center;
  }
  .servicio-card {
    width: 100%;
    max-width: 500px;
  }
  .d-flex.align-items-center {
    justify-content: center;
    text-align: center;
  }
  .section.bg-uno p {
    text-align: center;
  }
  .section.bg-uno .servicio-card p {
    text-align: left;
  }
  .text-end {
    text-align: left !important;
}
}

#acerca, #invertir, #financiacion, #beneficios, #contacto {
  scroll-margin-top: 100px;
}

/* Contacto */

a:hover, a:focus, a:active, .form-control:focus, .form-control:active, .form-control:hover, [type=button]:not(:disabled), [type=reset]:not(:disabled), [type=submit]:not(:disabled), button:not(:disabled), .btn-success.focus, .btn-success:focus, .form-select,
button:hover, button:active, button:focus, .btn-success, .btn, [type=button], [type=reset], [type=submit], button,
.btn:hover, .btn:active, .btn:focus {
    outline: 0!important;
    box-shadow: none!important;
}

textarea.form-control {    
    min-height: 140px;
    margin-bottom: 20px;
}

.no-margin {
  margin:0px!important;
}
.help-block.with-errors {
  color: #313875;
  margin-top: 5px;
  }
  
  .alert-success {
  color: #fff;
  background-color: transparent;
  border-color: #f1f0f5;
  }
.alert-dismissable .close, .alert-dismissible .close {
    position: absolute;
    top: 0;
    right: 0px;
    color: white;
    font-weight: 300;
    background: black;
    border: 0;
}
  .alert {
    position: relative;
    padding: 2rem;
    margin-bottom: 1rem;
    border: 0px solid transparent;
    border-radius: 0px;
}
  
  .text-muted {
  color: #313875;
  }
  .history-text p.text-muted {
  color: #313875;
  }
  .messages {background: black; color: white;}
  
  .btn.disabled, .btn[disabled],  .btn-send, .btn-success,
  fieldset[disabled] .btn  {
  background: #1b5e20;
  color: white;
  text-transform: uppercase;
  width: 165px;
  border: none;
  height: 46px;
  cursor: pointer;
  font-size: calc(12px + 0.4vw);
  opacity: 1;
  line-height: 1;
  border-radius: 50px;
  }
  .btn.disabled:hover,  .btn.disabled:active, .btn.disabled:focus, .btn-success:hover, .btn-success:active, .btn-success:focus,
  .btn[disabled]:hover, .btn[disabled]:active, .btn[disabled]:focus,
  fieldset[disabled] .btn:hover, fieldset[disabled] .btn:active, fieldset[disabled] .btn:focus,
    .btn-send:hover, .btn-send:active, .btn-send:focus
  {
    background: #b6d7a8;
    color: #1b5e20;
    opacity: 1;
    border-radius: 50px;
    }
  
.alert-danger {
    color: black;
    background-color: #f1f0f5;
    border-color: #f1f0f5;
}
.form-group {
  margin-top:10px;
  margin-bottom: 10px;  
}
.form-group input {
      min-height: 45px;
    border-color: #e8e8e8;
}

.nice-select.wide {
    width: 100%;
    border-radius: 0;
}
.input-group-addon {
  position: absolute;
    right: 10px;
    z-index: 1;
    top: 8px;
}

  /* Termina Contacto */