/* =========================================================
   Ex Hacienda Santa Rosa — One page
   Paleta tomada del logo (café) y del Instagram (verde olivo)
   ========================================================= */
:root {
  --brown: #3d1f16;
  --brown-2: #5a3324;
  --green: #2b3028;
  --green-2: #363c33;
  --cream: #f6f1e7;
  --sand: #e9dcc3;
  --terracotta: #c08552;
  --text: #2a2622;
  --muted: #6e665d;
  --white: #fffdf9;

  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Work Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 4px;
  --max: 1200px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

.container {
  width: min(100% - 40px, var(--max));
  margin-inline: auto;
}

/* ---------- Tipografía ---------- */
.eyebrow {
  margin: 0 0 14px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--sand);
}
.eyebrow--dark { color: var(--brown-2); }

.title {
  margin: 0 0 18px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 1;
  letter-spacing: -.01em;
  color: var(--brown);
}
.title em { font-style: italic; }
.title--light { color: var(--white); }

.lead {
  margin: 0;
  max-width: 620px;
  font-size: 1.08rem;
  font-weight: 300;
  color: var(--muted);
}
.lead--light { color: rgba(255, 253, 249, .78); }

.center { text-align: center; }

.link {
  display: inline-block;
  margin-top: 36px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brown);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 3px;
}
.link:hover { color: var(--terracotta); }

/* ---------- Botones ---------- */
.btn {
  display: inline-block;
  padding: 15px 28px;
  border: 1px solid var(--white);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--brown);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background .25s, color .25s, border-color .25s;
}
.btn:hover { background: var(--sand); border-color: var(--sand); }

.btn--ghost { background: transparent; color: var(--white); }
.btn--ghost:hover { background: var(--white); color: var(--brown); border-color: var(--white); }

.btn--small { padding: 10px 18px; font-size: 12px; }
.btn--full { width: 100%; }

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding: 18px 0;
  transition: background .3s, padding .3s, box-shadow .3s;
}
.header.is-scrolled {
  background: rgba(43, 48, 40, .96);
  backdrop-filter: blur(8px);
  padding: 10px 0;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .15);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--white);
}
.brand__logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .5);
}
.brand__name {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  line-height: 1.25;
}
.brand__name em {
  font-family: var(--serif);
  font-size: 19px;
  font-style: italic;
  letter-spacing: 0;
  text-transform: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav a:not(.btn) {
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--white);
  opacity: .9;
}
.nav a:not(.btn):hover { opacity: 1; color: var(--sand); }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  margin: 6px auto;
  background: var(--white);
  transition: transform .3s, opacity .3s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: 140px 0 110px;
  color: var(--white);
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
  animation: zoom 18s ease-out forwards;
}
@keyframes zoom { from { transform: scale(1.08); } to { transform: scale(1); } }

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 22, 18, .55) 0%, rgba(20, 22, 18, .1) 35%, rgba(20, 22, 18, .75) 100%);
}
.hero__content { position: relative; }
.hero__title {
  margin: 0 0 22px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3.6rem, 11vw, 8.5rem);
  line-height: .9;
  letter-spacing: -.02em;
}
.hero__title em { font-style: italic; }
.hero__text {
  max-width: 540px;
  margin: 0 0 34px;
  font-size: 1.1rem;
  font-weight: 300;
  color: rgba(255, 253, 249, .88);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__tag {
  position: absolute;
  right: 40px;
  bottom: 40px;
  margin: 0;
  font-size: 13px;
  letter-spacing: .3em;
  text-transform: uppercase;
  opacity: .85;
}

/* ---------- Cifras ---------- */
.stats { background: var(--brown); color: var(--white); }
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat {
  padding: 38px 20px;
  text-align: center;
  border-left: 1px solid rgba(255, 255, 255, .12);
}
.stat:first-child { border-left: 0; }
.stat__num {
  display: block;
  font-family: var(--serif);
  font-size: 3.4rem;
  line-height: 1;
}
.stat__label {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--sand);
}

/* ---------- Secciones ---------- */
.section { padding: clamp(80px, 11vw, 130px) 0; }
.section--dark { background: var(--green); color: var(--white); }
.section--cream { background: var(--cream); }

.section__head { margin-bottom: 56px; }

/* ---------- Cards de espacios ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.card {
  background: var(--white);
  border: 1px solid #ece4d6;
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .35s, box-shadow .35s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(61, 31, 22, .12); }
.card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.card__body { padding: 24px 26px 28px; }
.card h3 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.05;
  color: var(--brown);
}
.card ul { margin: 0; padding: 0; list-style: none; }
.card li {
  position: relative;
  padding-left: 18px;
  font-size: .95rem;
  color: var(--muted);
}
.card li + li { margin-top: 4px; }
.card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .72em;
  width: 7px;
  height: 1px;
  background: var(--terracotta);
}

/* ---------- Instalaciones ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}
.split__media { position: relative; padding-bottom: 70px; }
.split__img-main {
  width: 82%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
}
.split__img-sub {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 55%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 8px solid var(--green);
  border-radius: var(--radius);
}

.features { margin: 34px 0 0; padding: 0; list-style: none; }
.features li {
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, .14);
}
.features li:last-child { border-bottom: 1px solid rgba(255, 255, 255, .14); }
.features h4 {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--sand);
}
.features p { margin: 0; font-weight: 300; color: rgba(255, 253, 249, .82); }

/* ---------- Checklist ---------- */
.checklist {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.check {
  position: relative;
  padding: 0 0 30px;
  background: var(--green);
  color: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
}
.check img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  margin-bottom: 22px;
}
.check__num {
  position: absolute;
  top: 16px;
  left: 18px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  background: rgba(43, 48, 40, .85);
  border-radius: 2px;
}
.check h3 {
  margin: 0 26px 10px;
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: 400;
  font-style: italic;
  line-height: 1;
}
.check p {
  margin: 0 26px;
  font-size: .95rem;
  font-weight: 300;
  color: rgba(255, 253, 249, .82);
}

/* ---------- Galería ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 230px;
  gap: 12px;
}
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}
.gallery { grid-auto-flow: dense; }
.gallery .g-wide { grid-column: span 2; }
.gallery .g-tall { grid-row: span 2; }

/* ---------- Contacto ---------- */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: start;
}
.contact__list { margin: 36px 0 0; padding: 0; list-style: none; }
.contact__list li { padding: 14px 0; border-top: 1px solid rgba(255, 255, 255, .14); }
.contact__list span {
  display: block;
  margin-bottom: 2px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--sand);
}
.contact__list a { text-decoration: none; font-size: 1.05rem; }
.contact__list a:hover { color: var(--sand); }

.form {
  padding: clamp(28px, 4vw, 40px);
  background: var(--white);
  color: var(--text);
  border-radius: var(--radius);
}
.form h3 {
  margin: 0 0 22px;
  font-family: var(--serif);
  font-size: 2.1rem;
  font-weight: 400;
  color: var(--brown);
}
.form label {
  display: block;
  margin-bottom: 16px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.form input,
.form select,
.form textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  font: 400 15px/1.4 var(--sans);
  letter-spacing: 0;
  text-transform: none;
  color: var(--text);
  background: var(--cream);
  border: 1px solid #e2d8c6;
  border-radius: var(--radius);
  outline: none;
  transition: border-color .2s, background .2s;
}
.form input:focus,
.form select:focus,
.form textarea:focus { border-color: var(--brown-2); background: var(--white); }
.form textarea { resize: vertical; }
.form__row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; }
.form .btn { background: var(--brown); border-color: var(--brown); color: var(--white); margin-top: 6px; }
.form .btn:hover { background: var(--brown-2); border-color: var(--brown-2); }
.form__row--even { grid-template-columns: 1fr 1fr; }
.form .btn--wa { background: transparent; border-color: #25d366; color: #1a9e4b; margin-top: 10px; }
.form .btn--wa:hover { background: #25d366; border-color: #25d366; color: #fff; }
.form .btn:disabled { opacity: .6; cursor: wait; }
.form__status { margin: 14px 0 0; font-size: 14px; text-align: center; min-height: 1.4em; }
.form__status.is-ok { color: #1a7a3e; font-weight: 500; }
.form__status.is-error { color: #b3261e; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.map { margin-top: 70px; }
.map iframe {
  display: block;
  width: 100%;
  height: 380px;
  border: 0;
  border-radius: var(--radius);
  filter: grayscale(.35) contrast(1.05);
}

/* ---------- Footer ---------- */
.footer { background: var(--brown); color: rgba(255, 253, 249, .75); padding: 36px 0; font-size: 13px; }
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer p { margin: 0; }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 60px;
  padding: 0 16px 0 15px;
  border-radius: 30px;
  background: #25d366;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .25);
  transition: transform .25s, box-shadow .25s;
}
.wa-float:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(0, 0, 0, .3); }
.wa-float svg { width: 30px; height: 30px; flex: none; }
.wa-float__label { font-size: 14px; font-weight: 600; white-space: nowrap; }
.wa-float::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(37, 211, 102, .55);
  animation: pulse 2.4s infinite;
  pointer-events: none;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .55); }
  70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .cards, .checklist { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; position: relative; z-index: 2; }
  .nav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    background: var(--green);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s, visibility .3s;
  }
  .nav.is-open { opacity: 1; visibility: visible; }
  .nav a:not(.btn) { font-size: 15px; }

  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .12); }

  .split, .contact { grid-template-columns: 1fr; }
  .hero__tag { display: none; }
  .wa-float__label { display: none; }
  .wa-float { width: 60px; padding: 0; justify-content: center; }
}

@media (max-width: 600px) {
  .cards, .checklist { grid-template-columns: 1fr; }
  .gallery { grid-auto-rows: 160px; }
  .form__row { grid-template-columns: 1fr; }
  .stat { padding: 28px 12px; }
  .stat__num { font-size: 2.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__bg, .wa-float::after { animation: none; }
}
