/* ===================================================== */
/* ================= RESET GLOBAL ====================== */
/* ===================================================== */

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

:root {
  --beige: #F5F1EB;
  --white: #FFFFFF;
  --olive: #9DAA6D;
  --olive-dark: #7F8B55;
  --text-dark: #2E2E2E;
  --gray-soft: #E5E5E5;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--beige);
  color: var(--text-dark);
}

/* ===================================================== */
/* ================= HEADER ============================ */
/* ===================================================== */

.header {
  background: var(--white);
  padding: 15px 0;
  position: relative;
  z-index: 1000;
}

.header-inner {
  width: 100%;
  padding: 0 5%;
  display: flex;
  align-items: center;
}

.logo img {
  height: 50px;
}

.nav {
  display: flex;
}

.nav a {
  margin-left: 20px;
  text-decoration: none;
  color: var(--olive);
  font-weight: 600;
}

.menu-toggle {
  display: none;
  font-size: 28px;
  background: none;
  border: none;
  cursor: pointer;
}

/* ===================================================== */
/* ================= HERO ============================== */
/* ===================================================== */

.hero {
  position: relative;
  min-height: 85vh;
  padding-bottom: 220px; /* 🔑 reserva espacio REAL para la tarjeta */
  background-image: url('../images/hero.jpg');
  background-size: cover;
  background-position: center -500px;
  overflow: visible;
}

/* Overlay */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(245, 241, 235, 0);
  z-index: 1;
}

/* ===================================================== */
/* ================= TARJETA BLANCA ==================== */
/* ===================================================== */

.hero-content {
  position: absolute;
  top: 80%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;

  background: rgba(255, 255, 255, 0.96);
  max-width: 560px;
  width: calc(100% - 40px);
  padding: 28px 36px;

  border-radius: 20px;
  box-shadow:
    0 28px 60px rgba(0, 0, 0, 0.18),
    0 6px 12px rgba(0, 0, 0, 0.05);

  text-align: center;
}

.hero-brand {
  display: block;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--olive-dark);
  margin-bottom: 12px;
  font-weight: 600;
}

.hero-content h2 {
  font-size: 26px;
  margin-bottom: 10px;
}

.hero-content p {
  font-size: 15.5px;
  line-height: 1.6;
}

.btn {
  display: inline-block;
  margin-top: 20px;
  background: var(--olive);
  color: white;
  padding: 13px 28px;
  text-decoration: none;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* ===================================================== */
/* ================= SECCIONES ========================= */
/* ===================================================== */

.section {
  padding: 110px 10% 90px;
}

.section p {
  max-width: 820px;
  line-height: 1.7;
}

.bg-soft {
  background: var(--white);
}

h3 {
  margin-bottom: 20px;
}

/* ===================================================== */
/* ================= CARDS ============================= */
/* ===================================================== */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.cards a.card,
.unidad {
  background: var(--beige);
  padding: 35px 25px;
  border-radius: 12px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform .25s ease, box-shadow .25s ease;
}

.cards a.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.18);
}

.unidades {
  margin-top: 50px;
}

.unidad img {
  height: 70px;
  margin-bottom: 20px;
}

.unidad-disabled {
  background: #f2f2f2;
  opacity: 0.6;
}

.unidad-soon {
  margin-top: 10px;
  font-weight: 600;
  color: var(--olive-dark);
}

/* ===================================================== */
/* ================= MAPA ============================== */
/* ===================================================== */

.map {
  margin-top: 30px;
  padding: 12px;
  background: var(--beige);
  border-radius: 16px;
}

.map iframe {
  width: 100%;
  height: 350px;
  border-radius: 12px;
  border: none;
}

/* ===================================================== */
/* ================= WHATSAPP ========================== */
/* ===================================================== */

.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 60px;
  height: 60px;
  background: var(--olive);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

/* ===================================================== */
/* ================= FOOTER ============================ */
/* ===================================================== */

footer {
  text-align: center;
  padding: 30px;
  background: var(--white);
}

/* ===================================================== */
/* ================= MOBILE ============================ */
/* ===================================================== */

@media (max-width: 768px) {

  .menu-toggle {
    display: block;
  }

  .nav {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: var(--white);
    flex-direction: column;
    display: none;
  }

  .nav.active {
    display: flex;
  }

  .nav a {
    padding: 18px;
    text-align: center;
    border-bottom: 1px solid var(--gray-soft);
  }

  /* 🔑 HERO MOBILE: deja de ser hero */
  .hero {
    min-height: auto;          /* quita altura grande */
    padding-bottom: 0;         /* elimina espacio fantasma */
    background-image: none;    /* elimina fondo gigante */
    background: transparent;
  }

  /* 🔑 TARJETA MOBILE: flujo normal */
  .hero-content {
   position: relative;
  top: auto;
  left: auto;
  transform: none;

  margin: 28px auto;
  max-width: 86%;          /* 🔑 más estrecha */
  padding: 18px 16px;     /* 🔑 menos alta */

  border-radius: 16px;

  box-shadow:
    0 12px 26px rgba(0, 0, 0, 0.14);
  }

  .hero-content h2 {
  font-size: 20px;
  line-height: 1.25;
}

.hero-content p {
  font-size: 14px;
}

  .btn {
    padding: 12px 22px;
    font-size: 15px;
  }

  .section {
    padding: 60px 20px;
  }

  .map iframe {
    height: 280px;
  }
}
.logo {
  text-decoration: none;
}


.logo img {
  display: block;
  height: 48px; /* opcional: ajusta si quieres */
}
.logo {
  padding: 4px 0;
}
.header {
  padding-left: 0;
}

.header-inner {
  width: 100%;
  padding-left: 20px;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin: 0;
}

.logo a {
  display: flex;
  justify-content: flex-start;
}

.logo img {
  margin: 0;
}
@media (max-width: 768px) {
  .header {
    padding: 12px 0;
  }

  .header-inner {
    min-height: 56px; /* 🔑 altura real para logo */
  }
}
@media (max-width: 768px) {
  .menu-toggle {
    margin-left: auto;
  }
}
@media (max-width: 768px) {

  .header {
    position: relative;
    z-index: 1000;
  }

  .hero {
    margin-top: 20px; /* 🔑 espacio entre header y tarjeta */
  }
}
@media (max-width: 768px) {
  .hero-content {
    margin-top: 20px; /* 🔑 separa visualmente del logo */
  }
}
@media (max-width: 768px) {
  .hero-content {
    z-index: 1;
  }
}
@media (max-width: 768px) {

  .hero {
    padding-top: 90px; /* 🔑 espacio REAL debajo del header */
  }

  .hero-content {
    margin-top: 0;
  }
}
@media (max-width: 768px) {
  .logo img {
    display: block !important;
    height: 40px !important;
    width: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
}



