/* ==========================================================================
   PARCELA EL ROBLE — Landing page de terreno
   Sistema de diseño: "levantamiento topográfico"
   ========================================================================== */

:root {
  /* -- Color -- */
  --color-ink:        #1C1E16;
  --color-forest:      #223221;
  --color-forest-dark:  #182319;
  --color-parchment:   #EDE8DA;
  --color-parchment-2: #E3DCC9;
  --color-soil:        #9C6B3E;
  --color-soil-dark:   #7E5530;
  --color-wheat:       #D8C48C;
  --color-line:        rgba(28, 30, 22, 0.14);
  --color-line-light:  rgba(237, 232, 218, 0.35);

  /* -- Tipografía -- */
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;

  /* -- Layout -- */
  --max-width: 1180px;
  --radius: 3px;
}

/* -- Reset -- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-parchment);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; font-weight: 600; }
p { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

:focus-visible {
  outline: 2px solid var(--color-soil);
  outline-offset: 2px;
}

.mono { font-family: var(--font-mono); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-wheat);
  margin-bottom: 0.75rem;
}
.eyebrow--dark { color: var(--color-soil-dark); }

.section-head {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section-head h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  max-width: 20ch;
}
.section-head--light .eyebrow { color: var(--color-wheat); }
.section-head--light h2 { color: var(--color-parchment); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--color-parchment);
  overflow: hidden;

  /* Foto real del terreno. Para cambiarla, reemplaza fotos/hero.jpg
     por otra imagen (recomendado: horizontal, mínimo 1920px de
     ancho) y mantén el mismo nombre de archivo o actualiza la ruta. */
  background-image:
    linear-gradient(180deg, rgba(24,35,25,0.35) 0%, rgba(24,35,25,0.55) 55%, rgba(24,35,25,0.92) 100%),
    url("fotos/hero.jpg");
  background-size: cover;
  background-position: center;
}

.hero__nav {
  position: relative;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 1.75rem 0;
}
.wordmark {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.01em;
}
.wordmark em { font-style: italic; color: var(--color-wheat); }
.wordmark--small { color: var(--color-parchment); }
.nav-link {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-decoration: none;
  border-bottom: 1px solid var(--color-wheat);
  padding-bottom: 2px;
}

.hero__content {
  position: relative;
  z-index: 3;
  padding: 4rem 1.75rem 3.5rem;
  max-width: 760px;
}
.hero__content--centered {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.hero__content--centered .hero__subtitle { margin-left: auto; margin-right: auto; }
.hero__title {
  font-size: clamp(2.2rem, 6vw, 3.75rem);
  line-height: 1.08;
  font-weight: 500;
  margin-bottom: 1.25rem;
}
.hero__subtitle {
  font-size: 1.05rem;
  max-width: 46ch;
  color: rgba(237,232,218,0.88);
  margin-bottom: 2rem;
}
.hero__scroll-hint {
  position: relative;
  z-index: 3;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-align: center;
  padding-bottom: 1.25rem;
  color: rgba(237,232,218,0.6);
}

/* ==========================================================================
   Botones
   ========================================================================== */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 0.95rem 1.9rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.btn--primary {
  background: var(--color-soil);
  color: var(--color-parchment);
}
.btn--primary:hover { background: var(--color-soil-dark); transform: translateY(-1px); }
.btn--primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.btn--block { width: 100%; text-align: center; font-size: 1rem; padding: 1rem; }

/* ==========================================================================
   GALERÍA — carrusel
   ========================================================================== */
.gallery {
  padding: 5rem 0 4rem;
}
.gallery .section-head { margin-bottom: 2.5rem; }

.carousel {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.carousel__viewport {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--color-parchment-2);
  aspect-ratio: 16/9;
}
.carousel__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  animation: carousel-fade 0.35s ease;
}
@keyframes carousel-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .carousel__image { animation: none; }
}

.carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(237,232,218,0.5);
  background: rgba(28,30,22,0.4);
  color: var(--color-parchment);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(2px);
  transition: background-color 0.15s ease;
}
.carousel__arrow:hover { background: rgba(28,30,22,0.65); }
.carousel__arrow svg { width: 22px; height: 22px; }
.carousel__arrow--prev { left: 1rem; }
.carousel__arrow--next { right: 1rem; }

.carousel__caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-parchment);
  background: linear-gradient(0deg, rgba(28,30,22,0.7), transparent);
}
.carousel__caption .mono { color: var(--color-wheat); margin-right: 0.5em; }

.carousel__dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
}
.carousel__dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid var(--color-soil);
  background: transparent;
  padding: 0;
  cursor: pointer;
}
.carousel__dots button[aria-selected="true"] { background: var(--color-soil); }

@media (max-width: 640px) {
  .carousel__arrow { width: 38px; height: 38px; }
  .carousel__arrow svg { width: 18px; height: 18px; }
  .carousel__caption { font-size: 0.72rem; }
}

/* ==========================================================================
   VIDEO EN LOOP — pieza distinta a la galería (banda oscura cinematográfica)
   ========================================================================== */
.video-feature {
  background: var(--color-forest-dark);
  padding: 5rem 0 5.5rem;
}
.video-feature .section-head { margin-bottom: 2.5rem; }

.video-feature__frame {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.video-feature__video {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  border-radius: var(--radius);
  border: 1px solid rgba(216,196,140,0.35);
}

/* ==========================================================================
   Boundary divider (deslinde decorativo)
   ========================================================================== */
.boundary { line-height: 0; }
.boundary svg { width: 100%; height: 24px; display: block; }
.boundary--light { background: var(--color-forest-dark); }

/* ==========================================================================
   DETALLES
   ========================================================================== */
.details {
  padding: 4.5rem 0 5rem;
  background: var(--color-parchment-2);
}
.details .section-head { margin-bottom: 2.5rem; }
.details__grid {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--color-line);
  border: 1px solid var(--color-line);
}
.detail-card {
  background: var(--color-parchment-2);
  padding: 2rem 1.75rem;
}
.detail-card__icon { width: 26px; height: 26px; color: var(--color-soil); margin-bottom: 1rem; }
.detail-card__label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-soil-dark);
  margin-bottom: 0.5rem;
}
.detail-card__value { font-size: 1.05rem; font-weight: 600; line-height: 1.4; }
.detail-card__value a {
  color: var(--color-ink);
  text-decoration: none;
  border-bottom: 1px solid var(--color-soil);
  transition: color 0.15s ease;
}
.detail-card__value a:hover { color: var(--color-soil-dark); }
.detail-card__coords {
  display: inline-block;
  margin-top: 0.3rem;
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--color-soil-dark);
  border-bottom: none;
}

@media (max-width: 900px) {
  .details__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .details__grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   CONTACTO / FORMULARIO
   ========================================================================== */
.contact {
  position: relative;
  background: var(--color-forest);
  padding: 5rem 0 4rem;
}
.contact .section-head { margin-bottom: 2rem; }
.contact__subtitle { color: rgba(237,232,218,0.75); margin-top: 0.75rem; max-width: 46ch; }

.contact-form {
  max-width: 560px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

/* Honeypot: oculto visualmente y para lectores de pantalla,
   pero presente en el DOM para atrapar bots que autocompletan
   todos los campos del formulario. */
.hp-field {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  left: -9999px;
}

.form-row { display: flex; flex-direction: column; gap: 0.4rem; }
.form-row label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-wheat);
}
.form-row input, .form-row textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--color-line-light);
  background: rgba(237,232,218,0.06);
  color: var(--color-parchment);
}
.form-row input::placeholder, .form-row textarea::placeholder { color: rgba(237,232,218,0.4); }
.form-row input:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--color-wheat);
  background: rgba(237,232,218,0.1);
}
.form-row input:invalid:not(:placeholder-shown),
.form-row textarea:invalid:not(:placeholder-shown) {
  border-color: #C97A63;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: rgba(237,232,218,0.75);
}
.consent input { margin-top: 0.2rem; }

.form-status {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  min-height: 1.2em;
}
.form-status[data-state="ok"] { color: #A8C99A; }
.form-status[data-state="error"] { color: #E0A08B; }

.contact__direct {
  text-align: center;
  margin-top: 2.5rem;
  color: rgba(237,232,218,0.7);
  font-size: 0.9rem;
}
.contact__direct a { text-decoration: underline; text-underline-offset: 3px; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--color-forest-dark);
  color: rgba(237,232,218,0.55);
  text-align: center;
  padding: 2.5rem 1.5rem;
  font-size: 0.8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
