/* ── TOKENS ─────────────────────────────────────────────── */
:root {
  --green:       #4A8B3F;
  --green-dark:  #2D5A27;
  --green-light: #7CB97A;
  --cream:       #F4F1E8;
  --earth:       #1A1A14;
  --black:       #111;
  --white:       #fff;
  --text:        #2a2a2a;
  --text-muted:  #666;
  --radius:      12px;
  --shadow:      0 4px 24px rgba(0,0,0,.12);
  --nav-h:       72px;
}

/* ── RESET ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; color: var(--text); background: var(--white); overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── UTILS ──────────────────────────────────────────────── */
.container { width: min(1200px, 92%); margin-inline: auto; }
.eyebrow { display: block; font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--green); margin-bottom: .5rem; }
.eyebrow.light { color: var(--green-light); }
.section-head { text-align: center; margin-bottom: 3rem; }
.section-head h2 { font-family: 'Playfair Display', serif; font-size: clamp(1.8rem, 4vw, 2.8rem); color: var(--black); }
.section-head h2.light { color: var(--white); }

/* ── REVEAL ─────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ── BUTTONS ────────────────────────────────────────────── */
.btn-primary {
  display: inline-block; padding: .85rem 2rem; border-radius: 50px;
  background: var(--green); color: var(--white); font-weight: 600; font-size: .95rem;
  transition: background .2s, transform .2s;
}
.btn-primary:hover { background: var(--green-dark); transform: translateY(-2px); }

.btn-outline {
  display: inline-block; padding: .85rem 2rem; border-radius: 50px;
  border: 2px solid rgba(255,255,255,.8); color: var(--white); font-weight: 600; font-size: .95rem;
  transition: background .2s, transform .2s;
}
.btn-outline:hover { background: rgba(255,255,255,.15); transform: translateY(-2px); }

.btn-green {
  display: inline-block; padding: .8rem 1.8rem; border-radius: 50px;
  background: var(--green); color: var(--white); font-weight: 600;
  transition: background .2s, transform .2s; margin-top: 1.5rem;
}
.btn-green:hover { background: var(--green-dark); transform: translateY(-2px); }

.btn-outline-dark {
  display: inline-block; padding: .8rem 2rem; border-radius: 50px;
  border: 2px solid var(--green); color: var(--green); font-weight: 600;
  transition: background .2s, color .2s;
}
.btn-outline-dark:hover { background: var(--green); color: var(--white); }

/* ── NAV ────────────────────────────────────────────────── */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  transition: background .3s, box-shadow .3s;
}
#nav.scrolled {
  background: rgba(255,255,255,.97);
  box-shadow: 0 2px 20px rgba(0,0,0,.08);
}
.nav-inner {
  width: min(1200px, 92%); margin-inline: auto;
  height: 100%; display: flex; align-items: center; gap: 2rem;
}
.nav-logo img { height: 48px; width: auto; object-fit: contain; }

.nav-links { display: flex; gap: 2rem; margin-left: auto; }
.nav-links a {
  font-size: .9rem; font-weight: 500; color: var(--white);
  transition: color .2s; text-shadow: 0 1px 4px rgba(0,0,0,.4);
}
#nav.scrolled .nav-links a { color: var(--text); text-shadow: none; }
.nav-links a:hover { color: var(--green-light); }
#nav.scrolled .nav-links a:hover { color: var(--green); }

.nav-cta {
  display: inline-block; padding: .5rem 1.4rem; border-radius: 50px;
  background: var(--green); color: var(--white) !important; font-weight: 600; font-size: .88rem;
  transition: background .2s; text-shadow: none !important;
}
.nav-cta:hover { background: var(--green-dark); }

.nav-burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-burger span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: background .3s; }
#nav.scrolled .nav-burger span { background: var(--text); }

.nav-drawer {
  display: none; flex-direction: column; gap: 0;
  position: absolute; top: var(--nav-h); left: 0; right: 0;
  background: var(--white); box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
.nav-drawer.open { display: flex; }
.drawer-link { padding: 1rem 1.5rem; font-weight: 500; border-bottom: 1px solid #f0f0f0; color: var(--text); }
.drawer-link.cta-link { color: var(--green); font-weight: 600; }

/* ── HERO ───────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; }
.hero-img { width: 100%; height: 100%; object-fit: cover; object-position: center; will-change: transform; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(0,0,0,.55) 0%, rgba(30,60,20,.65) 100%);
}
.hero-content {
  position: relative; z-index: 2; text-align: center;
  padding: calc(var(--nav-h) + 2rem) 1.5rem 4rem;
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
}
.hero-logo-anim { width: min(180px, 45vw); opacity: 0; filter: drop-shadow(0 2px 12px rgba(0,0,0,.4)); }
.hero-tagline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5.5vw, 3.8rem);
  color: var(--white); line-height: 1.2;
  text-shadow: 0 2px 16px rgba(0,0,0,.4);
  opacity: 0;
}
.hero-rule { width: 60px; height: 3px; background: var(--green-light); border-radius: 2px; opacity: 0; }
.hero-sub { color: rgba(255,255,255,.88); font-size: clamp(.95rem, 2vw, 1.15rem); max-width: 560px; opacity: 0; }
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; opacity: 0; }

.hero-scroll {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.7); z-index: 2; animation: bounce 2s ease-in-out infinite;
}
@keyframes bounce { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(8px)} }

/* ── STATS BAR ──────────────────────────────────────────── */
.stats-bar {
  background: var(--green-dark); display: flex; flex-wrap: wrap;
  justify-content: center; gap: 0;
}
.stat-item {
  flex: 1 1 180px; padding: 1.8rem 1.5rem; text-align: center;
  border-right: 1px solid rgba(255,255,255,.1);
}
.stat-item:last-child { border-right: none; }
.stat-num { display: block; font-family: 'Playfair Display', serif; font-size: 2.2rem; font-weight: 700; color: var(--white); }
.stat-label { display: block; font-size: .8rem; color: rgba(255,255,255,.7); margin-top: .2rem; text-transform: uppercase; letter-spacing: .06em; }

/* ── NOSOTROS ───────────────────────────────────────────── */
.nosotros { padding: 6rem 0; background: var(--white); }
.nosotros-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.nosotros-img img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; height: 520px; object-fit: cover; object-position: center; }
.nosotros-text h2 { font-family: 'Playfair Display', serif; font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin-bottom: 1.2rem; }
.nosotros-text p { color: var(--text-muted); line-height: 1.8; margin-bottom: 1rem; }

/* ── SERVICIOS ──────────────────────────────────────────── */
.servicios { position: relative; padding: 7rem 0; }
.servicios-bg-wrap { position: absolute; inset: 0; overflow: hidden; }
.servicios-bg-wrap img { width: 100%; height: 100%; object-fit: cover; }
.servicios-overlay { position: absolute; inset: 0; background: rgba(20,40,15,.88); }
.servicios > .container { position: relative; z-index: 2; }

.servicios-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.servicio-card {
  background: rgba(255,255,255,.07); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius); padding: 2rem 1.6rem;
  transition: background .25s, transform .25s;
}
.servicio-card:hover { background: rgba(255,255,255,.12); transform: translateY(-4px); }
.sc-icon { font-size: 2rem; margin-bottom: 1rem; }
.servicio-card h3 { font-family: 'Playfair Display', serif; font-size: 1.2rem; color: var(--white); margin-bottom: .7rem; }
.servicio-card p { color: rgba(255,255,255,.72); font-size: .92rem; line-height: 1.7; }

/* ── GALERÍA ────────────────────────────────────────────── */
.galeria { padding: 6rem 0; background: var(--cream); }
.galeria-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto auto;
  gap: 12px;
}
.galeria-item { overflow: hidden; border-radius: var(--radius); }
.galeria-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; min-height: 200px; }
.galeria-item:hover img { transform: scale(1.04); }
.gi-tall { grid-row: span 2; }
.gi-tall img { min-height: 420px; }
.gi-wide { grid-column: span 2; }

/* ── RESEÑAS ────────────────────────────────────────────── */
.resenas { padding: 6rem 0; background: var(--white); }
.stars-row { display: flex; align-items: center; justify-content: center; gap: .4rem; margin-top: .8rem; }
.star { color: #F5A623; font-size: 1.3rem; }
.rating-text { font-size: .9rem; color: var(--text-muted); font-weight: 500; }

.review-featured {
  background: var(--green-dark); border-radius: 16px;
  padding: 2.8rem 3rem; margin-bottom: 2rem; text-align: center;
  max-width: 820px; margin-inline: auto;
}
.rf-stars { color: #F5A623; font-size: 1.4rem; margin-bottom: 1.2rem; letter-spacing: .1em; }
.rf-text { color: rgba(255,255,255,.9); font-size: 1.08rem; line-height: 1.8; font-style: italic; margin-bottom: 1.5rem; }
.rf-author { display: flex; align-items: center; justify-content: center; gap: 1rem; }
.rf-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--green-light); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.1rem;
}
.rf-author strong { display: block; color: var(--white); font-size: .95rem; }
.rf-author span { color: rgba(255,255,255,.65); font-size: .82rem; }

.reviews-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.2rem; max-width: 820px; margin-inline: auto; }
.review-card {
  background: var(--cream); border-radius: var(--radius); padding: 1.6rem;
  border: 1px solid #e5e2d8;
}
.rc-stars { color: #F5A623; font-size: 1rem; margin-bottom: .7rem; letter-spacing: .08em; }
.review-card p { color: var(--text-muted); font-size: .9rem; line-height: 1.7; margin-bottom: 1rem; font-style: italic; }
.rc-author { display: flex; align-items: center; gap: .7rem; }
.rc-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--green); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .9rem; flex-shrink: 0;
}
.rc-author strong { display: block; font-size: .88rem; }
.rc-author span { color: var(--text-muted); font-size: .78rem; }

.maps-link { text-align: center; margin-top: 2.5rem; }

/* ── CONTACTO ───────────────────────────────────────────── */
.contacto { position: relative; padding: 7rem 0; }
.contacto-bg { position: absolute; inset: 0; overflow: hidden; }
.contacto-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.contacto-overlay { position: absolute; inset: 0; background: rgba(20,40,15,.87); }
.contacto > .container { position: relative; z-index: 2; }

.contacto-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.contacto-info h2 { font-family: 'Playfair Display', serif; font-size: clamp(1.6rem,3vw,2.2rem); color: var(--white); margin-bottom: 1rem; }
.contacto-info p.light { color: rgba(255,255,255,.8); line-height: 1.8; margin-bottom: 2rem; }

.info-items { display: flex; flex-direction: column; gap: .9rem; margin-bottom: 1.8rem; }
.info-item { display: flex; align-items: center; gap: .8rem; color: rgba(255,255,255,.85); font-size: .9rem; }
.info-item svg { color: var(--green-light); flex-shrink: 0; }
.info-item a { color: rgba(255,255,255,.85); }
.info-item a:hover { color: var(--green-light); }

.contacto-social { display: flex; gap: .8rem; }
.social-btn {
  padding: .5rem 1.3rem; border-radius: 50px; font-size: .85rem; font-weight: 600;
  transition: opacity .2s;
}
.social-btn:hover { opacity: .85; }
.social-btn.ig { background: linear-gradient(135deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); color: var(--white); }
.social-btn.fb { background: #1877F2; color: var(--white); }

.contacto-form-wrap {
  background: var(--white); border-radius: 16px;
  padding: 2.4rem; box-shadow: 0 8px 40px rgba(0,0,0,.25);
}
.contacto-form { display: flex; flex-direction: column; gap: 1.1rem; }
.form-group { display: flex; flex-direction: column; gap: .35rem; }
.form-group label { font-size: .82rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; }
.form-group input, .form-group select, .form-group textarea {
  padding: .75rem 1rem; border: 1.5px solid #e0e0e0; border-radius: 8px;
  font-family: inherit; font-size: .95rem; color: var(--text);
  transition: border-color .2s; background: var(--white);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--green);
}
.btn-submit {
  padding: .9rem; border-radius: 50px; border: none; cursor: pointer;
  background: var(--green); color: var(--white);
  font-family: inherit; font-size: 1rem; font-weight: 600;
  transition: background .2s, transform .2s;
}
.btn-submit:hover { background: var(--green-dark); transform: translateY(-2px); }
.form-success { display: none; text-align: center; color: var(--green-dark); font-weight: 600; padding: .5rem; }

/* ── MAPA ───────────────────────────────────────────────── */
.mapa-section { line-height: 0; }
.mapa-section iframe { display: block; }

/* ── FOOTER ─────────────────────────────────────────────── */
.footer { background: var(--earth); padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; margin-bottom: 2.5rem; }
.footer-logo { height: 56px; width: auto; margin-bottom: 1rem; }
.footer-brand p { color: rgba(255,255,255,.6); font-size: .88rem; line-height: 1.7; }
.footer-social { display: flex; gap: 1rem; margin-top: 1.2rem; }
.footer-social a { color: rgba(255,255,255,.6); transition: color .2s; }
.footer-social a:hover { color: var(--green-light); }
.footer h4 { color: var(--white); font-size: .88rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1.2rem; }
.footer ul { display: flex; flex-direction: column; gap: .6rem; }
.footer ul a { color: rgba(255,255,255,.6); font-size: .88rem; transition: color .2s; }
.footer ul a:hover { color: var(--green-light); }
.footer-contact { display: flex; flex-direction: column; gap: .5rem; }
.footer-contact p, .footer-contact a { color: rgba(255,255,255,.6); font-size: .88rem; }
.footer-contact a:hover { color: var(--green-light); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 1.5rem; text-align: center; }
.footer-bottom p { color: rgba(255,255,255,.4); font-size: .8rem; }

/* ── WHATSAPP FLOAT ─────────────────────────────────────── */
.wa-float {
  position: fixed; bottom: 1.8rem; right: 1.8rem; z-index: 200;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.45);
  transition: transform .2s, box-shadow .2s;
}
.wa-float svg { width: 30px; height: 30px; }
.wa-float:hover { transform: scale(1.08); box-shadow: 0 6px 28px rgba(37,211,102,.55); }

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .servicios-grid { grid-template-columns: repeat(2,1fr); }
  .galeria-grid { grid-template-columns: repeat(2,1fr); }
  .gi-tall { grid-row: span 1; }
  .gi-wide { grid-column: span 1; }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: flex; margin-left: auto; }
  .nosotros-grid { grid-template-columns: 1fr; }
  .nosotros-img img { height: 300px; }
  .servicios-grid { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .contacto-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .galeria-grid { grid-template-columns: repeat(2,1fr); }
  .stats-bar { flex-direction: row; }
  .stat-item { flex: 1 1 120px; padding: 1.2rem .8rem; }
  .stat-num { font-size: 1.6rem; }
  .review-featured { padding: 2rem 1.5rem; }
}

@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; align-items: center; }
  .galeria-grid { grid-template-columns: 1fr; }
  .stat-num { font-size: 1.4rem; }
}
