/* OHE Solutions — Diseño C "Orgánico" */
:root {
  --bg: #F7F5EF;
  --bg-elev: #FFFFFF;
  --forest: #1E4D2B;
  --forest-deep: #163B21;
  --forest-soft: #2A6339;
  --green: #6ABF2E;
  --green-text: #3F8C1E;
  --sage: #E4EEDC;
  --sage-deep: #D2E2C6;
  --ink: #1D241F;
  --ink-2: #4A544D;
  --ink-3: #6E786F;
  --line: #E1DED4;
  --cream: #F7F5EF;
  --wa: #25D366;
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(29,36,31,.06), 0 4px 14px rgba(29,36,31,.06);
  --shadow-md: 0 6px 24px rgba(29,36,31,.10);
  --font-head: "Outfit", "Segoe UI", system-ui, sans-serif;
  --font-body: "Nunito Sans", "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(.2,.7,.2,1);
  --container: 1160px;
  --gutter: 16px;
}
@media (min-width: 720px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 700; line-height: 1.12; margin: 0; letter-spacing: -.015em; text-wrap: balance; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 6px; }

.icon { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--forest); color: #fff; padding: 10px 16px; border-radius: var(--radius-pill); transition: top .2s; }
.skip-link:focus { top: 16px; }

.container { width: min(100% - var(--gutter) * 2, var(--container)); margin-inline: auto; }
.section { padding-block: clamp(64px, 9vw, 120px); }
.eyebrow { display: inline-block; font-family: var(--font-head); font-weight: 600; font-size: .8125rem; letter-spacing: .12em; text-transform: uppercase; color: var(--green-text); margin-bottom: 14px; }
.eyebrow-light { color: var(--green); }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.25rem; }
.section-head { max-width: 640px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head p { color: var(--ink-2); margin-top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: 13px 24px; border-radius: var(--radius-pill);
  font-family: var(--font-head); font-weight: 600; font-size: 1rem; line-height: 1.2;
  border: 2px solid transparent; white-space: nowrap;
  transition: transform .2s var(--ease), background-color .2s, color .2s, border-color .2s, box-shadow .2s;
}
.btn .icon { transition: transform .2s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 9px 16px; font-size: .9375rem; }
.btn-lg { padding: 16px 28px; font-size: 1.0625rem; }
.btn-primary { background: var(--forest); color: #fff; }
.btn-primary:hover { background: var(--forest-deep); box-shadow: var(--shadow-md); }
.btn-accent { background: var(--green); color: var(--ink); }
.btn-accent:hover { background: #7ccc45; box-shadow: 0 8px 24px rgba(106,191,46,.35); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-wa { background: var(--wa); color: #0B2A16; }
.btn-wa:hover { background: #33e07a; box-shadow: 0 8px 24px rgba(37,211,102,.35); }
.btn-wa .icon { stroke: none; }
.btn-wa:hover .icon { transform: none; }

.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: var(--radius-pill); background: rgba(106,191,46,.18); color: #C9F0A9; font-family: var(--font-head); font-weight: 600; font-size: .8125rem; letter-spacing: .04em; }
.chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 12px; z-index: 50; padding-inline: var(--gutter); pointer-events: none; }
.nav-pill {
  pointer-events: auto;
  width: min(100%, var(--container)); margin-inline: auto;
  display: flex; align-items: center; gap: 16px;
  padding: 8px 8px 8px 20px;
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-pill); box-shadow: var(--shadow-sm);
  position: relative;
}
.brand img { width: 92px; height: auto; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.nav ul { display: flex; gap: 4px; margin-right: 8px; }
.nav ul a { position: relative; display: block; padding: 8px 14px; border-radius: var(--radius-pill); font-family: var(--font-head); font-weight: 600; font-size: .9375rem; color: var(--ink-2); transition: color .2s, background-color .2s; }
.nav ul a:hover { color: var(--forest); background: var(--sage); }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 50%; align-items: center; justify-content: center; color: var(--forest); background: var(--sage); }
.nav-toggle .icon { width: 22px; height: 22px; }
.nav-toggle .i-close { display: none; }
.site-header.is-open .nav-toggle .i-menu { display: none; }
.site-header.is-open .nav-toggle .i-close { display: block; }

@media (max-width: 899px) {
  .site-header { top: 8px; }
  .nav-pill { padding: 6px 6px 6px 16px; }
  .brand img { width: 84px; }
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .nav {
    position: absolute; top: calc(100% + 8px); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 8px;
    background: #fff; border-radius: var(--radius-lg); padding: 12px; box-shadow: var(--shadow-md);
    opacity: 0; transform: translateY(-6px); visibility: hidden;
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
  }
  .site-header.is-open .nav { opacity: 1; transform: none; visibility: visible; }
  .nav ul { flex-direction: column; gap: 2px; margin: 0; }
  .nav ul a { padding: 12px 16px; font-size: 1.0625rem; }
  .nav .btn { margin-top: 4px; }
}

/* ---------- Hero ---------- */
.hero { padding: 14px var(--gutter) 0; margin-top: -68px; }
.hero-panel {
  position: relative; overflow: hidden; isolation: isolate;
  width: min(100%, var(--container)); margin-inline: auto;
  background: var(--forest); color: var(--cream);
  border-radius: var(--radius-xl);
  padding: clamp(120px, 14vw, 150px) clamp(24px, 6vw, 80px) clamp(48px, 6vw, 80px);
  display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 64px); align-items: center;
}
/* organic arcs echoing the logo circle */
.hero-panel::before, .hero-panel::after { content: ""; position: absolute; border-radius: 50%; z-index: -1; pointer-events: none; }
.hero-panel::before { width: 620px; height: 620px; right: -180px; bottom: -260px; background: var(--forest-soft); }
.hero-panel::after { width: 340px; height: 340px; left: -140px; top: -120px; background: rgba(106,191,46,.14); }
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); color: #fff; margin: 18px 0 20px; max-width: 14ch; }
.hero .lead { font-size: clamp(1.0625rem, 1.5vw, 1.2rem); color: rgba(247,245,239,.85); max-width: 48ch; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.hero-figure { position: relative; justify-self: center; width: min(100%, 380px); aspect-ratio: 1; }
.hero-figure::before { content: ""; position: absolute; inset: -9%; border-radius: 50%; background: rgba(106,191,46,.22); }
.portrait { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 4px var(--green), 0 24px 48px rgba(0,0,0,.28); background: #fff; }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.float-card {
  position: absolute; left: -8%; bottom: 6%;
  display: flex; flex-direction: column; gap: 2px;
  background: #fff; color: var(--ink); padding: 14px 20px; border-radius: 18px; box-shadow: var(--shadow-md);
  font-size: .875rem; line-height: 1.3;
}
.float-card strong { font-family: var(--font-head); font-size: 1.0625rem; color: var(--forest); }
.float-card span { color: var(--ink-3); }

@media (max-width: 899px) {
  .hero { padding: 0; margin-top: -64px; }
  .hero-panel { width: 100%; border-radius: 0 0 var(--radius-xl) var(--radius-xl); grid-template-columns: 1fr; padding: 120px var(--gutter) 56px; gap: 40px; text-align: left; }
  .hero-panel::before { width: 420px; height: 420px; right: -200px; bottom: -200px; }
  .hero h1 { max-width: none; }
  .hero-figure { width: min(72vw, 280px); margin-top: 8px; }
  .float-card { left: -4%; transform: none; bottom: -34px; white-space: nowrap; }
}
@media (max-width: 899px) { .hero-panel { padding-bottom: 90px; } }

/* ---------- Nosotros ---------- */
.about { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.about h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); color: var(--forest); }
.about p { margin-top: 20px; color: var(--ink-2); font-size: 1.125rem; }
.person { display: flex; align-items: center; gap: 14px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.person img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px var(--sage); }
.person div { display: flex; flex-direction: column; line-height: 1.3; }
.person strong { font-family: var(--font-head); color: var(--ink); }
.person span { color: var(--ink-3); font-size: .9375rem; }

.bento { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; gap: 16px; }
.tile {
  position: relative; overflow: hidden;
  background: var(--sage); border-radius: var(--radius-lg); padding: 28px 24px 24px; min-height: 160px;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 44px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.tile::after { content: ""; position: absolute; width: 140px; height: 140px; border-radius: 50%; right: -50px; top: -50px; background: rgba(106,191,46,.18); }
.tile-tall { grid-row: span 2; gap: 0; justify-content: space-between; min-height: 336px; }
.tile-tall::after { width: 220px; height: 220px; right: -80px; bottom: -80px; top: auto; }
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.tile-icon { width: 48px; height: 48px; border-radius: 14px; background: var(--forest); color: #fff; display: grid; place-items: center; position: relative; z-index: 1; }
.tile-icon .icon { width: 24px; height: 24px; }
.tile h3 { color: var(--forest); font-size: 1.125rem; position: relative; z-index: 1; }

@media (max-width: 899px) {
  .about { grid-template-columns: 1fr; gap: 40px; }
  .bento { grid-template-columns: 1fr 1fr; }
  .tile { min-height: 150px; gap: 28px; padding: 22px 18px 18px; }
  .tile-tall { grid-row: auto; grid-column: span 2; min-height: 150px; flex-direction: row; align-items: flex-end; }
}

/* ---------- Servicios ---------- */
.section-services { background: linear-gradient(180deg, var(--bg) 0%, #F1F3EA 100%); }
.svc { display: grid; grid-template-columns: minmax(280px, 380px) 1fr; grid-template-rows: repeat(11, auto) 1fr; column-gap: clamp(24px, 4vw, 56px); row-gap: 8px; align-items: start; }
.svc-tab {
  grid-column: 1; text-align: left;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 20px; border-radius: var(--radius-pill);
  font-family: var(--font-head); font-weight: 600; font-size: 1rem; line-height: 1.3; color: var(--forest);
  border: 1.5px solid transparent;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.svc-tab:hover { background: var(--sage); }
.svc-tab[aria-selected="true"] { background: var(--forest); color: #fff; }
.svc-tab .chev { width: 18px; height: 18px; opacity: .55; transform: rotate(-90deg); transition: transform .25s var(--ease), opacity .2s; }
.svc-tab[aria-selected="true"] .chev { opacity: 1; }
.svc-panel {
  grid-column: 2; grid-row: 1 / -1; position: sticky; top: 92px;
  background: var(--sage); border-radius: var(--radius-xl); padding: clamp(28px, 4vw, 48px);
  overflow: hidden; isolation: isolate;
  animation: fadeIn .15s var(--ease);
}
.svc-panel::after { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; right: -110px; top: -110px; background: rgba(106,191,46,.16); z-index: -1; }
.svc-panel[hidden] { display: none; }
.svc-icon { width: 56px; height: 56px; border-radius: 16px; background: var(--forest); color: #fff; display: grid; place-items: center; margin-bottom: 22px; }
.svc-icon .icon { width: 28px; height: 28px; }
.svc-panel h3 { font-size: clamp(1.35rem, 2vw, 1.7rem); color: var(--forest); }
.svc-panel p { margin-top: 14px; color: var(--ink-2); max-width: 60ch; }
.checks { margin-top: 18px; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 34px; color: var(--ink); }
.checks li::before { content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%; background: var(--green); }
.checks li::after { content: ""; position: absolute; left: 7px; top: 8px; width: 8px; height: 5px; border-left: 2px solid var(--forest-deep); border-bottom: 2px solid var(--forest-deep); transform: rotate(-45deg); }
.checks.cols { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); column-gap: 24px; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

@media (max-width: 899px) {
  .svc { display: block; }
  .svc-tab { width: 100%; margin-bottom: 8px; background: #fff; border-color: var(--line); }
  .svc-tab .chev { transform: rotate(0); }
  .svc-tab[aria-selected="true"] { border-radius: var(--radius-lg); background: var(--forest); }
  .svc-tab[aria-selected="true"] .chev { transform: rotate(180deg); }
  .svc-panel { position: relative; top: auto; margin: -4px 0 16px; border-radius: var(--radius-lg); padding: 24px 20px; }
  .svc-panel::after { width: 180px; height: 180px; right: -90px; top: -90px; }
}

/* ---------- Contacto ---------- */
.contact-panel {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--forest); color: var(--cream); border-radius: var(--radius-xl);
  padding: clamp(32px, 5vw, 64px);
  display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 64px); align-items: start;
}
.contact-panel::before { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; left: -220px; bottom: -300px; background: var(--forest-soft); z-index: -1; }
.contact-info h2 { color: #fff; }
.contact-person { margin-top: 20px; font-size: 1.0625rem; line-height: 1.5; }
.contact-person strong { font-family: var(--font-head); font-size: 1.25rem; color: #fff; }
.contact-person .muted { color: rgba(247,245,239,.7); font-size: .9375rem; }
.contact-list { margin-top: 24px; display: grid; gap: 12px; }
.contact-list li { display: flex; align-items: center; gap: 12px; }
.contact-list .icon { width: 22px; height: 22px; color: var(--green); }
.contact-list a { font-weight: 600; border-bottom: 1px solid transparent; transition: border-color .2s; }
.contact-list a:hover { border-color: var(--green); }
.contact-info .btn-wa { margin-top: 28px; }

.contact-form { background: #fff; color: var(--ink); border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 36px); box-shadow: var(--shadow-md); display: grid; gap: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-family: var(--font-head); font-weight: 600; font-size: .9rem; color: var(--ink-2); }
.field label span { color: var(--green-text); }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: #FBFBF8;
  border: 1.5px solid var(--sage-deep); border-radius: 14px; padding: 12px 14px;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:hover, .field textarea:hover { border-color: #B9D2A6; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(106,191,46,.22); background: #fff; }
.field input.is-invalid, .field textarea.is-invalid { border-color: #C9482E; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form .btn { justify-self: start; margin-top: 4px; }
.contact-form .btn[disabled] { opacity: .7; cursor: progress; }
.form-status:empty { display: none; }
.form-status { border-radius: 14px; padding: 14px 16px; font-size: .9375rem; line-height: 1.5; display: grid; gap: 10px; justify-items: start; }
.form-status.ok { background: var(--sage); color: var(--forest); }
.form-status.err { background: #FFF1EC; color: #7A2E1D; }
.form-status .btn { margin: 0; }

@media (max-width: 899px) {
  .contact-panel { grid-template-columns: 1fr; padding: 28px 20px; border-radius: var(--radius-lg); }
  .field-row { grid-template-columns: 1fr; }
  .contact-form .btn { justify-self: stretch; }
}

/* ---------- Footer ---------- */
.site-footer { padding: 40px 0 110px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 24px 48px; align-items: center; }
.footer-brand img { width: 110px; }
.footer-brand p { margin-top: 10px; color: var(--ink-3); font-size: .9rem; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-family: var(--font-head); font-weight: 600; font-size: .9375rem; color: var(--ink-2); transition: color .2s; }
.footer-links a:hover { color: var(--forest); }
.copy { grid-column: 1 / -1; color: var(--ink-3); font-size: .875rem; padding-top: 16px; border-top: 1px solid var(--line); }
@media (max-width: 899px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: #fff;
  display: grid; place-items: center; box-shadow: 0 10px 28px rgba(37,211,102,.4);
  transition: transform .2s var(--ease), box-shadow .2s;
}
.wa-float .icon { width: 30px; height: 30px; stroke: none; }
.wa-float:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 14px 32px rgba(37,211,102,.5); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
@media print { .wa-float, .site-header { display: none; } }
