/* ============================================================
   NIEVES ESPIGARES — Hoja de estilos principal
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --olive: #596634;
  --olive-dark: #273717;
  --gold: #DCA25D;
  --gold-dark: #c98a3f;
  --cream: #F1EFE7;
  --taupe: #DAC4AA;

  --ink: #2c2a22;
  --white: #ffffff;

  --font-display: 'Baskerville', 'Baskerville Old Face', 'Libre Baskerville', Georgia, serif;
  --font-body: 'Jost', 'Trebuchet MS', sans-serif;

  --radius-sm: .5rem;
  --radius-md: 1.1rem;
  --radius-lg: 2rem;
  --radius-pill: 999px;

  --shadow-sm: 0 4px 18px rgba(39, 55, 23, .08);
  --shadow-md: 0 14px 40px rgba(39, 55, 23, .14);

  --container: 1180px;
  --header-h: 92px;
}

/* ---------- Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--olive-dark);
  line-height: 1.15;
  font-weight: 600;
}
h1 { font-size: clamp(2.4rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.35rem; }
p { color: #4b4a3d; }
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}
section { position: relative; }
::selection { background: var(--gold); color: var(--white); }

/* ---------- Utilities ---------- */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .78rem;
  font-weight: 500;
  color: var(--gold-dark);
  margin-bottom: .9rem;
}
.kicker::before {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--gold-dark);
  display: inline-block;
}
.section-head { max-width: 640px; margin-bottom: 3rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { font-size: 1.05rem; }
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }

.pad { padding: 5.5rem 0; }
.pad-sm { padding: 3.5rem 0; }
.bg-cream { background: var(--cream); }
.bg-white { background: var(--white); }
.bg-olive { background: var(--olive); color: var(--cream); }
.bg-olive h2, .bg-olive h3 { color: var(--white); }
.bg-olive p { color: rgba(241,239,231,.85); }
.bg-taupe { background: var(--taupe); }
.bg-deep { background: var(--olive-dark); color: var(--cream); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .95rem 1.9rem;
  border-radius: var(--radius-pill);
  font-size: .95rem;
  font-weight: 500;
  letter-spacing: .01em;
  transition: all .25s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--olive); color: var(--white); }
.btn-primary:hover { background: var(--olive-dark); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn-gold { background: var(--gold); color: var(--olive-dark); }
.btn-gold:hover { background: var(--gold-dark); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn-outline { border: 1.5px solid var(--olive); color: var(--olive); }
.btn-outline:hover { background: var(--olive); color: var(--white); }
.btn-outline-light { border: 1.5px solid rgba(241,239,231,.6); color: var(--cream); }
.btn-outline-light:hover { background: var(--cream); color: var(--olive-dark); }
.btn-sm { padding: .6rem 1.3rem; font-size: .85rem; }
.btn-row { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 500;
  background: rgba(241, 239, 231, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(39,55,23,.08);
  transition: box-shadow .3s;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1.5rem;
}
.brand { display: flex; align-items: center; gap: .7rem; flex-shrink: 0; }
.brand img { height: 46px; width: auto; }
.brand .brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand .brand-text strong {
  font-family: var(--font-display);
  font-size: 1.28rem;
  color: var(--olive-dark);
  font-weight: 600;
}
.brand .brand-text span {
  font-size: .62rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-dark);
}

.main-nav { display: flex; align-items: center; gap: 2.1rem; }
.main-nav > ul { display: flex; align-items: center; gap: 2.1rem; }
.main-nav a.nav-link {
  font-size: .93rem;
  font-weight: 500;
  color: var(--olive-dark);
  position: relative;
  padding: .4rem 0;
}
.main-nav a.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width .25s ease;
}
.main-nav a.nav-link:hover::after,
.main-nav li.active a.nav-link::after { width: 100%; }

.has-dropdown { position: relative; }
.has-dropdown > a { display: flex; align-items: center; gap: .35rem; }
.has-dropdown .caret { font-size: .6rem; transition: transform .25s; }
.has-dropdown:hover .caret { transform: rotate(180deg); }
.dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, 8px);
  min-width: 300px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: .6rem;
  opacity: 0;
  visibility: hidden;
  transition: all .2s ease;
  pointer-events: none;
}
.has-dropdown:hover .dropdown {
  opacity: 1; visibility: visible; transform: translate(-50%, 4px); pointer-events: auto;
}
.dropdown a {
  display: flex;
  flex-direction: column;
  gap: .1rem;
  padding: .7rem .9rem;
  border-radius: var(--radius-sm);
  font-size: .88rem;
  color: var(--olive-dark);
  font-weight: 500;
}
.dropdown a small { color: #79765f; font-weight: 400; font-size: .78rem; }
.dropdown a:hover { background: var(--cream); }

.header-cta { display: flex; align-items: center; gap: 1rem; flex-shrink: 0; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 30px;
  z-index: 600;
}
.nav-toggle span { height: 2px; background: var(--olive-dark); border-radius: 2px; transition: all .25s; }

/* ---------- Hero banner (photo-led header) ---------- */
.hero-banner {
  width: 100%;
  line-height: 0;
  background: var(--olive-dark);
}
.hero-banner img {
  width: 100%;
  height: auto;
  aspect-ratio: 1274 / 716;
  object-fit: cover;
  object-position: center 30%;
  display: block;
  max-height: 660px;
}
.hero-intro {
  padding: 3.8rem 0 4.6rem;
  text-align: center;
}
.hero-intro .container { max-width: 720px; }
.hero-intro .kicker { justify-content: center; }
.hero-intro .kicker::before { display: none; }
.hero-intro p.lead { font-size: 1.12rem; margin: 1.1rem auto 0; max-width: 600px; }
.hero-intro .btn-row { justify-content: center; margin-top: 2.2rem; }

/* Simple page hero (sub-pages) */
.page-hero {
  padding: 3.6rem 0 4.2rem;
  background: linear-gradient(180deg, var(--taupe) 0%, var(--cream) 100%);
  position: relative;
  overflow: hidden;
}
.page-hero .container { position: relative; z-index: 1; max-width: 760px; text-align: center; }
.page-hero .kicker { justify-content: center; }
.page-hero .kicker::before { display: none; }
.page-hero p.lead { font-size: 1.08rem; margin-top: 1rem; }
.breadcrumb { font-size: .82rem; color: var(--olive); opacity: .75; margin-top: .6rem; }
.breadcrumb a { text-decoration: underline; text-decoration-color: var(--gold); }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 1.8rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 2.1rem 1.8rem;
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card .icon-circle {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--cream);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.2rem;
  font-size: 1.5rem;
}
.icon-circle svg {
  width: 26px; height: 26px;
  stroke: var(--olive);
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.bg-olive .icon-circle { background: rgba(241, 239, 231, .15); }
.bg-olive .icon-circle svg { stroke: var(--gold); }
.card h3 { margin-bottom: .6rem; font-size: 1.2rem; }
.card p { font-size: .95rem; }
.card a.card-link {
  display: inline-flex; align-items: center; gap: .4rem;
  margin-top: 1rem; font-size: .85rem; font-weight: 600; color: var(--olive);
}
.card a.card-link svg, .card a.card-link .arrow { transition: transform .2s; }
.card a.card-link:hover .arrow { transform: translateX(4px); }

.service-card { display: flex; flex-direction: column; }
.service-card .media { border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 16/11; margin-bottom: 1.3rem; }
.service-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.service-card:hover .media img { transform: scale(1.06); }

/* Pillars / values */
.pillar { text-align: center; padding: 1.6rem; }
.pillar .icon-circle { margin-inline: auto; }

/* Split media/content sections */
.split {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 3.5rem;
  align-items: center;
}
.split.reverse .split-media { order: 2; }
.split.reverse .split-copy { order: 1; }
.split-media { position: relative; }
.split-media .frame { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.split-media .frame img { width: 100%; object-fit: cover; }
.split-media .tag {
  position: absolute; top: -1rem; right: -1rem;
  background: var(--gold); color: var(--white);
  padding: .6rem 1.1rem; border-radius: var(--radius-pill);
  font-size: .78rem; font-weight: 600; letter-spacing: .04em;
  box-shadow: var(--shadow-sm);
}
.split-copy ul.check-list { margin-top: 1.4rem; display: flex; flex-direction: column; gap: .75rem; }
.split-copy ul.check-list li { display: flex; gap: .7rem; align-items: flex-start; font-size: .96rem; color: #4b4a3d; }
.split-copy ul.check-list li .mark {
  width: 22px; height: 22px; border-radius: 50%; background: var(--olive); color: var(--white);
  display: flex; align-items: center; justify-content: center; font-size: .68rem; flex-shrink: 0; margin-top: .15rem;
}

/* Audience list */
.audience-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
.audience-item {
  display: flex; gap: 1rem; align-items: flex-start;
  background: var(--white); border-radius: var(--radius-md); padding: 1.4rem 1.5rem;
  box-shadow: var(--shadow-sm);
}
.audience-item .icon-circle { flex-shrink: 0; width: 46px; height: 46px; font-size: 1.2rem; margin-bottom: 0; }
.audience-item h4 { font-size: 1rem; color: var(--olive-dark); margin-bottom: .3rem; font-family: var(--font-body); font-weight: 600; }
.audience-item p { font-size: .88rem; }

/* Stats-ish pillars band */
.pillars-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.pillars-band .pillar-box { text-align: center; padding: 1.2rem; }
.pillars-band .pillar-box .num { font-family: var(--font-display); font-size: 1.9rem; color: var(--gold); display:block; margin-bottom:.3rem;}

/* Steps / process */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem; counter-reset: step; }
.step { position: relative; padding: 1.8rem 1.5rem 1.5rem; background: var(--white); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--gold);
  display: block;
  margin-bottom: .8rem;
}
.step h4 { font-family: var(--font-body); font-weight: 600; font-size: 1rem; color: var(--olive-dark); margin-bottom: .4rem; }
.step p { font-size: .88rem; }

/* Testimonials */
.testi-card {
  background: var(--white); border-radius: var(--radius-md); padding: 2rem;
  box-shadow: var(--shadow-sm); position: relative;
}
.testi-card .quote-mark { font-family: var(--font-display); font-size: 3rem; color: var(--gold); line-height: 1; }
.testi-card p.quote { font-style: italic; color: #4b4a3d; margin: .8rem 0 1.3rem; font-size: .98rem; }
.testi-card .who { display: flex; align-items: center; gap: .7rem; }
.testi-card .who .avatar {
  width: 42px; height: 42px; border-radius: 50%; background: var(--olive);
  color: var(--white); display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: .95rem; flex-shrink: 0;
}
.testi-card .who strong { display: block; font-size: .9rem; color: var(--olive-dark); }
.testi-card .who span { font-size: .78rem; color: #8a8768; }
.sample-tag {
  position: absolute; top: 1.1rem; right: 1.1rem;
  font-size: .65rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--gold-dark); background: var(--cream); padding: .3rem .6rem; border-radius: var(--radius-pill);
  font-weight: 600;
}

/* Blog cards */
.post-card { overflow: hidden; padding: 0; display: flex; flex-direction: column; }
.post-card .media { aspect-ratio: 16/10; overflow: hidden; }
.post-card .media img { width: 100%; height: 100%; object-fit: cover; }
.post-card .body { padding: 1.6rem 1.7rem 1.9rem; }
.post-card .cat { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--gold-dark); font-weight: 600; }
.post-card h3 { margin: .5rem 0 .6rem; font-size: 1.12rem; }
.post-card .soon {
  display: inline-block; margin-bottom: .7rem; font-size: .68rem; letter-spacing: .07em; text-transform: uppercase;
  background: var(--taupe); color: var(--olive-dark); padding: .28rem .65rem; border-radius: var(--radius-pill); font-weight: 600;
}

/* CTA band */
.cta-band {
  border-radius: var(--radius-lg);
  padding: 3.5rem 3rem;
  background: var(--olive-dark);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.cta-band::after {
  content: '';
  position: absolute; right: -60px; top: -60px;
  width: 220px; height: 220px; border-radius: 50%;
  background: rgba(220,162,93,.18);
}
.cta-band h2 { color: var(--white); margin-bottom: .4rem; font-size: clamp(1.6rem, 3vw, 2.1rem); }
.cta-band p { color: rgba(241,239,231,.8); max-width: 460px; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.field { display: flex; flex-direction: column; gap: .45rem; margin-bottom: 1.2rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .82rem; font-weight: 600; color: var(--olive-dark); }
.field input, .field select, .field textarea {
  font-family: var(--font-body);
  padding: .85rem 1rem;
  border: 1.5px solid var(--taupe);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-size: .95rem;
  color: var(--ink);
  transition: border-color .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--olive);
}
.field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: .78rem; color: #8a8768; margin-top: .6rem; }
.form-success {
  display: none;
  background: var(--olive);
  color: var(--white);
  padding: 1rem 1.3rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.2rem;
  font-size: .9rem;
}

/* Contact info blocks */
.contact-info-list { display: flex; flex-direction: column; gap: 1.3rem; margin-top: 1.6rem; }
.contact-info-item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-info-item .icon-circle { flex-shrink: 0; margin-bottom: 0; width: 48px; height: 48px; }
.contact-info-item strong { display: block; color: var(--olive-dark); font-size: .95rem; margin-bottom: .1rem; }
.contact-info-item a, .contact-info-item span { font-size: .9rem; color: #4b4a3d; }
.social-row { display: flex; gap: .8rem; margin-top: 1.6rem; }
.social-row a {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--olive); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, transform .2s;
}
.social-row a:hover { background: var(--gold-dark); transform: translateY(-3px); }
.social-row a svg { width: 18px; height: 18px; }

/* ---------- Footer ---------- */
.site-footer { padding: 4.5rem 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(241,239,231,.15);
}
.footer-brand { display: flex; align-items: center; gap: .7rem; margin-bottom: 1.1rem; }
.footer-brand img { height: 42px; }
.footer-brand strong { font-family: var(--font-display); font-size: 1.2rem; color: var(--white); }
.site-footer p { color: rgba(241,239,231,.7); font-size: .9rem; }
.footer-col h4 { color: var(--white); font-family: var(--font-body); font-size: .88rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1.1rem; font-weight: 600; }
.footer-col ul { display: flex; flex-direction: column; gap: .7rem; }
.footer-col ul a { color: rgba(241,239,231,.75); font-size: .9rem; transition: color .2s; }
.footer-col ul a:hover { color: var(--gold); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.6rem 0; font-size: .8rem; color: rgba(241,239,231,.55);
  flex-wrap: wrap; gap: .8rem;
}
.footer-bottom a { color: rgba(241,239,231,.55); }
.footer-bottom a:hover { color: var(--gold); }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed;
  bottom: 1.6rem;
  right: 1.6rem;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.22);
  z-index: 400;
  transition: transform .25s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 28px; height: 28px; fill: var(--white); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- Divider ---------- */
.divider-wave { display: block; width: 100%; height: 60px; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .hero-grid, .split { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-media { order: -1; max-width: 420px; margin-inline: auto; }
  .split.reverse .split-media { order: -1; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .pillars-band { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .audience-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .main-nav { position: fixed; top: 0; right: -100%; height: 100vh; width: min(340px, 85%);
    background: var(--cream); flex-direction: column; align-items: flex-start;
    padding: 6.5rem 2rem 2rem; transition: right .35s ease; box-shadow: var(--shadow-md); z-index: 550; overflow-y:auto;}
  .main-nav.open { right: 0; }
  .main-nav > ul { flex-direction: column; align-items: flex-start; gap: 1.3rem; width: 100%; }
  .has-dropdown .dropdown,
  .has-dropdown:hover .dropdown {
    position: static; opacity: 1; visibility: visible; pointer-events: auto; transform: none;
    display: none; box-shadow: none; background: rgba(39,55,23,.04); margin-top: .6rem;
    width: 100%; min-width: 0;
  }
  .has-dropdown.open .dropdown,
  .has-dropdown:hover.open .dropdown { display: flex; flex-direction: column; }
  .header-cta .btn-gold { display: none; }
  .nav-toggle { display: flex; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 720px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .pillars-band { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; text-align: center; padding: 2.6rem 1.8rem; }
  .cta-band p { margin-inline: auto; }
  h1 { font-size: 2.3rem; }
  .hero-media .badge { left: 0; right: 0; margin: 0 auto; bottom: -1rem; }
  .brand .brand-text span { display: none; }
}
