/* ============================================================================
   CASAS CULIACÁN — HOJA DE ESTILOS
   ============================================================================
   Índice:
     1. Variables y reset
     2. Tipografía general
     3. Menú de navegación (panel oscuro)
     4. Página: Inicio
     5. Página: Casas disponibles
     6. Página: Vive la experiencia (Ecuador / Meridion / Solare Garden)
     7. Página: Agenda tu cita
     8. Utilidades / componentes compartidos
     9. Responsive
   ============================================================================ */

/* 1. VARIABLES Y RESET --------------------------------------------------- */
:root {
  --color-dark: #1f3a35;
  --color-dark-soft: #2a4a44;
  --color-cream: #f4efe7;
  --color-cream-alt: #ece5d8;
  --color-taupe: #cdbfa8;
  --color-accent-lime: #d7e46b;
  --color-accent-yellow: #f0cf6a;
  --color-text-dark: #201f1c;
  --color-text-light: #ffffff;
  --color-text-muted: #6f6a61;

  --font-heading: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Poppins", "Segoe UI", Arial, sans-serif;

  --radius-lg: 28px;
  --radius-md: 16px;
  --radius-pill: 999px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-text-dark);
  background: var(--color-cream);
  line-height: 1.5;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

button {
  font-family: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--color-accent-yellow);
  outline-offset: 3px;
}

/* 2. TIPOGRAFÍA GENERAL --------------------------------------------------- */
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
}

.heading-xl {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.05;
  color: var(--color-text-dark);
}

/* 3. MENÚ DE NAVEGACIÓN (panel oscuro) ------------------------------------ */
.nav-panel {
  background: var(--color-dark);
  color: var(--color-text-light);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 3rem;
}

.nav-list {
  list-style: none;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

.nav-item {
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  padding: 1.4rem 0;
  text-align: center;
}

.nav-item:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.nav-link {
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  transition: opacity 0.2s ease;
}

.nav-link:hover,
.nav-link--active {
  opacity: 0.75;
}

/* 4. PÁGINA: INICIO -------------------------------------------------------- */
.home-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  min-height: 100vh;
}

.home-intro {
  padding: 3.5rem 3.5rem 3rem;
  background: var(--color-cream);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 2.5rem;
}

.brand {
  text-align: center;
}

.brand__logo-full {
  width: 220px;
  max-width: 60vw;
  height: auto;
  margin: 0 auto;
}

/* Versión clara del logo para usarla sobre fondos oscuros / fotos.
   Si tu logo-full.png ya es de color claro, puedes borrar este filtro. */
.brand__logo-full--light {
  filter: brightness(0) invert(1) drop-shadow(0 2px 10px rgba(0, 0, 0, 0.35));
}

.home-hero-img {
  width: 100%;
  max-width: 640px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.home-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 5. PÁGINA: CASAS DISPONIBLES -------------------------------------------- */
.page-simple {
  min-height: 100vh;
  padding: 2.5rem 3rem 4rem;
}

.page-simple__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
}

.back-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-dark);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.page-title {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  letter-spacing: 0.01em;
  text-align: center;
  margin-bottom: 3rem;
}

.house-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  max-width: 1150px;
  margin: 0 auto;
}

.house-card {
  position: relative;
  display: block;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--color-dark);
  transition: transform 0.25s ease;
}

.house-card:hover {
  transform: translateY(-4px);
}

.house-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.house-card__tag {
  position: absolute;
  left: 50%;
  bottom: 1.4rem;
  transform: translateX(-50%);
  background: var(--color-accent-lime);
  color: var(--color-text-dark);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  padding: 0.65rem 1.6rem;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

/* 6. PÁGINA: VIVE LA EXPERIENCIA ------------------------------------------- */
.tour-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

.tour-info {
  background: var(--color-cream-alt);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem;
}

.tour-info .eyebrow {
  margin-bottom: 0.75rem;
}

.tour-info .heading-xl {
  margin-bottom: 1.5rem;
}

.tour-divider {
  width: 220px;
  height: 14px;
  margin-bottom: 2.5rem;
  background: none;
}

.tour-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn-start {
  display: inline-block;
  align-self: flex-start;
  background: var(--color-accent-yellow);
  color: var(--color-text-dark);
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: 0.85rem;
  padding: 0.95rem 2rem;
  border: none;
  border-radius: 4px;
  transition: filter 0.2s ease;
}

.btn-start:hover {
  filter: brightness(0.95);
}

.btn-contact-outline {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  background: transparent;
  color: var(--color-text-dark);
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: 0.85rem;
  padding: 0.9rem 2rem;
  border: 2px solid var(--color-text-dark);
  border-radius: 4px;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn-contact-outline:hover {
  background: var(--color-text-dark);
  color: var(--color-text-light);
}

.tour-visual {
  position: relative;
  overflow: hidden;
}

.tour-visual__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tour-visual__house {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 62%;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}

.tour-visual__house img {
  width: 100%;
  display: block;
}

/* 7. PÁGINA: AGENDA TU CITA ------------------------------------------------ */
.appt-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

.appt-form-panel {
  background: var(--color-taupe);
  padding: 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.appt-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2.4rem, 5vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: 0.06em;
  margin-bottom: 2.5rem;
}

.form-field {
  margin-bottom: 1.6rem;
}

.form-field label {
  display: block;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}

.form-field input,
.form-field select {
  width: 100%;
  max-width: 420px;
  background: transparent;
  border: none;
  border-bottom: 1.5px solid rgba(32, 31, 28, 0.4);
  padding: 0.5rem 0.1rem;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--color-text-dark);
}

.form-field input::placeholder {
  color: var(--color-text-muted);
  font-style: italic;
}

.form-field select {
  cursor: pointer;
}

.btn-contact {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--color-text-dark);
  color: var(--color-text-light);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  padding: 1rem 1.6rem;
  border: none;
  border-radius: 4px;
  margin-top: 1rem;
}

.btn-contact:hover {
  filter: brightness(1.15);
}

.appt-visual {
  position: relative;
  overflow: hidden;
}

.appt-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.appt-visual__brand {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.appt-visual__brand .brand__logo-full {
  width: 180px;
}

/* 8. UTILIDADES / COMPONENTES COMPARTIDOS ---------------------------------- */
.site-footer-note {
  text-align: center;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  padding: 1.5rem;
}

/* 9. RESPONSIVE ------------------------------------------------------------- */
@media (max-width: 900px) {
  .home-layout,
  .tour-layout,
  .appt-layout {
    grid-template-columns: 1fr;
  }

  .tour-visual,
  .appt-visual {
    min-height: 320px;
    order: -1;
  }

  .house-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
  }

  .page-simple {
    padding: 2rem 1.5rem 3rem;
  }

  .home-intro,
  .tour-info,
  .appt-form-panel {
    padding: 2.5rem 1.75rem;
  }
}
