:root {
  --green-dark: #0f2e18;
  --green: #1e723f;
  --green-2: #24723a;
  --green-light: #e8eedc;
  --green-pale: #f2f6ec;
  --cream: #faf8f3;
  --terracotta: #c9762f;
  --ink: #1b2117;
  --gray: #5c6355;
  --line: #dbe2d2;
  --white: #ffffff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: 'Figtree', sans-serif;
  background: var(--cream);
  color: var(--ink);
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

/* ---------- INTRO DE MARCA ---------- */
.intro-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--green-dark);
  display: flex; align-items: center; justify-content: center;
  transition: transform 1.1s cubic-bezier(.65,0,.35,1);
}
.intro-overlay.intro-leave { transform: translateY(-100%); }
.intro-logo-wrap { width: min(70vw, 460px); }
.intro-logo { display: block; width: 100%; height: auto; overflow: visible; }
.intro-logo-fill { fill: var(--cream); opacity: 0; transition: opacity .3s ease; }
.intro-logo-stroke {
  fill: none; stroke: var(--cream); stroke-width: 2.4;
  stroke-linecap: round; stroke-linejoin: round;
}
body.intro-active { overflow: hidden; }
body.intro-active .hero-logo,
body.intro-active .hero-title,
body.intro-active .hero-sub,
body.intro-active .hero-actions {
  opacity: 0; transform: translateY(16px);
  clip-path: inset(0 0 100% 0);
}
/* La cortina tiene que haber desaparecido del todo (1.1s) antes de que empiece a
   revelarse nada: primero los botones, luego el subtítulo, el título y por último el logo. */
body.intro-active .hero-content.intro-reveal .hero-actions {
  opacity: 1; transform: translateY(0); clip-path: inset(0 0 0% 0);
  transition: opacity .48s ease 1.1s, transform .48s cubic-bezier(.16,1,.3,1) 1.1s, clip-path .48s cubic-bezier(.16,1,.3,1) 1.1s;
}
body.intro-active .hero-content.intro-reveal .hero-sub {
  opacity: 1; transform: translateY(0); clip-path: inset(0 0 0% 0);
  transition: opacity .48s ease 1.26s, transform .48s cubic-bezier(.16,1,.3,1) 1.26s, clip-path .48s cubic-bezier(.16,1,.3,1) 1.26s;
}
body.intro-active .hero-content.intro-reveal .hero-title {
  opacity: 1; transform: translateY(0); clip-path: inset(0 0 0% 0);
  transition: opacity .48s ease 1.42s, transform .48s cubic-bezier(.16,1,.3,1) 1.42s, clip-path .48s cubic-bezier(.16,1,.3,1) 1.42s;
}
body.intro-active .hero-content.intro-reveal .hero-logo {
  opacity: 1; transform: translateY(0); clip-path: inset(0 0 0% 0);
  transition: opacity .48s ease 1.58s, transform .48s cubic-bezier(.16,1,.3,1) 1.58s, clip-path .48s cubic-bezier(.16,1,.3,1) 1.58s;
}
@media (prefers-reduced-motion: reduce) {
  .intro-overlay { display: none; }
}

/* ---------- NAV ---------- */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  height: 76px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 56px; border: none;
  background: linear-gradient(180deg, rgba(6,16,10,0.45) 0%, rgba(6,16,10,0) 100%);
}
#navbar.solid { background: rgb(15,46,24); backdrop-filter: blur(12px); }
.nav-logo img { height: 30px; filter: brightness(0) invert(1); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  font-size: 13.5px; font-weight: 600; color: rgba(255,255,255,0.75);
  transition: color .2s;
}
.nav-links a:hover { color: #fff; }
.nav-cta {
  background: var(--green-light); color: var(--green-dark) !important;
  padding: 9px 18px; border-radius: 99px; font-weight: 700 !important;
}
.nav-cta:hover { background: #fff; }
.lang-toggle {
  display: flex; align-items: center; gap: 6px; background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16); border-radius: 99px; padding: 6px 12px;
  color: rgba(255,255,255,0.6); font-size: 12px; font-weight: 700;
}
.lang-opt { padding: 2px 4px; transition: color .2s; }
.lang-opt.on { color: #fff; }
.lang-sep { opacity: .4; }
.nav-burger { display: none; flex-direction: column; gap: 4px; background: none; border: none; }
.nav-burger span { width: 22px; height: 2px; background: #fff; border-radius: 2px; }

/* ---------- HERO ---------- */
.hero {
  position: relative; height: 100vh; min-height: 640px;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  background: #0a2010;
}
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: saturate(1.05) brightness(0.92);
  opacity: 0; transition: opacity .6s ease;
}
.hero-video.hero-video-ready { opacity: 1; }
.hero-overlay {
  position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 50% 45%, rgba(8,20,12,0.05) 0%, rgba(8,20,12,0.22) 60%, rgba(8,20,12,0.6) 100%);
  pointer-events: none;
}
.hero-wave {
  position: absolute; left: 0; right: 0; bottom: -2px; width: 100%; height: 14vh; min-height: 90px;
  pointer-events: none; z-index: 2;
  filter: drop-shadow(0 -8px 24px rgba(15,46,24,0.12));
}
.hero-wave path { fill: var(--cream); }
.hero-content {
  position: relative; z-index: 3; max-width: 760px; padding: 0 32px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.hero-logo {
  height: 140px; margin-bottom: 18px;
  filter: brightness(0) invert(1) drop-shadow(0 6px 30px rgba(0,0,0,0.5));
}
.hero-title {
  font-size: clamp(32px, 5vw, 56px); font-weight: 900; line-height: 1.08;
  letter-spacing: -1.2px; color: #fff; margin-bottom: 20px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}
.hero-sub {
  font-size: clamp(18px, 2.2vw, 24px); font-style: italic; letter-spacing: 0.2px;
  color: rgba(255,255,255,0.85); margin-bottom: 40px; max-width: 560px;
  text-shadow: 0 2px 16px rgba(0,0,0,0.4);
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 28px; border-radius: 99px; font-weight: 700; font-size: 14px;
  border: none; transition: all .25s;
}
.btn-primary { background: var(--green-light); color: var(--green-dark); }
.btn-primary:hover { background: #fff; transform: translateY(-2px); }
.btn-ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.4); }
.btn-ghost:hover { background: rgba(255,255,255,0.1); border-color: #fff; }

.scroll-hint {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px; z-index: 2;
  color: rgba(255,255,255,0.4); font-size: 10px; letter-spacing: 2px; font-weight: 700;
  animation: sh 2.4s infinite;
}
.scroll-bar { width: 1px; height: 30px; background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent); }
@keyframes sh { 0%,100%{opacity:.35; transform:translateX(-50%) translateY(0);} 50%{opacity:.8; transform:translateX(-50%) translateY(8px);} }

/* ---------- PHOTO STRIP ---------- */
.photo-strip { display: grid; grid-template-columns: repeat(4, 1fr); height: 200px; }
.photo-strip-item { overflow: hidden; }
.photo-strip-item img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.05) brightness(0.94); transition: transform .6s; }
.photo-strip-item:hover img { transform: scale(1.06); }

/* ---------- SECTIONS ---------- */
.wrap { max-width: 1140px; margin: 0 auto; padding: 100px 40px; }
.wrap-narrow { max-width: 760px; }
.wrap-wide { max-width: 1260px; }
.wrap-mid { max-width: 920px; }
.sec-light { background: var(--cream); }
.sec-white { background: var(--white); }
.sec-dark { background: linear-gradient(160deg, #0f2e18, #1a4a26); }
.sec-dark .heading, .sec-dark h2 { color: #fff; }
.sec-dark .heading em { color: #c8f135; }
.sec-dark .section-intro { color: rgba(255,255,255,0.68); }
.sec-dark .form-row label { color: rgba(255,255,255,0.7); }
.sec-dark .form-status.err { color: #ff9d8a; }
.sec-dark .form-status.ok { color: #c8f135; }

.heading {
  font-size: clamp(30px, 4.2vw, 48px); font-weight: 900; line-height: 1.08;
  letter-spacing: -1.2px; margin-bottom: 20px; color: var(--ink);
}
.heading em { font-style: normal; color: var(--green); }
.section-intro { font-size: 15.5px; color: var(--gray); max-width: 560px; line-height: 1.7; margin-bottom: 40px; }

/* ---------- QUIENES SOMOS ---------- */
.q-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 70px; align-items: center; }
.q-desc { font-size: 15px; line-height: 1.85; color: rgba(255,255,255,0.68); margin-bottom: 20px; }
.team-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.team-chip {
  flex: 1; min-width: 160px; background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14); border-radius: 14px; padding: 16px 18px;
}
.chip-init {
  width: 36px; height: 36px; border-radius: 50%; background: #c8f135; color: var(--green-dark);
  font-weight: 800; display: flex; align-items: center; justify-content: center; margin-bottom: 10px;
}
.chip-name { font-size: 14px; font-weight: 700; color: #fff; }
.chip-sub { font-size: 12px; color: rgba(255,255,255,0.45); }
.q-stats { display: flex; flex-direction: column; gap: 18px; }
.q-stat {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px; padding: 22px 26px; display: flex; align-items: center; gap: 20px;
}
.q-stat-num { font-size: 46px; font-weight: 900; color: #c8f135; min-width: 76px; letter-spacing: -2px; }
.q-stat-label { font-size: 13.5px; color: rgba(255,255,255,0.65); line-height: 1.55; }

/* ---------- CATALOGO ---------- */
.provincia-filter { display: flex; gap: 10px; margin-bottom: 40px; flex-wrap: wrap; }
.prov-btn {
  padding: 11px 24px; border-radius: 99px; border: 1.5px solid var(--line);
  background: #fff; font-weight: 700; font-size: 13.5px; color: var(--gray); transition: all .2s;
}
.prov-btn:hover { border-color: var(--green); color: var(--green); }
.prov-btn.on { background: var(--green); border-color: var(--green); color: #fff; }

.catalog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.exp-card {
  background: #fff; border: 1px solid var(--line); border-radius: 22px; overflow: hidden;
  display: flex; flex-direction: column; cursor: pointer;
  transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s;
}
.exp-card:hover { transform: translateY(-6px) scale(1.015); box-shadow: 0 24px 52px rgba(15,46,24,0.16); }
.exp-img { height: 240px; overflow: hidden; position: relative; }
.exp-img img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s ease, opacity .6s ease;
}
.exp-img img.img-base { opacity: 1; }
.exp-img img.img-hover { opacity: 0; }
.exp-card:hover .img-base { opacity: 0; transform: scale(1.08); }
.exp-card:hover .img-hover { opacity: 1; transform: scale(1.08); }
.exp-price-tag {
  position: absolute; top: 16px; right: 16px; background: rgba(15,46,24,0.85);
  color: #fff; font-size: 12.5px; font-weight: 800; padding: 7px 16px; border-radius: 99px;
  backdrop-filter: blur(4px); z-index: 2;
}
.exp-body { padding: 28px 26px 28px; display: flex; flex-direction: column; flex: 1; gap: 14px; }
.exp-name { font-size: 21px; font-weight: 800; }
.exp-place { font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--green); }
.exp-summary { font-size: 14.5px; color: var(--gray); line-height: 1.65; flex: 1; }
.exp-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.meta-chip {
  font-size: 11.5px; font-weight: 700; padding: 6px 13px; border-radius: 99px;
  border: 1.4px solid var(--line); color: var(--gray); background: var(--green-pale);
}
.exp-iva-note { font-size: 11.5px; color: var(--gray); margin-top: -6px; }
.exp-more {
  font-weight: 700; font-size: 13.5px; color: var(--green); display: flex; align-items: center; gap: 6px;
}
.exp-more::after { content: '→'; transition: transform .2s; }
.exp-card:hover .exp-more::after { transform: translateX(4px); }

.exp-card.placeholder {
  grid-column: 1 / -1; align-items: center; justify-content: center; text-align: center;
  padding: 56px 24px; background: var(--green-pale); border: 1.5px dashed var(--line);
  cursor: default; gap: 10px;
}
.exp-card.placeholder:hover { transform: none; box-shadow: none; }
.exp-card.placeholder .placeholder-badge {
  display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line);
  padding: 6px 16px; border-radius: 99px; font-size: 11px; font-weight: 800; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--green); margin-bottom: 8px;
}
.exp-card.placeholder .exp-name { font-size: 20px; margin-bottom: 4px; }
.exp-card.placeholder .exp-summary { color: var(--gray); max-width: 420px; margin: 0 auto; flex: none; }
.catalog-price-note-wrap { display: flex; justify-content: center; margin-top: 36px; }
.catalog-price-note {
  font-size: 12.5px; color: var(--gray); line-height: 1.6;
  max-width: 560px; text-align: center;
  background: var(--green-pale); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 22px; box-shadow: 0 2px 10px rgba(15,46,24,0.05);
}

/* ---------- POP-UP RÁPIDO DEL CATÁLOGO ---------- */
.catalog-popup-backdrop {
  position: fixed; inset: 0; background: rgba(10,26,15,0.55); backdrop-filter: blur(4px);
  z-index: 920; opacity: 0; pointer-events: none; transition: opacity .3s ease;
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.catalog-popup-backdrop.open { opacity: 1; pointer-events: auto; }
.catalog-popup {
  position: relative; width: min(400px, 100%); border-radius: 20px;
  padding: 30px 26px 26px; box-shadow: 0 30px 70px rgba(0,0,0,0.3);
  transform: scale(0.94) translateY(10px); opacity: 0;
  transition: transform .3s cubic-bezier(.2,.8,.2,1), opacity .3s ease;
  background:
    linear-gradient(rgba(250,248,243,0.8), rgba(250,248,243,0.8)),
    url('../assets/img/popup-cordero.jpg') center 48% / cover;
}
.catalog-popup-backdrop.open .catalog-popup { transform: scale(1) translateY(0); opacity: 1; }
.catalog-popup-close {
  position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border-radius: 50%;
  background: var(--green-pale); border: none; color: var(--green-dark); font-size: 14px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.catalog-popup-close:hover { background: var(--green-light); }
.catalog-popup-title { font-size: 21px; font-weight: 900; color: var(--ink); margin-bottom: 6px; padding-right: 26px; }
.catalog-popup-text { font-size: 13px; color: var(--gray); line-height: 1.6; margin-bottom: 18px; }
.catalog-popup-form { display: flex; flex-direction: column; gap: 12px; }
.catalog-popup-form label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 700; color: var(--gray); }
.catalog-popup-form input {
  font-family: inherit; font-size: 13.5px; padding: 10px 13px; border-radius: 10px;
  border: 1.5px solid var(--line); background: #fff; color: var(--ink);
}
.catalog-popup-form input:focus { outline: none; border-color: var(--green); }
.catalog-popup-datetime { display: grid; grid-template-columns: 1.3fr 1fr; gap: 10px; }
.catalog-popup-datetime input { width: 100%; }
.catalog-popup-form .btn { margin-top: 4px; width: 100%; }

/* ---------- MODAL DE EXPERIENCIA ---------- */
.exp-modal-backdrop {
  position: fixed; inset: 0; background: rgba(10,26,15,0.6); backdrop-filter: blur(4px);
  z-index: 900; opacity: 0; pointer-events: none; transition: opacity .3s ease;
  display: flex; align-items: center; justify-content: center; padding: 30px;
}
.exp-modal-backdrop.open { opacity: 1; pointer-events: auto; }
.exp-modal {
  position: relative; width: min(920px, 100%); max-height: 92vh;
  background: var(--cream); z-index: 901; overflow: hidden; border-radius: 24px;
  transform: scale(0.94) translateY(10px); opacity: 0;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), opacity .3s ease;
  box-shadow: 0 30px 80px rgba(0,0,0,0.35);
  display: flex; align-items: stretch;
}
.exp-modal-gallery { flex: 0 0 50%; }
.exp-modal-body { flex: 1 1 50%; min-width: 0; min-height: 0; }
.exp-modal-backdrop.open .exp-modal { transform: scale(1) translateY(0); opacity: 1; }
.exp-modal-close {
  position: absolute; top: 18px; right: 18px; z-index: 3; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(15,46,24,0.7); color: #fff; border: none; font-size: 18px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.exp-modal-gallery {
  position: relative;
  overflow: hidden; background: #0a2010;
}
.exp-modal-gallery img, .exp-modal-gallery video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block;
}
.exp-modal-gallery video { pointer-events: none; }
.exp-modal-body { padding: 24px 32px 26px; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; }
.exp-modal-place { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--green); }
.exp-modal-name { font-size: 23px; font-weight: 900; letter-spacing: -0.5px; }
.exp-modal-meta { display: flex; gap: 10px; flex-wrap: wrap; }
.exp-modal-summary { font-size: 13.5px; line-height: 1.5; color: var(--gray); display: flex; flex-direction: column; gap: 10px; }
.exp-modal-summary strong { color: var(--ink); }
.exp-modal-lang { font-size: 12px; line-height: 1.45; color: var(--green); background: var(--green-pale); padding: 8px 12px; border-radius: 10px; }
.exp-modal-includes-title { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; margin-top: 2px; }
.exp-modal-includes { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.exp-modal-includes li { font-size: 13px; color: var(--ink); line-height: 1.4; display: flex; gap: 10px; }
.exp-modal-includes li::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--green); margin-top: 5px; flex-shrink: 0; }
.exp-modal-price-box {
  display: flex; align-items: center; justify-content: space-between; background: var(--green-pale);
  border-radius: 14px; padding: 12px 18px; margin-top: 2px;
}
.exp-modal-price-val { font-size: 21px; font-weight: 900; color: var(--green-dark); }
.exp-modal-price-iva { font-size: 11.5px; color: var(--gray); margin-top: 2px; }
body.modal-open { overflow: hidden; }
@media (max-width: 760px) {
  .exp-modal { flex-direction: column; max-height: 92vh; }
  .exp-modal-gallery { flex: 0 0 280px; }
}

/* ---------- COMO FUNCIONA ---------- */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step-card {
  background: var(--green-pale); border-radius: 18px; padding: 28px 22px;
  border-top: 3px solid var(--green);
}
.step-num { font-size: 42px; font-weight: 900; color: rgba(30,114,63,0.18); line-height: 1; margin-bottom: 14px; }
.step-title { font-size: 15px; font-weight: 800; margin-bottom: 8px; }
.step-desc { font-size: 13px; color: var(--gray); line-height: 1.6; }

/* ---------- RESENAS ---------- */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.review-card {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px; overflow: hidden; display: flex; flex-direction: column;
}
.review-card-img { height: 160px; overflow: hidden; }
.review-card-img img { width: 100%; height: 100%; object-fit: cover; }
.review-card-body { padding: 24px; display: flex; flex-direction: column; gap: 16px; flex: 1; }
.review-stars { color: #c8f135; font-size: 14px; letter-spacing: 2px; }
.review-text { font-size: 14px; line-height: 1.7; color: rgba(255,255,255,0.85); flex: 1; }
.review-author { font-size: 13px; font-weight: 700; color: #fff; }
.review-source { font-size: 12px; color: rgba(255,255,255,0.45); }

/* ---------- GALERÍA DE FOTOS (marquee) ---------- */
.photo-gallery-section { padding-bottom: 56px; }
.photo-marquee {
  overflow: hidden; padding: 40px 0 30px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.photo-marquee-track {
  display: inline-flex; gap: 18px; align-items: center;
  animation: photo-scroll 46s linear infinite; will-change: transform;
}
@keyframes photo-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.photo-marquee-item {
  flex-shrink: 0; height: 300px; border-radius: 18px; overflow: hidden;
  box-shadow: 0 10px 26px rgba(15,46,24,0.14); background: var(--green-pale);
  transform: scale(1); transition: transform .35s ease, box-shadow .35s ease;
}
/* El scroll nunca se detiene: al pasar el ratón, solo esa foto se agranda. */
.photo-marquee-item:hover {
  transform: scale(1.1); z-index: 2;
}
/* Ancho automático: cada foto conserva su proporción original (sin recortar ni deformar). */
.photo-marquee-item img { height: 100%; width: auto; max-width: none; display: block; }
.photo-gallery-cta { display: flex; justify-content: center; padding: 6px 24px 0; }
@media (prefers-reduced-motion: reduce) {
  .photo-marquee-track { animation: none; }
}
@media (max-width: 760px) {
  .photo-marquee-item { height: 190px; }
}

/* ---------- MODAL DE GALERÍA COMPLETA ---------- */
.gallery-modal-backdrop {
  position: fixed; inset: 0; background: rgba(10,26,15,0.82); backdrop-filter: blur(6px);
  z-index: 950; opacity: 0; pointer-events: none; transition: opacity .3s ease;
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.gallery-modal-backdrop.open { opacity: 1; pointer-events: auto; }
.gallery-modal {
  width: min(1200px, 100%); max-height: 90vh; background: var(--cream); border-radius: 22px;
  overflow: hidden; display: flex; flex-direction: column;
  transform: scale(0.96); transition: transform .3s cubic-bezier(.2,.8,.2,1);
}
.gallery-modal-backdrop.open .gallery-modal { transform: scale(1); }
.gallery-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 26px; border-bottom: 1px solid var(--line); flex-shrink: 0;
}
.gallery-modal-title { font-size: 18px; font-weight: 900; color: var(--ink); }
.gallery-modal-close {
  width: 38px; height: 38px; border-radius: 50%; background: var(--green-pale); border: none;
  color: var(--green-dark); font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.gallery-modal-close:hover { background: var(--green-light); }
.gallery-modal-grid {
  overflow-y: auto; padding: 22px 26px 30px;
  columns: 3 220px; column-gap: 14px;
}
.gallery-modal-grid img {
  width: 100%; height: auto; border-radius: 14px; cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease; display: block;
  margin-bottom: 14px; break-inside: avoid;
}
.gallery-modal-grid img:hover { transform: scale(1.02); box-shadow: 0 10px 24px rgba(15,46,24,0.2); }
@media (max-width: 640px) {
  .gallery-modal-grid { columns: 2 140px; }
}

/* ---------- LIGHTBOX ---------- */
.lightbox-backdrop {
  position: fixed; inset: 0; background: rgba(6,16,10,0.94); z-index: 970;
  opacity: 0; pointer-events: none; transition: opacity .25s ease;
  display: flex; align-items: center; justify-content: center;
}
.lightbox-backdrop.open { opacity: 1; pointer-events: auto; }
.lightbox-stage { max-width: 88vw; max-height: 82vh; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.lightbox-stage img { max-width: 88vw; max-height: 76vh; object-fit: contain; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.lightbox-counter { color: rgba(255,255,255,0.6); font-size: 13px; font-weight: 600; letter-spacing: 1px; }
.lightbox-close {
  position: absolute; top: 22px; right: 22px; width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,0.1); border: none; color: #fff; font-size: 18px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.lightbox-close:hover { background: rgba(255,255,255,0.2); }
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255,255,255,0.1); border: none; color: #fff; font-size: 26px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: background .2s;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.2); }
.lightbox-prev { left: 22px; }
.lightbox-next { right: 22px; }
@media (max-width: 640px) {
  .lightbox-nav { width: 42px; height: 42px; font-size: 20px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}

/* ---------- CONTACTO ---------- */
.contact-form { display: flex; flex-direction: column; gap: 18px; margin-top: 10px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-row label { display: flex; flex-direction: column; gap: 8px; font-size: 12.5px; font-weight: 700; color: var(--gray); }
.form-row label.full { grid-column: 1 / -1; }
.form-row input, .form-row select, .form-row textarea {
  font-family: inherit; font-size: 14px; padding: 13px 16px; border-radius: 10px;
  border: 1.5px solid var(--line); background: #fff; color: var(--ink);
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline: none; border-color: var(--green); }
.contact-form .btn { align-self: flex-start; margin-top: 6px; }
.form-status { font-size: 13.5px; font-weight: 400; line-height: 1.6; min-height: 20px; }
.form-status strong { font-weight: 800; }
.form-status.ok { color: var(--green); }
.form-status.err { color: #b8402c; }

/* ---------- FOOTER ---------- */
footer { background: var(--green-dark); padding: 60px 40px 24px; }
.footer-grid {
  max-width: 1140px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px; padding-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-logo { height: 54px; margin-bottom: 14px; }
.footer-slogan { font-size: 13px; font-style: italic; color: rgba(255,255,255,0.4); max-width: 220px; }
.footer-col-title { font-size: 11px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 16px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 13.5px; color: rgba(255,255,255,0.75); }
.footer-links a:hover { color: #fff; }
.footer-contact { display: flex; flex-direction: column; gap: 10px; font-size: 13.5px; color: rgba(255,255,255,0.6); }
.footer-contact a { color: #fff; font-weight: 600; }
.footer-bottom {
  max-width: 1140px; margin: 20px auto 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 12px; color: rgba(255,255,255,0.35);
}
.footer-bottom a { color: rgba(255,255,255,0.45); }
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- REVEAL ---------- */
.rv { opacity: 0; transform: translateY(24px); transition: opacity .65s ease, transform .65s ease; }
.rv.in { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: .08s; } .d2 { transition-delay: .16s; } .d3 { transition-delay: .24s; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 980px) {
  .q-grid { grid-template-columns: 1fr; gap: 40px; }
  .catalog-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav-links { position: fixed; top: 68px; left: 0; right: 0; background: rgba(15,46,24,0.98);
    flex-direction: column; align-items: flex-start; padding: 20px 28px; gap: 16px;
    transform: translateY(-120%); transition: transform .3s; }
  .nav-links.open { transform: translateY(0); }
  .nav-burger { display: flex; }
  .lang-toggle { display: none; }
  .hero-content { padding: 0 24px; }
  .hero-logo { height: 165px; }
  .wrap { padding: 70px 22px; }
  .photo-strip { grid-template-columns: repeat(2, 1fr); height: auto; }
  .photo-strip-item { height: 140px; }
  .catalog-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .exp-modal { width: 100%; }
  .team-grid-v2 { grid-template-columns: 1fr; }
  .stepper { padding-left: 32px; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- PAGE HERO (páginas internas) ---------- */
.page-hero {
  background: linear-gradient(160deg, #0f2e18, #1a4a26);
  padding: 150px 40px 80px; text-align: left;
}
.page-hero .wrap { padding: 0; max-width: 1140px; }
.page-hero h1 { color: #fff; font-size: clamp(34px, 5vw, 56px); font-weight: 900; letter-spacing: -1.2px; line-height: 1.05; max-width: 700px; margin-bottom: 16px; }
.page-hero h1 em { font-style: normal; color: #c8f135; }
.page-hero p { color: rgba(255,255,255,0.65); font-size: 15.5px; max-width: 560px; line-height: 1.7; }

/* ---------- HISTORIA (Quienes somos) ---------- */
.historia-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: stretch; }
.historia-text p { font-size: 15px; line-height: 1.85; color: var(--gray); margin-bottom: 18px; }
.historia-img {
  position: relative; height: 100%; min-height: 340px; border-radius: 20px; overflow: hidden;
  box-shadow: 0 20px 50px rgba(15,46,24,0.15);
}
.historia-img img { width: 100%; height: 100%; object-fit: cover; }
/* Encuadre ajustado individualmente para cada fotografía. */
.historia-img .img-base { object-position: 50% 58%; }
.historia-img .img-hover { object-position: 50% 55%; }
.historia-img-hover img { position: absolute; inset: 0; transition: opacity .6s ease; }
.historia-img-hover .img-base { opacity: 1; }
.historia-img-hover .img-hover { opacity: 0; }
@media (hover: hover) {
  .historia-img-hover:hover .img-base { opacity: 0; }
  .historia-img-hover:hover .img-hover { opacity: 1; }
}
.historia-img-hover:active .img-base { opacity: 0; }
.historia-img-hover:active .img-hover { opacity: 1; }

/* ---------- STATS STRIP ---------- */
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat-box { background: var(--green-pale); border-radius: 16px; padding: 26px 20px; text-align: center; }
.stat-box .stat-num { font-size: 40px; font-weight: 900; color: var(--green); letter-spacing: -1.5px; line-height: 1; margin-bottom: 8px; }
.stat-box .stat-label { font-size: 12.5px; color: var(--gray); line-height: 1.4; }

/* ---------- EQUIPO ---------- */
.team-grid-v2 { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.team-card-v2 { background: #fff; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); }
.team-card-v2-img { height: 320px; overflow: hidden; background: var(--green-pale); }
.team-card-v2-img img { width: 100%; height: 100%; object-fit: cover; }
.team-card-v2-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 64px; font-weight: 900; color: var(--green); background: var(--green-light); }
.team-card-v2-body { padding: 24px 26px 28px; }
.team-card-v2-name { font-size: 20px; font-weight: 800; margin-bottom: 2px; }
.team-card-v2-role { font-size: 12.5px; font-weight: 700; color: var(--green); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 14px; }
.team-card-v2-quote { font-size: 14px; color: var(--gray); line-height: 1.65; margin-bottom: 16px; }
.team-card-v2-linkedin {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700;
  color: var(--green-dark); border: 1.5px solid var(--line); padding: 8px 16px; border-radius: 99px;
}
.team-card-v2-linkedin:hover { border-color: var(--green); color: var(--green); }

/* ---------- VALORES ---------- */
.valores-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.valor-card { padding: 26px 22px; border-radius: 16px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); }
.valor-card h3 { font-size: 16px; font-weight: 800; color: #fff; margin-bottom: 10px; }
.valor-card p { font-size: 13.5px; color: rgba(255,255,255,0.6); line-height: 1.6; }

/* ---------- STEPPER (Así lo organizamos) ---------- */
.stepper { position: relative; padding-left: 50px; }
.stepper::before { content: ''; position: absolute; left: 15px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.stepper-fill { position: absolute; left: 15px; top: 6px; width: 2px; background: var(--green); height: 0%; transition: height .1s linear; }
.stepper-item { position: relative; padding-bottom: 56px; }
.stepper-item:last-child { padding-bottom: 0; }
.stepper-dot {
  position: absolute; left: -50px; top: 0; width: 32px; height: 32px; border-radius: 50%;
  background: #fff; border: 2px solid var(--line); display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 13px; color: var(--gray); transition: all .3s;
}
.stepper-item.active .stepper-dot { background: var(--green); border-color: var(--green); color: #fff; }
.stepper-title { font-size: 20px; font-weight: 800; margin-bottom: 10px; }
.stepper-desc { font-size: 14.5px; color: var(--gray); line-height: 1.7; max-width: 560px; }

/* ---------- RESEÑAS: estadísticas ---------- */
.review-stats-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 50px; }
.review-stat-box { text-align: center; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); border-radius: 16px; padding: 28px 18px; }
.review-stat-box .stat-num { font-size: 42px; font-weight: 900; color: #c8f135; letter-spacing: -1.5px; }
.review-stat-box .stat-label { font-size: 12.5px; color: rgba(255,255,255,0.6); margin-top: 6px; }

/* ---------- PAGINAS LEGALES ---------- */
.legal-content { max-width: 760px; margin: 0 auto; padding: 60px 40px 100px; }
.legal-content h2 { font-size: 22px; font-weight: 800; margin: 32px 0 12px; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p, .legal-content li { font-size: 14.5px; line-height: 1.75; color: var(--gray); margin-bottom: 12px; }
.legal-content strong { color: var(--ink); }
.legal-updated { font-size: 12.5px; color: var(--gray); margin-bottom: 30px; }
