/* Paleta de marca: negro, verde del logo y blanco */
:root {
  --black: #000;
  --ink: #111414;
  --green: #50e3c1;
  --white: #fff;
  --muted: #4d5654;
  --soft: #f3f6f5;
  --line: #dde4e2;
  --radius: 4px;
  --header: 84px;
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.65; color: var(--ink); background: var(--white); overflow-wrap: break-word; }
img, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .6em; letter-spacing: -.015em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.9rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1rem; margin-top: 1.4em; }
p { margin: 0 0 1em; }
address { font-style: normal; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.narrow { max-width: 780px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 100; background: var(--green); color: var(--black); padding: 10px 16px; font-weight: 700; }
.skip:focus { top: 12px; }

/* Botones */
.btn { display: inline-block; font: 700 1rem/1.2 var(--font); text-decoration: none; text-align: center; padding: 15px 26px; border: 2px solid transparent; border-radius: var(--radius); cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.btn-small { padding: 9px 16px; font-size: .9rem; }
.btn-green { background: var(--green); color: var(--black); }
.btn-green:hover { background: var(--white); }
.btn-black { background: var(--black); color: var(--white); }
.btn-black:hover { background: var(--green); color: var(--black); border-color: var(--black); }
.btn-ghost { border-color: rgba(255,255,255,.7); color: var(--white); }
.btn-ghost:hover { background: var(--white); color: var(--black); }
.btn[disabled] { opacity: .6; cursor: progress; }
.text-link { font-weight: 700; text-decoration: underline; text-decoration-color: var(--green); text-decoration-thickness: 3px; text-underline-offset: 6px; }

/* Cabecera */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--black); color: var(--white); }
.bar { display: flex; align-items: center; justify-content: space-between; min-height: var(--header); gap: 20px; }
.brand img { width: 108px; }
.menu { display: flex; align-items: center; gap: 28px; }
.nav, .langs { display: flex; list-style: none; margin: 0; padding: 0; }
.nav { gap: 26px; }
.nav a { text-decoration: none; padding: 8px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current] { border-bottom-color: var(--green); color: var(--green); }
.langs { border: 1px solid #3a403f; border-radius: var(--radius); }
.langs a { display: block; padding: 5px 10px; font-size: .8rem; font-weight: 700; text-decoration: none; }
.langs a:hover { color: var(--green); }
.langs a[aria-current] { background: var(--green); color: var(--black); }
.menu-btn { display: none; background: none; border: 0; color: var(--white); width: 44px; height: 44px; cursor: pointer; }
.menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 26px; height: 2px; background: currentColor; margin: 0 auto; content: ""; }
.menu-icon::before { transform: translateY(-8px); }
.menu-icon::after { transform: translateY(6px); }

/* Portadas */
.hero { position: relative; isolation: isolate; background: var(--black); color: var(--white); display: flex; align-items: flex-end; overflow: hidden; }
.hero-home { min-height: min(760px, calc(100svh - var(--header))); }
.hero-page { min-height: 430px; }
.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(0,0,0,.88) 0%, rgba(0,0,0,.68) 50%, rgba(0,0,0,.35) 100%); }
.hero-content { padding: 80px 0 72px; }
.hero h1 { max-width: 17em; }
.hero-sub { max-width: 40em; font-size: 1.15rem; color: #e8eeec; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 0; }
.video-toggle { position: absolute; right: 20px; bottom: 20px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.6); background: rgba(0,0,0,.55); cursor: pointer; }
.video-toggle[hidden] { display: none; }
.video-toggle::before { content: ""; position: absolute; left: 14px; top: 12px; width: 3px; height: 14px; border-inline: 0; background: var(--white); box-shadow: 7px 0 0 var(--white); }
.video-toggle.paused::before { left: 15px; width: 0; height: 0; background: none; box-shadow: none; border-top: 7px solid transparent; border-bottom: 7px solid transparent; border-left: 11px solid var(--white); }

.eyebrow { display: flex; align-items: center; gap: 14px; text-transform: uppercase; letter-spacing: .16em; font-size: .8rem; font-weight: 700; margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 10px; height: 10px; background: var(--green); transform: rotate(37deg); flex: none; }

/* Cifras */
.facts { background: var(--green); color: var(--black); }
.facts ul { list-style: none; padding: 26px 0; margin-block: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.facts li { display: flex; align-items: center; gap: 14px; line-height: 1.3; }
.facts strong { font-size: 2.4rem; letter-spacing: -.03em; line-height: 1; }

/* Secciones */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.soft { background: var(--soft); }
.dark { background: var(--black); color: var(--white); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head p:last-child { color: var(--muted); font-size: 1.15rem; }
.diamonds { list-style: none; padding: 0; margin: 0 0 1.5em; }
.diamonds > li { position: relative; padding-left: 26px; margin-bottom: 8px; }
.diamonds > li::before { content: ""; position: absolute; left: 3px; top: .55em; width: 9px; height: 9px; background: var(--green); transform: rotate(37deg); }
.pillar .diamonds > li::before, .service .diamonds > li::before { background: var(--black); outline: 2px solid var(--green); }

.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.pillar { border: 1px solid var(--line); border-top: 6px solid var(--green); display: flex; flex-direction: column; }
.pillar > img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.pillar-body { padding: 30px; display: flex; flex-direction: column; flex: 1; }
.pillar-body .btn { margin-top: auto; align-self: flex-start; }
.pillar li a { text-decoration: none; }
.pillar li a:hover { text-decoration: underline; }

.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.framed { border-bottom: 6px solid var(--green); width: 100%; }
.why > li { margin-bottom: 22px; padding-left: 30px; }
.why h3 { font-size: 1.15rem; margin-bottom: .3em; color: var(--green); }
.why p { color: #cfd6d4; margin: 0; }

.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.steps li { counter-increment: step; background: var(--white); padding: 28px 24px; border-top: 4px solid var(--black); }
.steps li::before { content: "0" counter(step); display: inline-block; background: var(--green); font-weight: 700; padding: 2px 10px; margin-bottom: 18px; }
.steps p { margin: 0; color: var(--muted); }

.cta { background: var(--green); color: var(--black); padding: 64px 0; }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 36px; flex-wrap: wrap; }
.cta-inner > div:first-child { max-width: 620px; }
.cta p { margin: 0; }
.cta-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-phone { font-weight: 700; font-size: 1.15rem; }

/* Servicios */
.jump { background: var(--ink); color: var(--white); }
.jump ul { list-style: none; padding: 18px 0; margin-block: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.jump a { display: block; border: 1px solid #454d4b; border-radius: 40px; padding: 6px 15px; font-size: .9rem; text-decoration: none; }
.jump a:hover { border-color: var(--green); color: var(--green); }
.service { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 48px 0; border-top: 1px solid var(--line); }
.service.flip .service-img { order: 2; }
.service-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-bottom: 6px solid var(--green); }
.gain { border-left: 4px solid var(--green); padding: 4px 0 4px 16px; }
details { border-bottom: 1px solid var(--line); padding: 18px 0; }
summary { cursor: pointer; font-weight: 700; }
summary::marker { color: var(--green); }
details p { margin: 12px 0 0; color: var(--muted); }

/* Contacto */
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.contact-info h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .16em; border-top: 3px solid var(--green); padding-top: 14px; margin-top: 28px; }
.contact-info h2:first-child { margin-top: 0; }
.big-link { font-size: 1.25rem; font-weight: 700; text-decoration: none; overflow-wrap: anywhere; }
.big-link:hover { text-decoration: underline; }
.form-card { background: var(--soft); padding: clamp(22px, 4vw, 40px); border-top: 6px solid var(--black); }
.hint { font-size: .9rem; color: var(--muted); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; min-width: 0; }
.field label { display: block; font-size: .9rem; font-weight: 700; margin-bottom: 5px; }
.field input, .field select, .field textarea { width: 100%; font: 1rem var(--font); color: var(--ink); background: var(--white); border: 1px solid #858f8c; border-radius: var(--radius); padding: 11px 12px; }
.field textarea { resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 20px; font-size: .92rem; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--black); flex: none; }
.trap { position: absolute; left: -9999px; }
.status { margin-top: 16px; font-weight: 700; }
.status:empty { display: none; }
.status.ok, .status.fail { padding: 14px 16px; background: var(--white); border-left: 5px solid var(--green); }
.status.fail { border-left-color: #c0392b; }
.status a { display: inline-block; margin-top: 6px; }
.map-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 12px; padding-bottom: 20px; }
.map-head h2 { margin: 0; }
.map { width: 100%; height: 440px; border: 0; background: var(--soft); border-bottom: 6px solid var(--green); }

/* Privacidad y 404 */
.page-title { background: var(--black); color: var(--white); padding: 64px 0 40px; }
.page-title.tall { min-height: 55vh; padding-top: 120px; }
.prose h2 { font-size: 1.25rem; margin-top: 1.6em; }

/* Pie */
.site-footer { background: var(--black); color: #cfd6d4; padding: 64px 0 28px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .8fr 1.1fr 1.2fr; gap: 36px; }
.footer-logo { width: 140px; margin-bottom: 18px; }
.site-footer h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .16em; color: var(--green); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; overflow-wrap: anywhere; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--green); text-decoration: underline; }
.legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; border-top: 1px solid #2a2f2e; margin-top: 40px; padding-top: 20px; font-size: .82rem; color: #9aa3a1; }
.legal p { margin: 0; }
.fab { display: none; }

@media (max-width: 960px) {
  .menu-btn { display: block; }
  .menu { display: none; position: absolute; left: 0; right: 0; top: var(--header); background: var(--black); flex-direction: column; align-items: flex-start; padding: 20px; gap: 20px; border-top: 1px solid #2a2f2e; border-bottom: 4px solid var(--green); max-height: calc(100vh - var(--header)); overflow-y: auto; }
  .menu.open { display: flex; }
  .nav { flex-direction: column; gap: 8px; }
  .langs a { padding: 9px 16px; }
  /* Sin JavaScript el menú permanece visible */
  html:not(.js) .site-header { position: static; }
  html:not(.js) .menu { display: flex; position: static; }
  html:not(.js) .menu-btn { display: none; }
  html:not(.js) .bar { flex-direction: column; padding: 14px 0; }
  .pillars, .split, .service, .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .service.flip .service-img { order: 0; }
  .steps, .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .facts ul, .steps, .footer-grid, .row { grid-template-columns: minmax(0, 1fr); }
  .facts ul { gap: 14px; }
  .facts strong { min-width: 2.2em; font-size: 2rem; }
  .hero-content { padding: 56px 0 72px; }
  .pillar-body { padding: 22px; }
  .map { height: 340px; }
  .site-footer { padding-bottom: 92px; }
  .fab { display: grid; place-items: center; position: fixed; right: 16px; bottom: 16px; z-index: 40; width: 54px; height: 54px; border-radius: 50%; background: var(--green); color: var(--black); box-shadow: 0 4px 18px rgba(0,0,0,.4); }
  .video-toggle { right: 14px; bottom: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
