/* =========================================================
   Consultorías Carmiol — estilos del sitio
   ========================================================= */
:root {
  --teal-950: #071f25;
  --teal-900: #0a2a31;
  --teal-800: #123e47;
  --teal-700: #1a5059;
  --teal-600: #24646e;
  --river: #2f9a94;
  --river-soft: #8fd3cc;
  --sand: #e9dcbc;
  --sand-200: #f1e8d3;
  --sand-50: #faf7ef;
  --white: #ffffff;
  --ink: #142629;
  --text: #3b4d51;
  --muted: #6a7c80;
  --line: #e6dfcf;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 18px 40px -22px rgba(10, 42, 49, .35);
  --shadow-sm: 0 6px 18px -10px rgba(10, 42, 49, .3);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --header-h: 78px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--teal-700); }
h1, h2, h3, h4 { color: var(--ink); margin: 0; line-height: 1.15; }
h1, h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; }
h3 { font-size: 1.08rem; font-weight: 600; }
p { margin: 0; }
ul { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--river); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--teal-900); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 16px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px; border: 1px solid transparent;
  font: 600 15px/1.2 var(--sans); text-decoration: none; cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--teal-800); color: #fff; }
.btn-primary:hover { background: var(--teal-700); box-shadow: var(--shadow-sm); }
.btn-sand { background: var(--sand); color: var(--teal-900); }
.btn-sand:hover { background: var(--sand-200); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--teal-700); color: var(--teal-800); }
.btn-ghost-light { border-color: rgba(255,255,255,.3); color: #fff; background: transparent; }
.btn-ghost-light:hover { border-color: var(--sand); color: var(--sand); }
.btn-whatsapp { background: #1f9d55; color: #fff; }
.btn-whatsapp:hover { background: #18864a; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Encabezado ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 8px 24px -18px rgba(10,42,49,.4); }
.nav-wrap { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex: none; }
.brand img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; }
.brand strong { display: block; font-family: var(--serif); font-size: 21px; font-weight: 600; line-height: 1.1; letter-spacing: .01em; }
.brand small { display: block; font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--river); font-weight: 600; margin-top: 2px; }

.nav > ul { list-style: none; display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; }
.nav > ul > li { position: relative; }
.nav > ul > li > a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 14px; border-radius: 999px;
  font-size: 15px; font-weight: 500; color: var(--ink);
  transition: color .2s ease, background .2s ease;
}
.nav > ul > li > a:hover, .nav > ul > li > a[aria-current="page"], .nav .has-sub.current > a { color: var(--teal-700); background: var(--sand-50); }
.nav .nav-cta { background: var(--teal-800); color: #fff !important; padding: 11px 20px; margin-left: 8px; }
.nav .nav-cta:hover, .nav .nav-cta[aria-current="page"] { background: var(--teal-700) !important; }
.has-sub { display: flex; align-items: center; }
.has-sub > a::after {
  content: ""; width: 7px; height: 7px; margin-left: 2px; margin-top: -3px;
  border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg);
}
.sub-toggle { display: none; }
.sub {
  list-style: none; position: absolute; top: calc(100% + 10px); left: 50%;
  width: 330px; padding: 10px; transform: translate(-50%, 8px);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.sub::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.sub a {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--radius-sm);
  font-size: 14.5px; color: var(--ink); transition: background .15s ease;
}
.sub a:hover, .sub a[aria-current="page"] { background: var(--sand-50); color: var(--teal-700); }
.sub svg { width: 20px; height: 20px; flex: none; stroke: var(--river); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sub .sub-all { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; font-weight: 600; color: var(--teal-700); }

.nav-toggle {
  display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 12px;
  background: #fff; cursor: pointer; padding: 0; position: relative;
}
.nav-toggle span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s ease, opacity .2s ease, top .25s ease; }
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 22px; }
.nav-toggle span:nth-child(3) { top: 29px; }
.nav-open .nav-toggle span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

/* ---------- Secciones ---------- */
.section { padding: 96px 0; }
.section-sand { background: var(--sand-50); }
.section-dark { background: var(--teal-900); color: #c9d8d8; }
.section-dark h2, .section-dark h3 { color: #fff; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--river);
  margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 26px; height: 1.5px; background: currentColor; }
.section-dark .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: var(--sand); }
.section-head { max-width: 680px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow::after { content: ""; width: 26px; height: 1.5px; background: currentColor; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3rem); }
.section-head p { margin-top: 16px; font-size: 1.07rem; color: var(--muted); }
.section-dark .section-head p { color: #a9bfc0; }

/* ---------- Hero (inicio) ---------- */
.hero {
  position: relative; overflow: hidden; color: #c9d8d8;
  background:
    radial-gradient(900px 520px at 88% 0%, rgba(233,220,188,.14), transparent 60%),
    radial-gradient(800px 500px at 0% 100%, rgba(47,154,148,.22), transparent 60%),
    linear-gradient(160deg, var(--teal-800), var(--teal-950) 75%);
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.25fr .9fr; gap: 56px; align-items: center; padding-top: 96px; padding-bottom: 140px; }
.hero h1 { color: #fff; font-size: clamp(2.6rem, 5.6vw, 4.6rem); line-height: 1.04; }
.hero h1 em { color: var(--sand); font-style: italic; font-weight: 500; }
.hero .lead { margin-top: 24px; max-width: 56ch; font-size: clamp(1.02rem, 1.5vw, 1.15rem); line-height: 1.75; color: #b6caca; }
.hero .btn-row { margin-top: 36px; }
.hero-card {
  background: rgba(255,255,255,.05); border: 1px solid rgba(233,220,188,.2);
  border-radius: 22px; padding: 30px; backdrop-filter: blur(4px);
}
.hero-card-head { display: flex; align-items: center; gap: 14px; padding-bottom: 20px; border-bottom: 1px solid rgba(233,220,188,.18); }
.hero-card-head .hero-logo { width: 132px; height: 132px; flex: none; margin: -12px -6px -12px -14px; }
.hero-card-head strong { display: block; color: #fff; font-family: var(--serif); font-size: 22px; font-weight: 600; line-height: 1.1; }
.hero-card-head span { font-size: 13px; color: #9fb6b6; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 18px; margin-top: 22px; }
.stat b { display: block; font-family: var(--serif); font-size: 2.7rem; line-height: 1; font-weight: 600; color: var(--sand); }
.stat span { display: block; margin-top: 6px; font-size: 13.5px; line-height: 1.45; color: #a9bfc0; }
.waves { position: absolute; left: 0; right: 0; bottom: -1px; height: 120px; pointer-events: none; }
.waves svg { position: absolute; bottom: 0; width: 200%; height: 100%; }
.waves .w1 { animation: drift 22s linear infinite; }
.waves .w2 { animation: drift 32s linear infinite reverse; }
@keyframes drift { to { transform: translateX(-50%); } }

/* ---------- Hero interno ---------- */
.page-hero {
  position: relative; overflow: hidden; color: #b6caca;
  background:
    radial-gradient(700px 400px at 90% 0%, rgba(233,220,188,.13), transparent 60%),
    linear-gradient(160deg, var(--teal-800), var(--teal-950) 80%);
  padding: 72px 0 110px;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; font-size: clamp(2.3rem, 5vw, 3.8rem); max-width: 20ch; }
.page-hero p.lead { margin-top: 18px; max-width: 62ch; font-size: 1.1rem; line-height: 1.7; }
.breadcrumb { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; font-size: 13.5px; margin-bottom: 26px; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: rgba(255,255,255,.35); }
.breadcrumb a { color: var(--sand); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb [aria-current] { color: #9fb6b6; }

/* ---------- Tarjetas de servicio ---------- */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-card {
  position: relative; display: flex; flex-direction: column;
  padding: 30px 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line);
  text-decoration: none; color: inherit;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.icon-badge {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--sand-50); border: 1px solid var(--line); margin-bottom: 20px;
  transition: background .25s ease;
}
.icon-badge svg { width: 26px; height: 26px; stroke: var(--teal-700); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.service-card:hover .icon-badge { background: var(--teal-800); border-color: var(--teal-800); }
.service-card:hover .icon-badge svg { stroke: var(--sand); }
.service-card h3 { font-size: 1.15rem; }
.service-card p { margin-top: 10px; font-size: 15px; color: var(--muted); flex: 1; }
.more { margin-top: 20px; display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 600; color: var(--teal-700); }
.more::after { content: "→"; transition: transform .2s ease; }
.service-card:hover .more::after { transform: translateX(4px); }
.service-card.span-2 { grid-column: span 2; }
.service-card.featured { grid-column: span 2; background: var(--teal-800); border-color: var(--teal-800); }
.service-card.featured h3 { color: #fff; font-family: var(--serif); font-size: 1.9rem; font-weight: 600; }
.service-card.featured p { color: #b6caca; font-size: 16px; max-width: 54ch; }
.service-card.featured .icon-badge { background: rgba(233,220,188,.1); border-color: rgba(233,220,188,.25); }
.service-card.featured .icon-badge svg { stroke: var(--sand); }
.service-card.featured .more { color: var(--sand); }

/* ---------- Intro / split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split h2 { font-size: clamp(2rem, 4vw, 2.9rem); }
.split p + p { margin-top: 16px; }
.split .prose p { font-size: 1.05rem; }
.check-list { list-style: none; display: grid; gap: 12px; margin-top: 28px; }
.check-list li { position: relative; padding-left: 34px; color: var(--ink); }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--sand-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f9a94' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/14px no-repeat;
  border: 1px solid var(--line);
}
.panel {
  position: relative; border-radius: 22px; padding: 40px;
  background: linear-gradient(160deg, var(--teal-800), var(--teal-950));
  color: #b6caca; overflow: hidden;
}
.panel h3 { color: #fff; font-family: var(--serif); font-size: 1.8rem; font-weight: 600; }
.panel p { margin-top: 12px; }
.panel .topo { position: absolute; right: -60px; bottom: -60px; width: 320px; opacity: .18; pointer-events: none; }

/* ---------- Pasos ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step { position: relative; padding: 28px 24px; border-radius: var(--radius); background: rgba(255,255,255,.04); border: 1px solid rgba(233,220,188,.16); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  display: block; font-family: var(--serif); font-size: 2.4rem; font-weight: 600; line-height: 1; color: var(--sand); margin-bottom: 18px;
}
.step p { margin-top: 8px; font-size: 15px; color: #a9bfc0; }
.section:not(.section-dark) .step { background: #fff; border-color: var(--line); }
.section:not(.section-dark) .step::before { color: var(--river); }
.section:not(.section-dark) .step p { color: var(--muted); }

/* ---------- Valores / chips ---------- */
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.value { padding: 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.value .icon-badge { margin-bottom: 16px; }
.value p { margin-top: 8px; font-size: 15px; color: var(--muted); }

.inst-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.inst {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px; background: #fff; border: 1px solid var(--line);
  font-weight: 500; color: var(--ink); font-size: 15px;
}
.inst::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--river); }

/* ---------- Árbol de logros ---------- */
.tree-layout { display: grid; grid-template-columns: 1fr 300px 1fr; gap: 40px; align-items: center; }
.tree-art svg { width: 100%; height: auto; }
.tree-col h3 { font-family: var(--serif); font-size: 1.7rem; font-weight: 600; }
.tree-col .tag { display: inline-block; font-size: 11.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--river); margin-bottom: 8px; }
.tree-col > p { margin-top: 8px; color: var(--muted); }
.tree-col ul { list-style: none; margin-top: 18px; display: grid; gap: 10px; }
.tree-col li { padding: 12px 16px; border-radius: 12px; background: #fff; border: 1px solid var(--line); color: var(--ink); font-size: 15px; }
.tree-col li b { font-family: var(--serif); font-size: 1.6rem; color: var(--teal-700); margin-right: 8px; }
.tree-col.right { text-align: left; }

/* ---------- Página de servicio ---------- */
.service-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: start; }
.content h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-top: 52px; margin-bottom: 18px; }
.content h2:first-child { margin-top: 0; }
.content > p { font-size: 1.05rem; }
.content > p + p { margin-top: 14px; }
.who-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.who { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 12px; background: var(--sand-50); border: 1px solid var(--line); color: var(--ink); font-size: 15px; }
.who::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--river); flex: none; }
.content .steps { grid-template-columns: repeat(2, 1fr); }
.note { margin-top: 36px; padding: 20px 22px; border-left: 3px solid var(--river); background: var(--sand-50); border-radius: 0 12px 12px 0; font-size: 15px; color: var(--text); }

.sidebar { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 22px; }
.side-box { padding: 26px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
.side-box h3 { font-size: 1rem; margin-bottom: 14px; }
.side-links { list-style: none; display: grid; gap: 4px; }
.side-links a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--ink); font-size: 14.5px; }
.side-links a:hover { background: var(--sand-50); color: var(--teal-700); }
.side-links a[aria-current="page"] { background: var(--teal-800); color: #fff; }
.side-links a[aria-current="page"] svg { stroke: var(--sand); }
.side-links svg { width: 18px; height: 18px; flex: none; stroke: var(--river); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.side-cta { background: linear-gradient(160deg, var(--teal-800), var(--teal-950)); border: 0; color: #b6caca; }
.side-cta h3 { color: #fff; font-family: var(--serif); font-size: 1.6rem; font-weight: 600; margin-bottom: 8px; }
.side-cta p { font-size: 14.5px; }
.side-cta .btn { width: 100%; margin-top: 14px; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: 24px; padding: 56px; display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center;
  background: linear-gradient(135deg, var(--teal-800), var(--teal-950)); color: #b6caca; }
.cta-band h2 { color: #fff; font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
.cta-band p { margin-top: 12px; max-width: 54ch; }
.cta-band .topo { position: absolute; right: -40px; top: -60px; width: 380px; opacity: .14; pointer-events: none; }
.cta-band .btn-row { position: relative; }

/* ---------- Contacto ---------- */
.contact-layout { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 48px; align-items: start; }
.contact-cards { display: grid; gap: 14px; }
.contact-card { display: flex; gap: 16px; align-items: flex-start; padding: 20px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); text-decoration: none; color: inherit; transition: border-color .2s ease, box-shadow .2s ease; }
a.contact-card:hover { border-color: var(--river); box-shadow: var(--shadow-sm); }
.contact-card .icon-badge { margin: 0; width: 46px; height: 46px; flex: none; }
.contact-card .icon-badge svg { width: 22px; height: 22px; }
.contact-card small { display: block; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.contact-card strong { display: block; margin-top: 2px; color: var(--ink); font-size: 16px; font-weight: 600; word-break: break-word; }
.contact-card span { display: block; font-size: 14px; color: var(--muted); }

.form-card { padding: 40px; border-radius: 22px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.form-card h2 { font-size: 2.1rem; }
.form-card > p { margin-top: 8px; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 28px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink); }
.field label .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border-radius: 12px; border: 1px solid var(--line); background: var(--sand-50);
  font: 15px/1.4 var(--sans); color: var(--ink); transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--river); background: #fff; box-shadow: 0 0 0 4px rgba(47,154,148,.14); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #c0392b; }
.field .err { display: none; font-size: 13px; color: #c0392b; }
.field.invalid .err { display: block; }
.form-actions { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn:disabled { opacity: .7; cursor: wait; transform: none; }
.form-status:empty { display: none; }
.form-status { margin-top: 18px; padding: 14px 18px; border-radius: 12px; font-size: 15px; line-height: 1.5; }
.form-status.ok { background: #e7f5ee; color: #17603a; border: 1px solid #b9e2cb; }
.form-status.error { background: #fbeceb; color: #9b2c22; border: 1px solid #f0c4bf; }

/* ---------- Pie de página ---------- */
.site-footer { background: var(--teal-950); color: #9fb6b6; padding: 80px 0 0; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1.2fr; gap: 40px; }
.site-footer .brand { color: #fff; }
.site-footer .brand small { color: var(--sand); }
.footer-about { margin-top: 18px; max-width: 34ch; line-height: 1.7; }
.site-footer h4 { color: #fff; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 18px; }
.footer-links { list-style: none; display: grid; gap: 10px; }
.site-footer a { color: #b6caca; text-decoration: none; transition: color .2s ease; }
.site-footer a:hover { color: var(--sand); }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact svg { width: 18px; height: 18px; margin-top: 3px; flex: none; stroke: var(--sand); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.footer-bottom { margin-top: 64px; padding: 22px 76px 26px 0; border-top: 1px solid rgba(255,255,255,.08); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13.5px; }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 40;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: #1f9d55; color: #fff; box-shadow: 0 12px 28px -10px rgba(0,0,0,.45);
  transition: transform .2s ease, background .2s ease;
}
.wa-float:hover { transform: scale(1.06); background: #18864a; }
.wa-float svg { width: 28px; height: 28px; fill: currentColor; }

/* ---------- Animaciones de entrada ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .tree-layout { grid-template-columns: 1fr 1fr; }
  .tree-art { grid-column: 1 / -1; order: -1; max-width: 280px; margin: 0 auto; }
}
@media (max-width: 980px) {
  :root { --header-h: 70px; }
  .site-header { backdrop-filter: none; background: #fff; }
  .nav-toggle { display: block; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    background: #fff; overflow-y: auto; padding: 16px 24px 40px;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
  }
  .nav-open .nav { opacity: 1; visibility: visible; transform: none; }
  .nav-open { overflow: hidden; }
  .nav > ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav > ul > li > a { padding: 16px 12px; font-size: 17px; border-radius: 12px; width: 100%; }
  .has-sub { flex-wrap: wrap; }
  .has-sub > a { flex: 1; width: auto !important; }
  .has-sub > a::after { display: none; }
  .sub-toggle {
    display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer;
  }
  .sub-toggle::before { content: ""; width: 8px; height: 8px; margin-top: -4px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); transition: transform .2s ease, margin .2s ease; }
  .sub-toggle[aria-expanded="true"]::before { transform: rotate(-135deg); margin-top: 4px; }
  .sub {
    position: static; width: 100%; transform: none !important; box-shadow: none; border: 0; padding: 0 0 8px 8px;
    opacity: 1; visibility: visible; display: none; background: transparent;
  }
  .sub::before { display: none; }
  .sub.open { display: block; }
  .nav .nav-cta { margin: 14px 0 0; justify-content: center; padding: 16px; }
  .hero-grid { grid-template-columns: 1fr; padding-top: 64px; padding-bottom: 160px; gap: 44px; }
  .split, .service-layout, .contact-layout { grid-template-columns: 1fr; gap: 40px; }
  .sidebar { position: static; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card.span-2 { grid-column: auto; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .value-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-band { grid-template-columns: 1fr; padding: 44px 36px; }
}
@media (max-width: 640px) {
  .container { padding-left: 16px; padding-right: 16px; }
  .section { padding: 72px 0; }
  .brand strong { font-size: 18px; }
  .brand img { width: 44px; height: 44px; }
  .service-grid, .steps, .content .steps, .value-grid, .who-grid, .form-grid, .footer-grid, .tree-layout { grid-template-columns: 1fr; }
  .service-card.featured { grid-column: auto; }
  .hero-card, .panel { padding: 26px; }
  .hero-card-head .hero-logo { width: 96px; height: 96px; margin: -8px -4px -8px -10px; }
  .form-card { padding: 26px 20px; }
  .cta-band { padding: 36px 24px; }
  .btn-row .btn, .form-actions .btn { width: 100%; }
  .page-hero { padding: 52px 0 96px; }
  .wa-float { right: 16px; bottom: 16px; width: 54px; height: 54px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .waves .w1, .waves .w2 { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}
