:root {
  --green: #1a5c2a;
  --green-light: #2d8a42;
  --orange: #e85d20;
  --orange-light: #f97316;
  --cream: #ffffff;
  --dark: #111410;
  --stone: #8a8575;
  --serif: 'Fraunces', Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; background: var(--cream); color: var(--dark); overflow-x: hidden; }
img { max-width: 100%; display: block; }
p { margin: 0; }

/* ── TOPOGRAPHIC BG ── */
#topo-canvas { position: fixed; inset: 0; z-index: 0; opacity: 0.07; pointer-events: none; }

/* ── REVEAL ON SCROLL ── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 40px; background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px); border-bottom: 1px solid rgba(26,92,42,0.15);
}
.nav-logo { font-family: 'Bebas Neue', sans-serif; font-size: 1.6rem; letter-spacing: 0.06em; color: var(--green); text-decoration: none; }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a { font-size: 0.85rem; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; color: var(--dark); text-decoration: none; opacity: 0.7; transition: opacity 0.2s; }
.nav-links a:hover { opacity: 1; }
.btn-nav { background: var(--orange); color: white; padding: 10px 24px; border-radius: 100px; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.03em; text-decoration: none; transition: background 0.2s, transform 0.15s; }
.btn-nav:hover { background: #c4491a; transform: translateY(-1px); }
@media (max-width: 900px) {
  nav { padding: 12px 16px; gap: 10px; }
  .nav-logo-text { display: none; }
  .nav-logo img { width: 36px !important; height: 36px !important; }
  .nav-links { display: none; }
  .btn-nav { flex-shrink: 0; padding: 9px 16px; font-size: 0.78rem; }
}

/* ── WHATSAPP FLOAT ── */
.wa-float { position: fixed; bottom: 28px; right: 28px; z-index: 200; background: #25d366; color: white; width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 30px rgba(37,211,102,0.4); text-decoration: none; transition: transform 0.2s, box-shadow 0.2s; }
.wa-float:hover { transform: scale(1.1); box-shadow: 0 12px 40px rgba(37,211,102,0.5); }

/* ── BUTTONS ── */
.btn-primary { background: var(--green); color: white; padding: 16px 36px; border-radius: 12px; font-weight: 700; font-size: 0.95rem; text-decoration: none; border: none; cursor: pointer; font-family: 'DM Sans', sans-serif; transition: background 0.2s, transform 0.15s; display: inline-block; }
.btn-primary:hover { background: #13421f; transform: translateY(-2px); }
.btn-secondary { background: transparent; color: var(--green); border: 2px solid var(--green); padding: 14px 34px; border-radius: 12px; font-weight: 700; font-size: 0.95rem; text-decoration: none; cursor: pointer; font-family: 'DM Sans', sans-serif; transition: all 0.2s; display: inline-block; }
.btn-secondary:hover { background: var(--green); color: white; transform: translateY(-2px); }
.btn-white { background: white; color: var(--green); padding: 16px 36px; border-radius: 12px; font-weight: 700; font-size: 0.95rem; text-decoration: none; transition: all 0.2s; display: inline-block; }
.btn-white:hover { background: var(--cream); transform: translateY(-2px); }
.btn-orange-solid { background: var(--orange); color: white; padding: 16px 36px; border-radius: 12px; font-weight: 700; font-size: 0.95rem; text-decoration: none; transition: all 0.2s; display: inline-block; }
.btn-orange-solid:hover { background: #c4491a; transform: translateY(-2px); }

/* ── SECTION HEADERS ── */
.section-header { text-align: center; margin-bottom: 56px; }
.section-tag { display: inline-block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--orange); margin-bottom: 12px; }
.section-title { font-family: 'Bebas Neue', sans-serif; font-size: clamp(2.5rem, 6vw, 4.5rem); color: var(--dark); letter-spacing: 0.02em; line-height: 1; }

/* ── HERO ── */
#hero { position: relative; min-height: 100vh; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; padding: 120px 40px 80px; }
.eb-hero-bg { position: absolute; inset: 0; z-index: -1; }
.eb-hero-bg img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.eb-hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(17,20,16,0.25) 0%, rgba(17,20,16,0.55) 60%, rgba(17,20,16,0.9) 100%); }
.eb-back { position: absolute; top: 100px; left: 40px; z-index: 5; }
.eb-back a { color: rgba(255,255,255,0.85); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.05em; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,0.12); backdrop-filter: blur(6px); padding: 8px 16px 8px 12px; border-radius: 100px; transition: background 0.2s; }
.eb-back a:hover { background: rgba(255,255,255,0.22); }
.eb-hero-content { max-width: 780px; margin: 0 auto; text-align: center; color: white; }
.eb-eyebrow { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; color: var(--orange-light); margin-bottom: 22px; }
.eb-hero-title { font-family: var(--serif); font-weight: 300; font-size: clamp(2.8rem, 7vw, 5.6rem); line-height: 1.02; letter-spacing: -0.01em; margin-bottom: 26px; }
.eb-hero-title em { font-style: italic; font-weight: 400; color: #a7e8bb; }
.eb-hero-sub { font-size: clamp(1rem, 1.6vw, 1.15rem); color: rgba(255,255,255,0.82); max-width: 560px; margin: 0 auto 40px; line-height: 1.65; }
.eb-hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ── LOGOS MARQUEE ── */
#clientes { position: relative; z-index: 1; padding: 64px 0 70px; background: var(--cream); text-align: center; overflow: hidden; }
.logos-eyebrow { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--stone); margin-bottom: 34px; }
.logos-marquee { position: relative; width: 100%; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent); mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent); }
.logos-track { display: flex; align-items: center; gap: 64px; width: max-content; animation: marquee 26s linear infinite; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.logos-marquee:hover .logos-track { animation-play-state: paused; }
.logo-item { display: flex; flex-direction: column; align-items: center; gap: 8px; flex-shrink: 0; }
.logo-item img { height: 46px; width: auto; max-width: 160px; object-fit: contain; filter: grayscale(1) opacity(0.55); transition: filter 0.25s; }
.logo-item:hover img { filter: grayscale(0) opacity(1); }
.logo-item .logo-name { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--stone); }
@media (prefers-reduced-motion: reduce) { .logos-track { animation: none; } .logos-marquee { overflow-x: auto; } }

/* ── MISIÓN / PROBLEMAS ── */
#mision { position: relative; z-index: 1; background: linear-gradient(135deg, var(--green) 0%, #0d3318 100%); padding: 110px 40px; color: white; text-align: center; overflow: hidden; }
#mision::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
#mision .section-title { color: white; margin-bottom: 24px; }
#mision .wrap { position: relative; max-width: 900px; margin: 0 auto; }
.mision-lead { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(1.3rem, 2.6vw, 1.7rem); line-height: 1.5; color: #d9f2e0; max-width: 700px; margin: 0 auto 44px; }
.corp-problems { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 50px; }
.corp-problem { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12); padding: 8px 20px; border-radius: 100px; font-size: 0.85rem; font-weight: 500; color: rgba(255,255,255,0.8); }
.mision-quote { font-family: var(--serif); font-weight: 300; font-size: clamp(1.1rem, 2vw, 1.35rem); line-height: 1.65; color: rgba(255,255,255,0.88); max-width: 680px; margin: 0 auto; }

/* ── QUÉ INCLUYE ── */
#incluye { position: relative; z-index: 1; padding: 110px 40px; max-width: 1100px; margin: 0 auto; }
.incluye-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; margin-bottom: 40px; }
.incluye-item { background: white; border: 1px solid rgba(0,0,0,0.06); border-radius: 16px; padding: 22px 20px; display: flex; align-items: flex-start; gap: 14px; box-shadow: 0 4px 24px rgba(17,20,16,0.04); transition: transform 0.2s, box-shadow 0.2s; }
.incluye-item:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(17,20,16,0.09); }
.incluye-ico { font-size: 1.3rem; flex-shrink: 0; }
.incluye-item p { font-size: 0.92rem; color: var(--dark); line-height: 1.5; }
.extras-box { background: linear-gradient(135deg, var(--orange) 0%, var(--orange-light) 100%); border-radius: 18px; padding: 28px 30px; color: white; }
.extras-box .lbl { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.85; margin-bottom: 10px; display: block; }
.extras-box ul { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 28px; }
.extras-box li { font-size: 0.92rem; font-weight: 500; }

/* ── DINÁMICAS ── */
#dinamicas { position: relative; z-index: 1; padding: 110px 40px; background: #f7f6f2; }
.dinamicas-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; max-width: 1200px; margin: 0 auto; }
.dinamica-card { position: relative; height: 400px; border-radius: 20px; overflow: hidden; cursor: pointer; perspective: 1200px; }
.dinamica-card .flip-inner { position: relative; width: 100%; height: 100%; transition: transform 0.6s cubic-bezier(.4,0,.2,1); transform-style: preserve-3d; }
.dinamica-card.flipped .flip-inner { transform: rotateY(180deg); }
.dinamica-face { position: absolute; inset: 0; -webkit-backface-visibility: hidden; backface-visibility: hidden; border-radius: 20px; overflow: hidden; }
.dinamica-front img { width: 100%; height: 100%; object-fit: cover; }
.dinamica-front::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(17,20,16,0) 40%, rgba(17,20,16,0.88) 100%); }
.dinamica-front .tag { position: absolute; top: 18px; left: 18px; z-index: 2; background: rgba(255,255,255,0.9); color: var(--green); font-size: 0.65rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; padding: 6px 14px; border-radius: 100px; }
.dinamica-front .info { position: absolute; left: 20px; right: 20px; bottom: 20px; z-index: 2; color: white; }
.dinamica-front .info h3 { font-family: var(--serif); font-weight: 500; font-size: 1.5rem; margin-bottom: 6px; }
.dinamica-front .info p { font-size: 0.85rem; color: rgba(255,255,255,0.8); line-height: 1.4; }
.dinamica-front .tap-hint { position: absolute; right: 18px; bottom: 18px; z-index: 2; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,0.18); border: 1px solid rgba(255,255,255,0.4); display: flex; align-items: center; justify-content: center; color: white; font-size: 1.1rem; transition: transform 0.3s; }
.dinamica-card:hover .tap-hint { transform: rotate(90deg); }
.dinamica-back { background: var(--green); color: white; transform: rotateY(180deg); padding: 30px 26px; display: flex; flex-direction: column; justify-content: center; }
.dinamica-back .lbl { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: #a7e8bb; margin-bottom: 10px; }
.dinamica-back h3 { font-family: var(--serif); font-weight: 500; font-size: 1.4rem; margin-bottom: 14px; }
.dinamica-back p { font-size: 0.88rem; line-height: 1.55; color: rgba(255,255,255,0.85); margin-bottom: 8px; }
.dinamica-back ul { list-style: none; margin-top: 6px; }
.dinamica-back li { font-size: 0.85rem; line-height: 1.6; color: rgba(255,255,255,0.85); padding-left: 16px; position: relative; }
.dinamica-back li::before { content: '—'; position: absolute; left: 0; color: #a7e8bb; }
.dinamicas-hint { text-align: center; font-size: 0.8rem; color: var(--stone); margin-top: 28px; }

/* ── PERSONALIZADAS BANNER ── */
#personalizadas { position: relative; z-index: 1; padding: 70px 40px; background: var(--dark); color: white; text-align: center; }
.pz-title { font-family: var(--serif); font-weight: 300; font-style: italic; font-size: clamp(1.5rem, 3.4vw, 2.4rem); max-width: 800px; margin: 0 auto 30px; line-height: 1.4; }
.pz-title strong { font-weight: 600; font-style: normal; color: var(--orange-light); }

/* ── WELLNESS ── */
#wellness { position: relative; z-index: 1; padding: 110px 40px; max-width: 1100px; margin: 0 auto; }
.wellness-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.wellness-card { background: white; border: 1px solid rgba(0,0,0,0.06); border-radius: 20px; padding: 34px 28px; box-shadow: 0 4px 24px rgba(17,20,16,0.04); transition: transform 0.25s, box-shadow 0.25s; }
.wellness-card:hover { transform: translateY(-5px); box-shadow: 0 20px 46px rgba(17,20,16,0.1); }
.wellness-card .n { font-family: var(--serif); font-style: italic; color: var(--orange); font-size: 1rem; margin-bottom: 14px; }
.wellness-card h3 { font-family: 'Bebas Neue', sans-serif; font-size: 1.5rem; letter-spacing: 0.03em; color: var(--green); margin-bottom: 12px; }
.wellness-card p { font-size: 0.92rem; color: var(--stone); line-height: 1.6; }

/* ── GALERÍA EQUIPOS (carrusel) ── */
#equipos { position: relative; z-index: 1; padding: 110px 40px; background: linear-gradient(135deg, var(--green) 0%, #0d3318 100%); overflow: hidden; }
.gal-slider { position: relative; max-width: 1200px; margin: 0 auto; display: flex; align-items: center; gap: 14px; }
.gal-viewport { overflow: hidden; flex: 1; border-radius: 12px; }
.gal-track { display: flex; gap: 12px; transition: transform 0.5s cubic-bezier(.4,0,.2,1); will-change: transform; }
.gal-slide { position: relative; flex: 0 0 calc((100% - 24px) / 3); margin: 0; border-radius: 10px; overflow: hidden; }
.gal-slide img { width: 100%; height: 260px; object-fit: cover; display: block; }
.gal-slide figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 12px 9px; font-size: 0.72rem; font-weight: 600; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,0.72)); letter-spacing: 0.02em; }
.gal-arrow { width: 42px; height: 42px; flex-shrink: 0; border-radius: 50%; border: none; background: rgba(255,255,255,0.92); color: var(--dark); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.2s; }
.gal-arrow:hover { background: var(--green); color: #fff; }
.gal-dots { display: flex; justify-content: center; gap: 7px; margin-top: 22px; }
.gal-dot { width: 8px; height: 8px; border-radius: 50%; border: none; padding: 0; cursor: pointer; background: rgba(255,255,255,0.28); transition: background 0.2s, transform 0.2s; }
.gal-dot.active { background: #a7e8bb; transform: scale(1.3); }
@media (max-width: 860px) { .gal-slide { flex: 0 0 calc((100% - 12px) / 2); } .gal-slide img { height: 210px; } }
@media (max-width: 560px) { .gal-slide { flex: 0 0 100%; } .gal-slide img { height: 260px; } .gal-arrow { width: 36px; height: 36px; } }

/* ── CIERRE ── */
#cierre { position: relative; z-index: 1; padding: 130px 40px; text-align: center; overflow: hidden; }
.eb-cierre-bg { position: absolute; inset: 0; z-index: -1; }
.eb-cierre-bg img { width: 100%; height: 100%; object-fit: cover; }
.eb-cierre-bg::after { content: ''; position: absolute; inset: 0; background: rgba(17,20,16,0.72); }
.cierre-eyebrow { color: var(--orange-light); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; margin-bottom: 20px; }
.cierre-title { font-family: var(--serif); font-style: italic; font-weight: 400; color: white; font-size: clamp(2.6rem, 7vw, 5rem); line-height: 1.05; margin-bottom: 30px; }
.cierre-sub { color: rgba(255,255,255,0.8); max-width: 520px; margin: 0 auto 40px; font-size: 1.05rem; line-height: 1.6; }
.cierre-ctas { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ── FOOTER ── */
footer { position: relative; z-index: 1; background: var(--dark); color: rgba(255,255,255,0.5); text-align: center; padding: 40px 24px; font-size: 0.82rem; }
footer a { color: rgba(255,255,255,0.6); text-decoration: none; }
footer a:hover { color: white; }

@media (max-width: 700px) {
  #hero, #mision, #incluye, #dinamicas, #wellness, #equipos, #cierre { padding-left: 22px; padding-right: 22px; }
  .eb-back { left: 16px; top: 90px; }
}

/* ── MISIÓN EYEBROW (kept eyebrow, light green on dark bg) ── */
#mision .section-tag { color: #86efac; }

/* ── EQUIPOS TITLE (white on dark green bg) ── */
#equipos .section-title { color: white; }

/* ── LOGO / NAV IMAGE ── */
.nav-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.6rem;
  letter-spacing: 0.06em;
  color: var(--green);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-logo img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex-shrink: 0;
}

/* ── FOOTER TEXT (was inline) ── */
.footer-brand {
  margin-bottom: 12px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.4rem;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.8);
}
.footer-location { margin-bottom: 16px; }
.footer-social {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
