/* ===============================
   RESET & BASE
=============================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f4f4f4;
}

/* Evitar scroll lateral en móvil */
html, body { overflow-x: hidden; }

/* Imágenes y medios fluidos */
img, video, canvas, svg { max-width: 100%; height: auto; display: block; }

/* Contenedor fluido con padding adaptable */
section, .container { width: min(100%, 1200px); margin-inline: auto; padding-inline: clamp(16px, 4vw, 32px); }

/* Grids/Cards adaptables */
.grid { display: grid; gap: clamp(12px, 3vw, 24px); grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { border-radius: 12px; overflow: hidden; }

/* ===============================
   NAVBAR
=============================== */
/* Navbar principal fijo */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1200;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  transition: top 0.4s ease, background 0.25s ease, border-color 0.25s ease;
}

.navbar.hide { top: -80px; } /* Oculta hacia arriba */

.navbar .logo img {
  height: 60px;
  width: auto;
}

/* Nav links (escritorio) */
.navbar .nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
  align-items: center;
}

.navbar .nav-links li a {
  color: rgb(40, 167, 69);
  font-weight: bold;
  text-decoration: none;
  transition: color 0.3s;
}

.navbar .nav-links li a:hover { color: #28a745; }

/* Botón hamburguesa (oculto en desktop) */
.menu-toggle { display: none; background: transparent; border: none; cursor: pointer; align-items: center; gap: px; }

/* Navbar “sólida” (al salir del hero) */
.navbar.solid {
  background: #ffffff;
  border-bottom: 1px solid rgba(0,0,0,.12);
}
.navbar.solid .nav-links li a { color: #0f172a; }
.navbar.solid .menu-toggle { color: #0f172a; }

/* ===============================
   HERO
=============================== */

/* ===============================
   SECCIÓN INTRODUCTORIA PREMIUM
=============================== */
.HERO {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  min-height: 600px;
  background: #f9fafb;
  color: #1f2937;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.intro-left {
  flex: 1;
  min-width: 320px;
  overflow: hidden;
}

.project-logo {
  width: 250px;         /* tamaño del logo */
  height: auto;
  display: block;       /* permite centrar con margin auto */
  margin: 0 auto 10px;  /* centrado horizontal y espacio debajo */
  margin-top: -40px;    /* valores negativos suben, positivos bajan */
} 


.intro-left img {
  width: 100%;
  height: 100%;
  margin-top: 15px;    /* valores negativos suben, positivos bajan */
  object-fit: cover;
  border-radius: 120px 0 0 120px;
  display: block;
  transition: transform 0.5s ease;
}

.intro-left img:hover {
  transform: scale(1.05);
}

.intro-right {
  flex: 1;
  min-width: 320px;
  padding: 60px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.intro-right h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.0;
  color: #0f172a;
}

.intro-right p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 40px;
  color: #4b5563;
}

.highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 40px;
}

.highlight-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.highlight-number {
  font-size: 1.8rem;
  font-weight: 700;
  color: #059669; /* verde acento */
}

.highlight-text {
  font-size: 0.95rem;
  color: #374151;
}

.cta-button {
  display: inline-block;
  background-color: #059669;
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 8px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.cta-button:hover {
  background-color: #047857;
  transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 992px) {
  .intro-premium {
    flex-direction: column;
  }
  .intro-left img {
    border-radius: 12px 12px 0 0;
  }
  .intro-right {
    padding: 40px 20px;
  }
  .intro-right h2 {
    font-size: 1.9rem;
  }
  .highlight-number {
    font-size: 1.5rem;
  }
}


/* ===============================
   SECCIONES GENERALES
=============================== */
section { padding: 60px 20px; max-width: 1100px; margin: auto; }
h2 { text-align: center; margin-bottom: 40px; }

/* Que el anclaje no quede tapado por la navbar fija */
section, .lote-section, .catalog, .benefits { scroll-margin-top: 80px; }

/* ===============================
   BENEFICIOS
=============================== */
.benefits {
  padding: 60px 20px;
  background: #ffffff;
  text-align: center;
}

.benefits h2 {
  font-size: 2.5rem;
  margin-bottom: 40px;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.benefit-card {
  background: #f9f9f9;
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.benefit-card:hover { transform: translateY(-8px); }

.benefit-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 15px;
}

.benefit-card h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: #006466;
}

.benefit-card p {
  font-size: 1rem;
  color: #555;
}

/* ===============================
   CATÁLOGO (tarjetas)
=============================== */
.catalog h2{ margin-bottom: 20px; }

.cards-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 8px;
}

.property-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  width: 300px;
}
.property-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.property-card h3, .property-card p { padding: 10px; }

.property-card .cta-button {
  margin: 10px;
  background-color: #007bff;
  color: white;
  padding: 10px 16px;
  border-radius: 5px;
  text-decoration: none;
  display: inline-block;
}
.property-card .cta-button:hover { background-color: #0056b3; }

/* ===============================
   LOTES (listas ocultas inicialmente)
=============================== */
.lote-lista {
  list-style-type: none;
  padding-left: 0;
  max-width: 700px;
  margin: 0 auto 10px;
}

.lote-lista li {
  background-color: #ffffff;
  border-left: 7px solid #28a745;
  padding: 15px 10px;
  margin-bottom: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  font-weight: bold;
  color: #333;
  border-radius: 8px;
}

.lote-section {
  display: none;
  padding: 40px 20px;
  max-width: 980px;
  margin: auto;
  background:#f8fafc;
  border-radius:10px;
  animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/*===========================
  Sección Master Plan
===========================*/
.masterplan-section {
  padding: 100px 0;
  background-color: #f9f9f9;
  text-align: center;
}

.masterplan-section .section-title {
  font-size: 2.5rem;
  color: #1a3b2d;
  margin-bottom: 10px;
  font-weight: 700;
}

.masterplan-section .section-subtitle {
  color: #555;
  font-size: 1.1rem;
  margin-bottom: 40px;
}

.masterplan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  align-items: center;
  justify-content: center;
}

.masterplan-item {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.masterplan-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.masterplan-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.masterplan-item h3 {
  margin: 15px 0;
  color: #1a3b2d;
  font-size: 1.2rem;
}

/* ===============================
   CALCULADORA
=============================== */
.calculadora-section {
  max-width: 510px;
  background: #fff;
  padding: 2.2em 2.2em 2em 2.2em;
  border-radius: 20px;
  box-shadow: 0 4px 24px #0002;
  margin: 2em auto;
  font-size: 1rem;
}
.calculadora-section h3 {
  text-align: center;
  margin-bottom: 1.4em;
  color: #295C33;
  font-size: 1.5em;
  font-weight: bold;
  letter-spacing: 0.04em;
}
.form-row { margin-bottom: 1.2em; }
.form-row label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.3em;
  color: #234a26;
}

/* Tarjeta principal de la calculadora (tu versión mejorada) */
.calc-card {
  max-width: 860px;
  margin: 2rem auto;
  padding: 1.5rem;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.calc-card h2 { margin: 0 0 1rem; }

.calc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.calc-grid label { display:block; font-size: .95rem; }
.calc-grid input[type="number"] {
  width:100%; padding:.6rem; border:1px solid #ddd; border-radius:10px;
}
.calc-grid .checkbox { display:flex; align-items:center; gap:.5rem; }

.calc-results { margin-top: 1rem; }
.calc-results .row {
  display:grid;
  grid-template-columns: 1fr minmax(0,160px) minmax(0,160px);
  gap:.75rem; padding:.5rem 0; border-bottom:1px dashed #eee;
}
.calc-results .row span:first-child { color:#374151; }
.calc-results .row strong, .calc-results .row span:not(:first-child) { text-align:right; }
.calc-results .row.highlight { background:#f9fafb; border-radius:8px; padding:.75rem; font-weight:700; }

.calc-actions { margin-top: 1rem; display:flex; align-items:center; gap:1rem; }
.calc-actions button {
  padding:.6rem 1rem; border:none; border-radius:10px;
  background:#0ea5e9; color:#fff; cursor:pointer;
}
.calc-actions small { color:#6b7280; }

.btn-primary{ background:#0ea5e9; }
.btn-primary:hover{ filter:brightness(.95); }

/* Campo “Cliente” */
.calc-client {
  margin: 1rem 0;
  display: grid;
  gap: 0.5rem;
}
.calc-client label {
  font-weight: 600;
  font-size: 1rem;
  color: #1f2937;
}
.calc-client input {
  padding: 0.8rem 1rem;
  border: 2px solid #2563eb;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 500;
  width: 60%;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.calc-client input:focus {
  border-color: #1d4ed8;
  outline: none;
  box-shadow: 0 4px 10px rgba(37,99,235,0.2);
}
.calc-client input::placeholder { color: #9ca3af; font-style: italic; }

/* ===============================
   FINANCIAMIENTO (burbujas elegantes)
=============================== */
.financing {
  background: #fff;
  color: #0f172a;
  text-align: center;
}
.bubbles{
  display:grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
  gap:14px; margin-top:12px;
}
.bubble{
  background:#0b6f5c; color:#fff; border-radius:18px; padding:16px;
  display:flex; flex-direction:column; gap:4px;
  box-shadow:0 12px 28px rgba(11,111,92,.25); text-align:center;
}
.bubble .icon{ font-size:1.25rem; }

/* Botón flotante */
.btn-whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 20px;
  right: 20px;
  background-color: #25d366;
  color: white;
  border-radius: 50%;
  text-align: center;
  font-size: 32px;
  line-height: 60px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: transform 0.3s ease, background 0.3s ease;
  z-index: 1250;
}
.btn-whatsapp-float:hover {
  background-color: #1ebc57;
  transform: scale(1.1);
}

/* Botón dentro del formulario estilo burbuja elegante */
.btn-whatsapp-form {
  display: inline-block;
  width: 30%;
  padding: 20px 2px;
  margin: 10px 0 -05px 0; /* 🔹 margen arriba 20px */
  text-align: center;
  background: linear-gradient(135deg, #28a745, #20b857);
  color: #fff;
  font-size: 1.1em;
  font-weight: 600;
  border: none;
  border-radius: 10px; /* forma burbuja */
  text-decoration: none;
  letter-spacing: 0.50px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* Efecto hover elegante */
.btn-whatsapp-form:hover {
  background: linear-gradient(135deg, #20b857, #1aa94d);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Pequeño efecto de brillo al pasar */
.btn-whatsapp-form::after {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: rgba(255, 255, 255, 0.254);
  transform: skewX(-25deg);
  transition: left 0.6s;
}

.btn-whatsapp-form:hover::after {
  left: 125%;
}

/* ===============================
   FORMULARIO (contacto)
=============================== */
.contact { background: #f8fafc; }
form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 600px;
  margin: auto;
}
form input, form textarea {
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}
form input:focus, form textarea:focus {
  border-color:#0b6f5c;
  outline:none;
  box-shadow: 0 0 0 3px rgba(11,111,92,.15);
}
form button {
  background: #28a745;
  color: white;
  padding: 12px;
  border: none;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
}
form button:hover { background: #218838; }

/* ===============================
   FOOTER COMPACTO CON COLUMNAS
=============================== */
footer {
  background: #0f172a;
  color: #e2e8f0;
  padding: 30px 20px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

footer .footer-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
}

footer .footer-column {
  flex: 1;
  min-width: 250px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

footer .footer-logo-large {
  width: 200px; /* tamaño más grande que el logo normal */
  height: auto;
  margin-bottom: 8px;
}

footer .footer-logo {
  width: 150px;
  height: auto;
  margin-bottom: 8px;
}

footer .company-name {
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 5px;
}

footer a {
  color: #a7f3d0;
  text-decoration: none;
  font-weight: 500;
}

footer a:hover {
  color: #34d399;
}

footer .footer-socials {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin: 8px 0;
}

footer .footer-socials a {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #a7f3d0;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

footer .footer-socials a:hover {
  color: #34d399;
}

footer .footer-copy {
  text-align: center;
  margin-top: 25px;
  font-size: 0.9rem;
  color: #94a3b8;
}

footer .company-role {
  font-style: italic;
  font-size: 0.95rem;
  color: #94a3b8;
  margin-bottom: 5px;
}


/* Responsive: columnas se apilan en pantallas pequeñas */
@media (max-width: 768px) {
  footer .footer-container {
    flex-direction: column;
    align-items: center;
  }
  footer .footer-column {
    align-items: center;
    text-align: center;
  }
}

/* ===============================
   RESPONSIVE
=============================== */

/* Navbar colapsable en móvil (ajustes generales) */
.navbar { display: flex; align-items: center; justify-content: space-between; }
.nav-links { display: flex; gap: 0px; }

/* ======= Ajustes móviles: menú oculto por defecto, aparece al tocar ======= */
@media (max-width: 768px) {
  .menu-toggle {
    display: inline-flex;
    background: transparent;
    border: 0;
    color: #fff;
    font-weight: 700;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    z-index: 1300;
  }

  .navbar{
    padding: 0 16px;
    height: 64px;
    /* fondo ligeramente oscuro en móvil para que el logo/toggle se vean */
    background: rgba(0,0,0,0.35);
    backdrop-filter: blur(10px);
  }

  /* Panel del menú oculto por defecto (transform fuera de pantalla).
     Usamos la clase .is-open para abrirlo (coincide con JS). */
  .nav-links, #nav {
    position: fixed;
    left: 0;
    right: 0;
    top: 0px;
    background: #fff; 
    display: flex;
    flex-direction: column;
    border-bottom: 0px solid rgba(0,0,0,.06);
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
    transform: translateY(-400%); /* escondido completamente fuera del viewport */
    transition: transform .35s cubic-bezier(.2,.9,.2,1);
    z-index: 1290;
    padding-bottom: 0  px;
  }
  .nav-links.is-open, #nav.is-open { transform: translateY(0); }
  .nav-links li a, #nav li a { color: #0f172a; padding: 14px 18px; }

  /* Hero más compacto en móvil */
  .hero-img { height: 60dvh; }
  .hero-content { top: auto; bottom: 6%; left: 50%; transform: translate(-50%, 0); }
}

/* Forzar envoltura en filas flex que se salen de la pantalla */
.row, .flex, .nav-links { flex-wrap: wrap; }

/* Neutraliza anchos/min-width rígidos en móvil */
@media (max-width: 768px) {
  html { -webkit-text-size-adjust: 100%; }
  body, .container, .wrapper { max-width: 100vw; }
  [style*="width:"], [class*="col-"] { max-width: 100% !important; }
  [style*="min-width:"], .minw { min-width: 0 !important; }
}

/* Tablas / elementos anchos: permitir scroll horizontal controlado */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }

/* =========================================================
   OVERRIDES PARA MENÚ MÓVIL + CALCULADORA (NO BORRAR, DEJAR AL FINAL)
   — arregla el “marco blanco” y el desborde de números —
========================================================= */

/* Backdrop del menú móvil */
.mobile-backdrop{
  position: fixed; inset: 0;
  background: rgba(0,0,0,.35);
  opacity: 0; pointer-events: none;
  transition: opacity .2s ease;
  z-index: 1280;
}
.mobile-backdrop.show{ opacity: 1; pointer-events: auto; }

/* Bloquear scroll cuando el menú está abierto */
body.menu-open{ overflow: hidden; }

/* Panel del menú como capa fija con transición (evita “marco blanco”) */
@media (max-width: 768px){
  .navbar{ z-index: 1300; }
  .navbar .nav-links{
    position: fixed; left: 0; right: 0; top: 64px;
    background: #fff;
    border-bottom: 1px solid rgba(0,0,0,.06);
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
    display: flex; flex-direction: column;
    transform: translateY(-120%);           /* escondido fuera de la vista */
    transition: transform .25s ease;
    z-index: 1290;
    padding-bottom: 20px;
  }
  .navbar .nav-links.is-open{ transform: translateY(0); }
  .navbar .nav-links li a{ color:#0f172a; padding:14px 18px; }
}

/* CALCULADORA: evitar desbordes y mejorar en móviles */
.calc-results .row{
  grid-template-columns: 1fr minmax(0,160px) minmax(0,160px);
}
.calc-results .row > *:not(:first-child){
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  text-align: right;
}

/* Aumenté este breakpoint para cubrir más móviles (de 480 -> 640) */
@media (max-width: 640px){
  .calc-card{ padding: 1rem; }
  .calc-grid{ grid-template-columns: 1fr; }
  .calc-client input{ width: 100%; }
  .calc-results .row{
    grid-template-columns: 1fr;
    gap: .25rem;
  }
  .calc-results .row > *{ text-align: left; }
}

/* Estándar */
input[type="number"] {
  appearance: none; /* estándar; algunos navegadores ya ocultan flechas */
}

/* WebKit (Chrome, Safari, Edge) */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Solo aplica en Firefox si soporta la propiedad con prefijo */
@supports (-moz-appearance: textfield) {
  input[type="number"] {
    -moz-appearance: textfield;
  }
}
/* 🔹 Ajuste del hero en pantallas pequeñas */
@media (max-width: 768px) {
  .hero {
    position: relative;
    height: 100vh; /* Usa toda la altura de la pantalla */
    overflow: hidden;
  }

  .hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Imagen cubre todo sin deformarse */
  }

  .hero-content {
    position: absolute;
    top: 50%; /* Centra verticalmente */
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    text-align: center;
    color: #fff;
    background: rgba(0, 0, 0, 0.4); /* Fondo translúcido para mejorar contraste */
    padding: 20px;
    border-radius: 12px;
  }

  .hero-content h1 {
    font-size: 1.8rem;
    margin-bottom: 10px;
  }

  .hero-content p {
    font-size: 1rem;
    margin-bottom: 15px;
  }

  .cta-button {
    font-size: 1rem;
    padding: 12px 20px;
  }
}

/* === Ajustes generales para imágenes nuevas === */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Control más fino para logos e imágenes decorativas */
.logo,
.header-logo img,
.intro-logo img,
.footer-logo img {
  max-width: 220px;  /* ajusta según tu diseño */
  height: auto;
  margin: 0 auto;
  display: block;
}

/* Imágenes grandes tipo fondo, dron, masterplan, etc. */
.masterplan img,
.vista-dron img,
.playa-samana img {
  width: 100%;
  max-width: 900px; /* límite superior para evitar gigantismo */
  height: auto;
  margin: 0 auto;
  display: block;
  border-radius: 12px;
  object-fit: cover;
}

