/* Hacienda El Abra — Diseño UI/UX Premium
   Paleta verde: fondos en verdes claros, títulos/texto/banners en verdes oscuros. */

:root {
  --bg: #eaf2e3;
  --bg-soft: #d9e8ce;
  --surface: #f4f8ee;
  --ink: #1c3322;
  --ink-soft: #2f4a32;
  --muted: #5b7a5e;
  --line: #b9d1ad;
  --terracotta: #2f4a32;
  --terracotta-deep: #1d3221;
  --gold: #6b8e4e;
  --forest: #2f4a32;
  --forest-deep: #14241a;

  --font-display: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --font-sans: "Inter", "Helvetica Neue", Arial, sans-serif;

  --shadow-soft: 0 10px 30px -18px rgba(20, 36, 26, 0.35);
  --shadow-deep: 0 30px 60px -30px rgba(20, 36, 26, 0.55);
  --radius: 4px;
}

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

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: var(--terracotta-deep); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--terracotta); }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.container-narrow { max-width: 880px; margin: 0 auto; padding: 0 28px; }

/* ============ HEADER ============ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(234, 242, 227, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0;
}
.brand {
  display: flex; align-items: center; gap: 14px;
  text-decoration: none; color: var(--ink);
}
.brand-mark {
  width: 60px; height: 60px; border-radius: 50%;
  background: #ffffff;
  object-fit: contain;
  padding: 4px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(28,51,34,0.15);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text .b1 {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 600;
  letter-spacing: 0.04em;
}
.brand-text .b2 {
  font-size: 10px; letter-spacing: 0.34em;
  text-transform: uppercase; color: var(--muted);
  margin-top: 4px;
}
.nav-links {
  display: flex; gap: 6px; align-items: center;
  list-style: none; margin: 0; padding: 0;
}
.nav-links a {
  color: var(--ink-soft);
  font-size: 13px; letter-spacing: 0.22em;
  text-transform: uppercase; font-weight: 500;
  padding: 10px 16px; border-radius: 2px;
  position: relative;
}
.nav-links a:hover { color: var(--terracotta-deep); }
.nav-links a.active { color: var(--terracotta-deep); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 4px;
  height: 1px; background: var(--terracotta);
}
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 40px; height: 40px;
}
.nav-toggle span {
  display: block; width: 22px; height: 1.5px; background: var(--ink); margin: 5px auto;
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg);
    flex-direction: column; gap: 0;
    border-bottom: 1px solid var(--line);
    padding: 12px 0;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 28px; }
}

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 78vh;
  display: grid; place-items: center;
  text-align: center;
  color: #f4f8ee;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,36,26,.55) 0%, rgba(20,36,26,.8) 100%);
  z-index: 1;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  z-index: 0;
  transform: scale(1.04);
  animation: heroZoom 18s ease-in-out infinite alternate;
}
@keyframes heroZoom { to { transform: scale(1.12); } }
.hero-inner {
  position: relative; z-index: 2;
  padding: 80px 24px;
  max-width: 880px;
}
.eyebrow {
  display: inline-block;
  font-size: 11px; letter-spacing: 0.42em; text-transform: uppercase;
  color: #cfe3b8;
  padding: 8px 16px;
  border: 1px solid rgba(232, 214, 179, 0.45);
  border-radius: 999px;
  margin-bottom: 24px;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(40px, 7vw, 84px);
  line-height: 1.02;
  letter-spacing: 0.01em;
  margin: 0 0 18px;
}
.hero h1 em { font-style: italic; color: #bcd9a0; }
.hero p.lead {
  font-size: clamp(15px, 1.6vw, 18px);
  color: #e2efd2; max-width: 620px; margin: 0 auto 36px;
  font-weight: 300;
}
.hero-ornament {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  margin: 28px 0 32px;
  color: #a7c489;
}
.hero-ornament span { width: 60px; height: 1px; background: currentColor; opacity: .7; }
.hero-ornament svg { width: 22px; height: 22px; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px;
  font-size: 12px; letter-spacing: 0.28em; text-transform: uppercase;
  font-weight: 600;
  border-radius: 2px;
  transition: all .25s ease;
  cursor: pointer; border: 1px solid transparent;
}
.btn-primary {
  background: var(--terracotta);
  color: #f4f8ee;
  border-color: var(--terracotta-deep);
}
.btn-primary:hover { background: var(--terracotta-deep); color: #f4f8ee; transform: translateY(-1px); }
.btn-ghost {
  background: transparent; color: #f4f8ee;
  border-color: rgba(251, 247, 239, 0.6);
}
.btn-ghost:hover { background: rgba(251,247,239,.1); color: #fff; }
.btn-dark {
  background: var(--ink); color: var(--bg);
}
.btn-dark:hover { background: var(--ink-soft); color: var(--bg); }

.btn-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ============ PAGE HEADER (interior) ============ */
.page-head {
  position: relative;
  min-height: 46vh;
  display: grid; place-items: center;
  color: #f4f8ee; text-align: center;
  overflow: hidden;
}
.page-head::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,36,26,.6), rgba(20,36,26,.82));
  z-index: 1;
}
.page-head .hero-bg { animation: none; transform: none; }
.page-head-inner { position: relative; z-index: 2; padding: 100px 24px 60px; }
.page-head h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5.5vw, 64px);
  font-weight: 500; margin: 14px 0 0; letter-spacing: 0.02em;
}

/* ============ SECTIONS ============ */
section { padding: 100px 0; }
section.tight { padding: 72px 0; }

.section-eyebrow {
  font-size: 11px; letter-spacing: 0.42em; text-transform: uppercase;
  color: var(--terracotta);
  font-weight: 600; margin: 0 0 14px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.1; font-weight: 500;
  margin: 0 0 24px; color: var(--ink);
  letter-spacing: 0.01em;
}
.section-title em { font-style: italic; color: var(--terracotta-deep); }

.divider {
  display: flex; align-items: center; gap: 14px; margin: 24px 0;
  color: var(--gold);
}
.divider span { flex: 0 0 60px; height: 1px; background: currentColor; opacity: .6; }
.divider svg { width: 18px; height: 18px; }
.divider.center { justify-content: center; }

.prose p {
  font-size: 17px; line-height: 1.85; color: var(--ink-soft);
  margin: 0 0 20px;
}
.prose p strong { color: var(--ink); font-weight: 600; }

/* ============ INTRO SPLIT ============ */
.split {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 80px;
  align-items: center;
}
.split.reverse { grid-template-columns: 1fr 1.05fr; }
.split .media {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  box-shadow: var(--shadow-deep);
}
.split .media img { width: 100%; height: 100%; object-fit: cover; }
.split .media::after {
  content: ""; position: absolute; inset: 14px;
  border: 1px solid rgba(251, 247, 239, 0.5);
  pointer-events: none;
}
@media (max-width: 860px) {
  .split, .split.reverse { grid-template-columns: 1fr; gap: 40px; }
  .split .media { aspect-ratio: 4/3; }
}

/* ============ STATS ============ */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0; margin-top: 60px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat {
  padding: 36px 24px; text-align: center;
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: 0; }
.stat .n {
  font-family: var(--font-display);
  font-size: 44px; line-height: 1; color: var(--terracotta-deep);
  font-weight: 500;
}
.stat .l {
  margin-top: 10px; font-size: 11px; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--muted);
}
@media (max-width: 760px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line); }
}

/* ============ FEATURE CARDS ============ */
.bg-soft { background: var(--bg-soft); }
.bg-ink {
  background: var(--ink);
  color: var(--bg);
}
.bg-ink .section-title { color: var(--bg); }
.bg-ink .prose p { color: rgba(234,242,227,.85); }

.cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
  margin-top: 50px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 36px 30px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.card .ico {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  color: var(--terracotta);
  margin-bottom: 20px;
}
.card h3 {
  font-family: var(--font-display);
  font-size: 24px; margin: 0 0 12px; font-weight: 600;
  color: var(--ink);
}
.card p { font-size: 15px; color: var(--ink-soft); margin: 0; }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr; } }

/* ============ GALLERY ============ */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px; margin-top: 50px;
}
.gallery .g {
  position: relative; overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--bg-soft);
}
.gallery .g img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s ease;
}
.gallery .g:hover img { transform: scale(1.06); }
.gallery .tall { grid-row: span 2; aspect-ratio: 4/6; }
@media (max-width: 760px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery .tall { grid-row: auto; aspect-ratio: 4/3; }
}

/* ============ SERVICIOS BLOQUES ============ */
.service-block {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px;
  align-items: center;
  padding: 70px 0;
  border-bottom: 1px solid var(--line);
}
.service-block:last-child { border-bottom: 0; }
.service-block.reverse { direction: rtl; }
.service-block.reverse > * { direction: ltr; }
.service-block .gallery-mini {
  display: grid; grid-template-columns: 2fr 1fr; gap: 10px;
  height: 460px;
}
.service-block .gallery-mini .col {
  display: grid; gap: 10px;
}
.service-block .gallery-mini img {
  width: 100%; height: 100%; object-fit: cover;
}
.service-block .gallery-mini .a { grid-row: span 2; }
.service-block h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 40px); margin: 0 0 8px; font-weight: 500;
  color: var(--ink); letter-spacing: 0.01em;
}
.service-block .tag {
  display: inline-block; padding: 6px 14px;
  background: var(--bg-soft); color: var(--terracotta-deep);
  font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase;
  border-radius: 2px; font-weight: 600;
}
.service-block ul {
  list-style: none; padding: 0; margin: 18px 0;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.service-block ul li {
  font-size: 13px; padding: 6px 12px;
  background: var(--surface); border: 1px solid var(--line);
  color: var(--ink-soft);
}
@media (max-width: 860px) {
  .service-block, .service-block.reverse { grid-template-columns: 1fr; gap: 32px; direction: ltr; }
  .service-block .gallery-mini { height: 340px; }
}

/* ============ CONTACTO ============ */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px;
  margin-top: 30px;
}
.contact-info { padding: 6px 0; }
.contact-info .row {
  display: flex; gap: 16px; padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.contact-info .row:last-child { border-bottom: 0; }
.contact-info .ico {
  width: 42px; height: 42px;
  background: var(--bg-soft); color: var(--terracotta-deep);
  display: grid; place-items: center; flex: 0 0 42px;
  border-radius: 50%;
}
.contact-info .k {
  font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--muted); font-weight: 600; margin-bottom: 4px;
}
.contact-info .v { color: var(--ink); font-size: 16px; line-height: 1.5; }
.contact-info .v a { color: var(--ink); }

.form {
  background: var(--surface);
  padding: 40px;
  border: 1px solid var(--line);
}
.form .grid2 {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.field { margin-bottom: 18px; }
.field label {
  display: block; font-size: 11px; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--muted);
  font-weight: 600; margin-bottom: 8px;
}
.field input, .field textarea {
  width: 100%; padding: 14px 16px;
  background: var(--bg); border: 1px solid var(--line);
  color: var(--ink); font-family: var(--font-sans); font-size: 15px;
  border-radius: 2px;
  transition: border-color .2s ease, background .2s ease;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--terracotta);
  background: var(--surface);
}
.field textarea { min-height: 130px; resize: vertical; }
@media (max-width: 760px) {
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .form .grid2 { grid-template-columns: 1fr; }
  .form { padding: 28px; }
}

.map {
  margin-top: 70px;
  border: 1px solid var(--line);
  overflow: hidden;
}
.map iframe { display: block; width: 100%; height: 420px; border: 0; }

/* ============ CTA STRIP ============ */
.cta-strip {
  position: relative; padding: 90px 0; text-align: center;
  background: var(--forest-deep);
  color: var(--bg);
  overflow: hidden;
}
.cta-strip::before {
  content: ""; position: absolute; inset: 0;
  background-image: url("img/9.jpg");
  background-size: cover; background-position: center;
  opacity: 0.18; filter: saturate(.5);
}
.cta-strip > * { position: relative; }
.cta-strip h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px); font-weight: 500;
  margin: 0 0 14px; color: var(--bg);
}
.cta-strip p {
  color: rgba(234,242,227,.85); max-width: 580px; margin: 0 auto 28px;
}

/* ============ FOOTER ============ */
.site-footer {
  background: #1a1108;
  color: #c9b89a;
  padding: 70px 0 0;
}
.foot-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(217, 201, 175, 0.15);
}
.site-footer .brand-text .b1 { color: var(--bg); }
.site-footer .brand-text .b2 { color: #a08a6a; }
.site-footer h4 {
  font-family: var(--font-display);
  color: var(--bg); font-size: 18px; font-weight: 600;
  margin: 0 0 18px; letter-spacing: 0.02em;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { padding: 6px 0; font-size: 14px; }
.site-footer a { color: #c9b89a; }
.site-footer a:hover { color: var(--bg); }
.site-footer .foot-about {
  font-size: 14px; line-height: 1.7;
  color: rgba(201, 184, 154, 0.85);
  margin-top: 14px; max-width: 320px;
}
.foot-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between;
  align-items: center; gap: 16px;
  padding: 24px 0; font-size: 12px;
  color: #8e7b5b;
}
.foot-credit {
  text-align: center; padding: 18px 0;
  background: #0f0a05;
  color: #8e7b5b; font-size: 12px;
  line-height: 1.7;
}
.foot-credit a {
  color: var(--gold); font-weight: 600;
  letter-spacing: 0.04em;
}
.foot-credit a:hover { color: #e0c08a; }
@media (max-width: 860px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .foot-grid { grid-template-columns: 1fr; }
}

/* ============ FADE IN ============ */
.fade { opacity: 0; transform: translateY(20px); transition: opacity .9s ease, transform .9s ease; }
.fade.in { opacity: 1; transform: none; }

.site-footer .brand-mark { background:#ffffff; }
