/* ================================
   LARHOME - Estilo Avanzado
   Blanco minimalista + Verde corporativo
================================ */

/* VARIABLES */
:root {
  --bg: #ffffff;
  --text: #0f1724;
  --muted: #6b7280;
  --accent: #1f8a5f;
  --accent-2: #2fb67d;
  --glass: rgba(255, 255, 255, 0.6);
  --card-shadow: 0 6px 20px rgba(16, 24, 40, 0.06);
  --radius: 14px;
  --max-width: 1200px;
  --transition: 280ms cubic-bezier(.2, .9, .3, 1);
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

/* RESET */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

/* CONTENEDORES */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* NAVBAR */
.nav-container {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  transition: background .3s, box-shadow .3s;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar-scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.logo {
  height: 46px;
  width: 46px;
  object-fit: contain;
  border-radius: 8px;
}

.brand span {
  font-weight: 700;
  font-size: 1.2rem;
}

.nav {
  margin-left: auto;
  display: flex;
  gap: 18px;
  align-items: center;
}

.nav a {
  color: var(--text);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background .3s, color .3s;
  font-weight: 500;
}

.nav a:hover {
  background: rgba(31, 138, 95, 0.08);
  color: var(--accent);
}

.nav a.active {
  color: var(--accent);
  font-weight: 600;
}

.btn-outline {
  border: 1.5px solid var(--accent);
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--accent);
  text-decoration: none;
  transition: .3s;
}

.btn-outline:hover {
  background: var(--accent);
  color: #fff;
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 22px;
  background: var(--text);
  margin: 4px 0;
  border-radius: 2px;
}

/* HERO */
.hero {
  text-align: center;
  padding: 90px 20px 70px;
  background: linear-gradient(180deg, #fff, #f9fdf9);
}

.hero h1 {
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  margin-bottom: 12px;
  color: var(--text);
  font-weight: 700;
}

.hero p {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 680px;
  margin: 0 auto 20px;
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 20px;
}
.hero-image {
  background-image: url('imagenes/fondo_negro.jpg');
  background-size: cover;
  background-position: center;
  height: 400px;
}


.btn-primary {
  background: var(--accent);
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all .3s ease;
  margin-top: 10px;
  float: right;
}

.btn-primary:hover {
  background: #17724e;
}

.btn-ghost {
  border: 1.5px solid var(--accent);
  color: var(--accent);
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  transition: .3s ease;
}

.btn-ghost:hover {
  background: var(--accent);
  color: #fff;
}

/* FEATURES */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 24px;
  margin: 60px auto;
  max-width: var(--max-width);
}

.feature-card {
  padding: 28px 22px;
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  background: #fff;
  transition: transform .3s ease, box-shadow .3s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.feature-card h3 {
  margin-bottom: 10px;
  color: var(--text);
  font-weight: 600;
}

.feature-card p {
  color: var(--muted);
}

/* LISTADOS */
h2 {
  font-size: 1.8rem;
  text-align: left;
  margin-bottom: 18px;
}

.grid-listings {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

/* ===============================
   ESTILOS BASE
   =============================== */
.prop-item {
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--card-shadow);
  overflow: hidden;
  transition: transform .3s, box-shadow .3s;
}

.prop-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}

.prop-media {
  width: 100%;
  aspect-ratio: 16/9;
  background-size: cover;
  background-position: center;
}


.prop-body {
  padding: 16px;
}

.price {
  font-weight: 700;
  color: var(--accent);
  font-size: 1.1rem;
}

/* CTA FINAL */
.cta-bottom {
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(180deg, #f9fdf9, #f4fbf6);
  border-top: 1px solid #e6e6e6;
}

.cta-bottom h2 {
  margin-bottom: 10px;
}

.cta-bottom p {
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto 24px;
}

/* FOOTER */
.footer {
  background: #fafafa;
  padding: 30px 20px;
  margin-top: 40px;
}

.footer-inner {
  max-width: var(--max-width);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin: auto;
}

.footer-brand img {
  height: 52px;
}

.footer-nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-nav a {
  text-decoration: none;
  color: var(--text);
  transition: color .3s;
}

.footer-nav a:hover {
  color: var(--accent);
}

.footer-contact p {
  color: var(--muted);
}

.copyright {
  text-align: center;
  color: var(--muted);
  margin-top: 14px;
  font-size: .9rem;
}

/* WHATSAPP FLOTANTE */
.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  background: var(--accent);
  color: #fff;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 40px rgba(31, 138, 95, 0.18);
  z-index: 90;
  transition: transform .3s;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

/* BOTÓN SUBIR */
#to-top {
  position: fixed;
  right: 20px;
  bottom: 80px;
  background: var(--accent);
  color: #fff;
  border: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(31, 138, 95, 0.2);
  opacity: 0;
  transform: translateY(20px);
  transition: all .3s ease;
  z-index: 70;
}

#to-top.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ANIMACIONES */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all .8s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.glow:hover {
  box-shadow: 0 0 0 4px rgba(47, 182, 125, 0.15), var(--card-shadow);
}

/* RESPONSIVE */
@media (max-width: 980px) {
  .nav {
    display: none;
  }
  .nav.open {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #fff;
    position: absolute;
    top: 70px;
    right: 20px;
    padding: 14px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  }
  .nav-toggle {
    display: block;
    margin-left: auto;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 70px 20px 50px;
  }
  .hero h1 {
    font-size: 1.8rem;
  }
  .features {
    grid-template-columns: 1fr;
  }
  .grid-listings {
    grid-template-columns: 1fr;
  }
}

/* CAROUSEL */
.carousel-section{max-width:var(--max-width); margin:28px auto; padding:0 20px}
.carousel{display:flex; align-items:center; gap:12px; position:relative}
.carousel-track{display:flex; gap:16px; overflow:hidden; width:100%}
.card{min-width:320px; max-width:360px; background:#fff; border-radius:14px; box-shadow:var(--card-shadow); overflow:hidden; transition:transform var(--transition)}
.card-media{height:200px; background-size:cover; background-position:center}
.card-body{padding:14px}
.card-body h3{margin:0 0 6px}
.muted{color:var(--muted); font-size:0.95rem}
.card-actions{display:flex; justify-content:space-between; align-items:center; margin-top:12px}
.carousel-btn{background:transparent; border:0; font-size:26px; cursor:pointer; padding:8px 14px}
.carousel-btn:hover{transform:scale(1.06)}


/* GRID LISTINGS (propiedades) */
.grid-listings{display:grid; grid-template-columns:repeat(3,1fr); gap:20px; margin:20px 0}
.prop-item{background:#fff; border-radius:12px; overflow:hidden; box-shadow:var(--card-shadow)}
.prop-media{weight:200; height:100px; background-size:cover; background-position:center}
.prop-body{padding:14px}
.prop-footer{display:flex; justify-content:space-between; align-items:center; margin-top:12px}
.price{font-weight:700; color:var(--accent)}


/* ==============================
   FORMULARIO DE CONTACTO LARHOME
   ============================== */

.contact-section {
  background: linear-gradient(180deg, #f8fcfa 0%, #ffffff 100%);
  padding: 60px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.contact-section h2 {
  font-size: 2rem;
  color: #1e3a34;
  margin-bottom: 10px;
  text-align: center;
}

.contact-section p {
  text-align: center;
  color: #444;
  margin-bottom: 40px;
  font-size: 1rem;
}

.contact-form {
  background: #ffffff;
  padding: 40px 35px;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  max-width: 550px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Etiquetas */
.contact-form label {
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
  display: block;
}

/* Campos */
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  font-size: 1rem;
  color: #1a1a1a;
  transition: all 0.3s ease;
  background: #f9fafb;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #00b67a;
  background-color: #ffffff;
  box-shadow: 0 0 6px rgba(0, 182, 122, 0.3);
}

/* Botón */
.btn-primary {
  background-color: #00b67a;
  color: #fff;
  font-weight: 600;
  border: none;
  padding: 14px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: #009e6b;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 182, 122, 0.3);
}

/* Animación de aparición */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s ease-out forwards;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 600px) {
  .contact-form {
    padding: 25px 20px;
  }
}



/* === ESTILOS DE LOS BOTONES DE FILTRO === */
.filter-btn {
  background: var(--accent);
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all .3s ease;
  margin: 5px;
}

/* Hover (al pasar el mouse) */
.filter-btn:hover {
  background: #17724e;
}

/* Estado activo (botón seleccionado) */
.filter-btn.active {
  background: #17724e;
  box-shadow: 0 0 0 2px #fff inset;
}



/* Arreglar tamaño de las tarjetas del grid */
.prop-item {
  width: 100%;
  max-width: none;
  min-height: 380px;
}

.grid-listings {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 18px;
}


/* ================== MODAL DEFINITIVO ================== */

#prop-modal {
  position: fixed;
  inset: 0;
  display: none;
  background: rgba(0,0,0,.55);
  justify-content: center;
  align-items: center;
  padding: 20px;
  z-index: 9999;
}

#prop-modal.show {
  display: flex !important;
}

#prop-modal .modal-content {
  background: #fff;
  width: 90%;
  max-width: 380px;
  padding: 20px;
  border-radius: 14px;
  text-align: center;
}

#modal-img {
  width: 100%;
  max-width: 240px;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  margin-bottom: 12px;
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 28px;
  height: 28px;
  background-size: cover;
  cursor: pointer;
}

@media (max-width:600px) {
  #prop-modal .modal-content {
    max-width: 320px;
    padding: 16px;
  }
  #modal-img {
    max-width: 200px;
  }
}



/* Reactiva clicks dentro de las tarjetas */
.prop-item,
.prop-body,
.prop-media,
.details-btn {
  pointer-events: auto !important;
}


/* =========================================
   FIX DEFINITIVO MENU + CLICKS MOBILE
   LARHOME (NO CAMBIA DISEÑO)
========================================= */

/* Las animaciones NO deben bloquear clicks */
.fade-up {
  pointer-events: auto;
}

/* NAVBAR siempre por encima */
.nav-container {
  z-index: 9999;
}

/* En móvil */
@media (max-width: 980px) {

  /* Menú hamburguesa */
  .nav-toggle {
    position: relative;
    z-index: 10001;
    pointer-events: auto;
  }

  /* Menú desplegable */
  .nav {
    pointer-events: none;
  }

  .nav.open {
    pointer-events: auto;
    position: absolute;
    z-index: 10000;
  }

  /* Asegura que los links funcionen */
  .nav.open a {
    pointer-events: auto;
  }
}

/* Botones del hero SIEMPRE clickeables */
.hero a,
.btn-primary,
.btn-ghost {
  pointer-events: auto;
}



