/* =========================================================
   DobleNueveIT — estilos
   ========================================================= */

:root {
  /* Marca */
  --green: #00eba0;        /* verde del logo: acentos sobre fondo oscuro */
  --green-btn: #00805a;    /* verde para botones con texto blanco */
  --green-btn-hover: #006747;
  --link: #00764f;         /* links sobre blanco */
  --gold: #f4b731;
  --gold-ink: #a87612;

  /* Neutros */
  --ink: #0b2420;          /* texto principal (verde petróleo muy oscuro) */
  --ink-2: #3c524c;        /* texto secundario */
  --ink-3: #6b7f79;
  --deep: #0a2420;         /* fondos oscuros */
  --deep-2: #0f3a32;
  --bg: #ffffff;
  --bg-gray: #f2f5f4;
  --line: #d3dcd9;
  --line-soft: #e6ecea;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --container: 1200px;
  --header-h: 84px;
  --radius: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--link); text-decoration: none; }
h1, h2, h3, h4 { margin: 0 0 .5em; font-weight: 400; color: inherit; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1.12; letter-spacing: -0.015em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.18; letter-spacing: -0.01em; }
h3 { font-size: 1.3rem; line-height: 1.3; }
p { margin: 0 0 1em; }
.gold { color: var(--gold); }

:focus-visible { outline: 2px solid var(--green-btn); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 40px; }
@media (max-width: 760px) { .container { padding: 0 16px; } }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 6px; }
.skip-link:focus { top: 12px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 24px; border-radius: 999px; border: 1.5px solid transparent;
  font: 600 16px/1.2 var(--font); cursor: pointer; white-space: nowrap;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.btn-primary { background: var(--green-btn); color: #fff; }
.btn-primary:hover { background: var(--green-btn-hover); }
.btn-outline { border-color: var(--green-btn); color: var(--green-btn); background: transparent; }
.btn-outline:hover { background: var(--green-btn); color: #fff; }
.btn-ghost-light { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-ghost-light:hover { background: #fff; color: var(--ink); }
.btn-sm { padding: 10px 20px; font-size: 15px; }
.btn[disabled] { opacity: .6; cursor: progress; }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--link); }
.link-arrow::after {
  content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 1.6px 1.6px 0 0;
  transform: rotate(45deg); transition: transform .2s ease;
}
.link-arrow:hover { text-decoration: underline; }
.link-arrow:hover::after { transform: translateX(3px) rotate(45deg); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; height: var(--header-h); background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 100%; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.brand img { width: 56px; height: auto; }
.brand-name { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; color: var(--link); }
.brand .gold { color: var(--gold-ink); }
.brand-light .brand-name { color: var(--green); }
.brand-light .gold { color: var(--gold); }

.nav { display: flex; align-items: center; gap: 36px; }
.nav a:not(.btn) { color: var(--ink); font-size: 16px; }
.nav a:not(.btn):hover { color: var(--link); }

.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; position: relative; padding: 0; }
.nav-toggle span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--ink); transition: transform .2s ease, opacity .2s ease; }
.nav-toggle span:nth-child(1) { top: 14px; } .nav-toggle span:nth-child(2) { top: 21px; } .nav-toggle span:nth-child(3) { top: 28px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  :root { --header-h: 68px; }
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 16px 24px; background: #fff; border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 15px 0; border-bottom: 1px solid var(--line-soft); }
  .nav-cta { margin-top: 18px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; color: #fff; background: var(--deep); }
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(55% 80% at 78% 50%, rgba(0, 235, 160, .22), transparent 70%),
    radial-gradient(30% 40% at 78% 50%, rgba(244, 183, 49, .16), transparent 70%),
    linear-gradient(100deg, #071a17 0%, #0a2420 45%, #0f3a32 100%);
}
.hero-bg::before {
  content: ""; position: absolute; inset: 0; opacity: .35;
  background-image: radial-gradient(rgba(255,255,255,.18) 1px, transparent 1.2px);
  background-size: 28px 28px;
  mask-image: linear-gradient(90deg, transparent 35%, #000 75%);
  -webkit-mask-image: linear-gradient(90deg, transparent 35%, #000 75%);
}
.hero-mark {
  position: absolute; right: max(2vw, calc((100vw - var(--container)) / 2 - 20px)); top: 50%;
  width: min(560px, 46vw); translate: 0 -50%;
  filter: drop-shadow(0 0 40px rgba(0, 235, 160, .35));
}
.hero-inner { position: relative; padding-block: clamp(80px, 11vw, 150px); }
.hero-eyebrow { font-size: 18px; font-weight: 500; margin-bottom: 18px; color: var(--green); }
.hero h1 { max-width: 15ch; margin-bottom: 22px; }
.hero-lead { font-size: 18px; max-width: 54ch; color: rgba(255,255,255,.88); margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

@media (max-width: 960px) {
  .hero-mark { width: 60vw; right: -22vw; top: auto; bottom: -4%; translate: none; opacity: .22; }
}

/* Subnavegación */
.subnav { border-bottom: 1px solid var(--line); background: #fff; }
.subnav-inner { display: flex; gap: 40px; overflow-x: auto; scrollbar-width: none; }
.subnav-inner::-webkit-scrollbar { display: none; }
.subnav a { padding: 26px 0; color: var(--ink-3); white-space: nowrap; border-bottom: 2px solid transparent; }
.subnav a:first-child { color: var(--ink); font-weight: 600; }
.subnav a:hover { color: var(--ink); border-bottom-color: var(--green-btn); }
@media (max-width: 760px) { .subnav-inner { gap: 26px; } .subnav a { padding: 18px 0; } }

/* ---------- Secciones ---------- */
.section { padding: clamp(64px, 8vw, 104px) 0; }
.section-tight { padding-top: 0; }
.section-gray { background: var(--bg-gray); }

/* Intro + valores */
.intro { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.intro-head h2 { margin-bottom: 40px; }
.rule { display: block; width: 120px; height: 1px; background: var(--line); }
.intro-lead { font-size: 21px; line-height: 1.45; color: var(--ink); margin-bottom: 44px; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.value-icon { width: 34px; height: 34px; margin-bottom: 14px; fill: none; stroke: var(--green-btn); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.value h3 { font-size: 1.15rem; }
@media (max-width: 900px) {
  .intro { grid-template-columns: 1fr; gap: 24px; }
  .intro-head h2 { margin-bottom: 24px; }
}
@media (max-width: 520px) { .values { grid-template-columns: 1fr; gap: 20px; } .value { display: flex; align-items: center; gap: 14px; } .value-icon { margin: 0; } .value h3 { margin: 0; } }

/* Encabezado de listas (título + imagen + línea) */
.list-head {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 48px 0 40px; border-bottom: 1px solid var(--line); margin-bottom: 48px;
}
.list-head h2 { margin: 0; }
.list-head-img { width: 220px; height: auto; }
.list-head-plain { padding-top: 0; }
@media (max-width: 600px) { .list-head-img { width: 120px; } .list-head { padding-top: 16px; } }

/* Servicios */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px 48px; }
.service h3 { margin-bottom: 12px; }
.service p { color: var(--ink-2); margin-bottom: 18px; }
@media (max-width: 960px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .services { grid-template-columns: 1fr; gap: 40px; } }

/* ---------- Banda oscura con tarjeta ---------- */
.band {
  position: relative; color: #fff; padding: clamp(72px, 9vw, 110px) 0;
  background:
    radial-gradient(40% 70% at 15% 30%, rgba(0, 235, 160, .14), transparent 70%),
    linear-gradient(180deg, #0a2420, #0f3a32);
}
.band::before {
  content: ""; position: absolute; inset: 0; opacity: .25; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.2) 1px, transparent 1.2px); background-size: 28px 28px;
}
.band .container { position: relative; }
.band-head { text-align: center; margin-bottom: 56px; }
.band-head p { color: rgba(255,255,255,.85); font-size: 18px; margin: 0; }
.feature-card {
  display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: center;
  background: #fff; color: var(--ink); border-radius: var(--radius); padding: 48px;
}
.feature-art {
  display: grid; place-items: center; aspect-ratio: 16 / 9; border-radius: 4px;
  background: linear-gradient(180deg, #f6f9f8, #e8efed);
}
.feature-art svg { width: 62%; height: auto; }
.feature-art .doc { fill: #fff; stroke: #c9d6d2; stroke-width: 1.5; }
.feature-art .bar { fill: #dfe8e5; }
.feature-art .ok { fill: none; stroke: var(--green-btn); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.feature-art .ok-bg { fill: #e3f6ee; }
.feature-art .warn { fill: var(--gold); }
.feature-art .lens { fill: rgba(255,255,255,.6); stroke: var(--ink); stroke-width: 6; }
.feature-art .handle { stroke: var(--ink); stroke-width: 9; stroke-linecap: round; }
.feature-copy h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.2; margin-bottom: 14px; }
.feature-copy p { font-size: 17px; color: var(--ink-2); margin-bottom: 28px; }
@media (max-width: 860px) {
  .feature-card { grid-template-columns: 1fr; gap: 28px; padding: 24px; }
}

/* ---------- Proceso ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.step { border-top: 3px solid var(--green-btn); padding-top: 22px; }
.step:nth-child(4) { border-top-color: var(--gold); }
.step-num { display: block; font-size: 14px; font-weight: 600; color: var(--ink-3); margin-bottom: 10px; letter-spacing: .04em; }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--ink-2); margin: 0; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Modalidades ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.plan { background: #fff; border-radius: var(--radius); padding: 36px 32px; display: flex; flex-direction: column; }
.plan-tag { font-size: 14px; font-weight: 600; color: var(--gold-ink); margin-bottom: 14px; }
.plan h3 { margin-bottom: 12px; }
.plan p:not(.plan-tag) { color: var(--ink-2); margin-bottom: 24px; }
.plan .link-arrow { margin-top: auto; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } }

/* ---------- Contacto ---------- */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: start; }
.contact-lead { font-size: 19px; color: var(--ink-2); margin-bottom: 28px; }
.contact-points { list-style: none; padding: 0; margin: 0 0 36px; display: grid; gap: 12px; }
.contact-points li { display: flex; gap: 12px; align-items: center; }
.contact-points li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green-btn); flex: none; }
.social-link { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); font-weight: 600; padding: 14px 20px; border: 1px solid var(--line); border-radius: 999px; transition: border-color .2s; }
.social-link span { color: var(--ink-3); font-weight: 400; }
.social-link:hover { border-color: var(--green-btn); }
.social-link svg, .footer-social svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.social-link svg .fill, .footer-social svg .fill { fill: currentColor; stroke: none; }

.contact-form { display: grid; gap: 22px; padding: 40px; border-radius: var(--radius); background: var(--bg-gray); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 15px; font-weight: 500; }
.field .opt { color: var(--ink-3); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; font: 400 16px/1.4 var(--font); color: var(--ink);
  background: #fff; border: 1px solid #b9c6c2; border-radius: 6px; padding: 12px 14px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field select {
  appearance: none; padding-right: 42px;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 22px) 52%, calc(100% - 17px) 52%; background-size: 5px 5px; background-repeat: no-repeat;
}
.field input::placeholder { color: var(--ink-3); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green-btn); box-shadow: 0 0 0 3px rgba(0, 128, 90, .18); }
.field .invalid { border-color: #c0392b; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; font-size: 15px; }
.form-status:empty { display: none; }
.form-status.ok { color: var(--green-btn); font-weight: 500; }
.form-status.error { color: #b03a2e; }
.contact-form .btn { justify-self: start; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; gap: 40px; } }
@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; }
  .contact-form { padding: 24px 18px; }
  .contact-form .btn { justify-self: stretch; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--deep); color: rgba(255,255,255,.75); padding: 64px 0 28px; font-size: 15px; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer-brand p { margin: 16px 0 0; }
.footer-col { display: grid; gap: 10px; align-content: start; }
.footer-col h4 { color: #fff; font-size: 15px; font-weight: 600; margin: 0 0 6px; }
.footer-col a { color: rgba(255,255,255,.75); }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.15); }
.footer-social { color: #fff; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); transition: border-color .2s, color .2s; }
.footer-social:hover { border-color: var(--green); color: var(--green); }
@media (max-width: 760px) { .footer-inner { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
