:root {
  color-scheme: light;
  --bg: #fff;
  --tint: #f7f8fb;
  --surface: #fff;
  --surface-2: #f1f3f9;
  --line: #e4e7ef;
  --line-2: #cbd0de;
  --ink: #10131c;
  --text: #414859;
  --muted: #626a7e;
  --accent: #4f46e5;
  --accent-2: #7c3aed;
  /* Sobre blanco los botones primarios necesitan el tono oscuro para que el
     texto blanco llegue a 4.5:1: #818cf8 sobre blanco se queda en 2.9:1. */
  --accent-btn: #4338ca;
  --accent-2-btn: #6d28d9;
  --accent-soft: #eef0fe;
  --ok: #047857;
  --warn: #b45309;
  --err: #be123c;
  --shadow: 0 18px 45px -28px rgba(16, 19, 28, .34);
  --r: 14px;
  --r-sm: 10px;
  --wrap: 1180px;
  --ease: cubic-bezier(.22, .8, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { color: var(--ink); line-height: 1.18; margin: 0 0 .5rem; letter-spacing: -.018em; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); letter-spacing: -.03em; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.15rem); }
h3 { font-size: .78rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; color: var(--muted); }
p { margin: 0 0 1rem; }
a { color: var(--accent); }
svg { display: block; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.wrap-narrow { max-width: 820px; }
.muted { color: var(--muted); }
.tiny { font-size: .84rem; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--accent-btn); color: #fff; padding: 12px 18px; border-radius: 0 0 var(--r-sm) 0;
}
.skip:focus { left: 0; }

/* header */
.top {
  position: sticky; top: 0; z-index: 30;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(12px);
}
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; font-weight: 600; }
.brand b { color: var(--accent); }
.brand svg { width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.nav { display: flex; align-items: center; gap: 20px; }
.nav a { color: var(--muted); text-decoration: none; font-size: .92rem; font-weight: 500; }
.nav a:hover { color: var(--ink); }
.nav a.btn { color: #fff; }

.lang {
  display: flex; align-items: center; gap: 2px; padding: 3px;
  border: 1px solid var(--line); border-radius: 99px; background: var(--tint);
}
.lang a {
  font-size: .78rem; font-weight: 700; letter-spacing: .04em;
  padding: 5px 11px; border-radius: 99px; color: var(--muted); text-decoration: none;
}
.lang a:hover { color: var(--ink); }
.lang a[aria-current="true"] { background: var(--ink); color: #fff; }

.burger { display: none; width: 42px; height: 38px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); cursor: pointer; padding: 0; }
.burger span { display: block; width: 17px; height: 1.8px; background: var(--ink); margin: 3.6px auto; border-radius: 2px; transition: transform .25s var(--ease), opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.4px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.4px) rotate(-45deg); }

/* botones */
.btn {
  display: inline-block; text-align: center; text-decoration: none;
  font: 600 .93rem/1 inherit; padding: 12px 20px; border-radius: var(--r-sm);
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  cursor: pointer; white-space: nowrap;
  transition: border-color .18s, background .18s, transform .18s var(--ease);
}
.btn:hover { border-color: var(--line-2); background: var(--tint); }
.btn:active { transform: translateY(1px); }
.btn.primary {
  border-color: transparent;
  background: linear-gradient(100deg, var(--accent-btn), var(--accent-2-btn));
  color: #fff;
}
.btn.primary:hover { filter: brightness(1.07); }
.btn.ghost { background: transparent; }
.btn.sm { padding: 9px 15px; font-size: .87rem; }
.btn.full { width: 100%; }
.btn:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, .burger:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}

/* hero */
.hero { padding: 66px 0 56px; position: relative; overflow: hidden; isolation: isolate; }

/* La foto va al fondo y el texto encima, sobre una tarjeta blanca opaca.

   La primera version usaba un velo blanco sobre el texto y Photo se quedaba
   tapada: medir solo daba 3% del color de la foto bajo la columna de texto.
   Un velo es la unica forma de que el contraste dependa del pixel de la foto
   que toque, y no se puede garantizar. Con la tarjeta, el fondo del texto es
   #fff siempre y el contraste es el mismo que en el resto de la pagina. */
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(100deg, rgba(255, 255, 255, .82) 0%, rgba(255, 255, 255, .38) 34%, rgba(255, 255, 255, .12) 100%),
    linear-gradient(to bottom, rgba(255, 255, 255, .5) 0%, rgba(255, 255, 255, 0) 22%);
}
.hero-in { display: grid; grid-template-columns: 1.15fr .85fr; gap: 46px; align-items: center; position: relative; }

/* La tarjeta: opaca, sin velo, sin dependencia de la foto. El padding
   Generoso deja respirar el titular y el borde suave la separa del mar. */
.hero-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: 34px 36px;
  max-width: 640px;
}
.hero-card .lede { margin-bottom: 26px; }
.hero-card .proof { border-top-color: var(--line); }
.eyebrow { margin: 0 0 10px; font-size: .76rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--accent); }
.lede { margin: 0 0 24px; max-width: 58ch; color: var(--muted); font-size: 1.06rem; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 32px; }

.proof { list-style: none; margin: 0; padding: 24px 0 0; border-top: 1px solid var(--line); display: grid; gap: 18px; }
.proof li { display: grid; gap: 2px; padding-left: 16px; position: relative; }
.proof li::before { content: ""; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: linear-gradient(var(--accent), var(--accent-2)); }
.proof b { color: var(--ink); font-size: .95rem; }
.proof span { font-size: .88rem; color: var(--muted); }

.hero-panel { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); overflow: hidden; box-shadow: var(--shadow); }
.panel-head { display: flex; align-items: center; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--tint); }
.panel-head .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.panel-title { margin-left: 8px; font: 500 .76rem/1 ui-monospace, Menlo, monospace; color: var(--muted); }
.panel-body { padding: 20px; }
.kpi-row { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.kpi b { display: block; color: var(--ink); font-size: 1.35rem; letter-spacing: -.02em; }
.kpi span { font-size: .76rem; color: var(--muted); }
.chart { display: flex; align-items: flex-end; gap: 8px; height: 118px; padding-bottom: 2px; border-bottom: 1px solid var(--line); }
.chart .bar { flex: 1; height: var(--h); border-radius: 4px 4px 0 0; background: linear-gradient(180deg, #818cf8, #c7d2fe); }
.chart .bar:nth-child(n+5) { background: linear-gradient(180deg, #a78bfa, #ddd6fe); }
.panel-foot { margin: 14px 0 0; font-size: .78rem; color: var(--muted); }

/* strip */
.strip { border-block: 1px solid var(--line); background: var(--tint); padding: 18px 0; }
.strip-in { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.strip-in > span { font-size: .78rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; color: var(--muted); }
.strip-in ul { list-style: none; display: flex; gap: 8px; flex-wrap: wrap; margin: 0; padding: 0; }
.strip-in li { font-size: .85rem; color: var(--text); border: 1px solid var(--line); background: var(--surface); padding: 5px 11px; border-radius: 99px; }

/* secciones */
.sec { padding: 72px 0; }
.sec.alt { background: var(--tint); border-block: 1px solid var(--line); }
.sec > .wrap > .lede { margin-bottom: 40px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* servicios */
.svc { transition: border-color .2s, transform .2s var(--ease); }
.svc:hover { border-color: var(--line-2); transform: translateY(-2px); }
.svc-ic { width: 42px; height: 42px; border-radius: var(--r-sm); display: grid; place-items: center; background: var(--accent-soft); border: 1px solid #dcdefb; margin-bottom: 16px; }
.svc-ic svg { width: 21px; height: 21px; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.svc h3 { margin-bottom: 10px; }
.svc p { font-size: .93rem; color: var(--muted); }

.ticks { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 22px; font-size: .88rem; color: var(--text); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 7px; width: 9px; height: 5px; border-left: 1.8px solid var(--ok); border-bottom: 1.8px solid var(--ok); transform: rotate(-45deg); }

/* proceso */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.step { display: grid; grid-template-columns: 78px 1fr; gap: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
.step-n { font: 700 1.5rem/1 var(--accent); letter-spacing: -.02em; opacity: .9; }
.step h3 { margin-bottom: 8px; }
.step p { margin: 0; font-size: .93rem; color: var(--muted); max-width: 68ch; }

/* sectores */
.sector { background: var(--surface); }
.sec.alt .sector { background: var(--surface); }
.sector h3 { margin-bottom: 8px; }
.sector p { margin: 0; font-size: .93rem; color: var(--muted); }
.sector .place { display: inline-block; margin-top: 12px; font-size: .78rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); border: 1px solid #dcdefb; padding: 3px 9px; border-radius: 99px; }

/* precios */
.price { display: flex; flex-direction: column; position: relative; }
.price.featured { border-color: var(--accent); background: linear-gradient(180deg, rgba(99, 102, 241, .06), var(--surface) 42%); }
.flag { position: absolute; top: -11px; left: 26px; background: linear-gradient(100deg, var(--accent-btn), var(--accent-2-btn)); color: #fff; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 11px; border-radius: 99px; }
.price-tag { margin: 0 0 2px; font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.price-val { margin: 0 0 12px; font-size: 1.6rem; font-weight: 700; color: var(--ink); letter-spacing: -.02em; }
.price-desc { font-size: .9rem; color: var(--muted); margin-bottom: 4px; }
.price .ticks { margin-bottom: 22px; flex: 1; }
.note { margin: 26px 0 0; font-size: .85rem; color: var(--muted); text-align: center; }

/* diferenciales */
.diffs { margin-top: 40px; }
.diff { border-left: 2px solid var(--accent); padding-left: 18px; }
.diff h3 { font-size: 1rem; color: var(--ink); letter-spacing: -.01em; margin-bottom: 6px; }
.diff p { margin: 0; font-size: .93rem; color: var(--muted); }

/* faq */
.faq { display: grid; gap: 10px; margin-top: 34px; }
.qa { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.qa[open] { border-color: var(--line-2); }
.qa summary { list-style: none; cursor: pointer; padding: 18px 54px 18px 20px; position: relative; color: var(--ink); font-weight: 600; font-size: 1rem; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 9px; height: 9px;
  border-right: 1.8px solid var(--accent); border-bottom: 1.8px solid var(--accent);
  transform: translateY(-70%) rotate(45deg); transition: transform .25s var(--ease);
}
.qa[open] summary::after { transform: translateY(-20%) rotate(-135deg); }
.qa summary:hover { color: var(--accent); }
.qa-body { padding: 0 20px 20px; font-size: .93rem; color: var(--muted); }
.qa-body p { margin: 0; max-width: 70ch; }

/* contacto */
.contact { display: grid; grid-template-columns: .85fr 1.15fr; gap: 40px; align-items: start; }
.contact-list { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 14px; }
.contact-list li { display: flex; align-items: center; gap: 12px; font-size: .94rem; }
.ci { width: 36px; height: 36px; flex: none; border-radius: var(--r-sm); display: grid; place-items: center; background: var(--tint); border: 1px solid var(--line); }
.ci svg { width: 17px; height: 17px; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.form { display: grid; gap: 16px; }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.f-field { display: grid; gap: 6px; }
.f-field label { font-size: .82rem; font-weight: 600; color: var(--text); }
.f-field .opt { color: var(--muted); font-weight: 400; }
input, select, textarea {
  font: inherit; font-size: .94rem; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 11px 13px; width: 100%;
}
textarea { resize: vertical; min-height: 96px; }
input::placeholder, textarea::placeholder { color: #8a91a5; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(79, 70, 229, .16); outline: none; }
input[aria-invalid="true"], textarea[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--err); }
.err-txt { color: var(--err); font-size: .78rem; margin: 0; }
.f-privacy { margin: 0; font-size: .8rem; color: var(--muted); text-align: center; }

/* footer */
.foot { border-top: 1px solid var(--line); background: var(--tint); padding: 40px 0 26px; }
.foot-in { display: flex; justify-content: space-between; gap: 28px; flex-wrap: wrap; margin-bottom: 26px; }
.foot-in p { margin: 8px 0 0; }
.foot-nav { display: flex; gap: 18px; flex-wrap: wrap; align-items: flex-start; }
.foot-nav a { color: var(--muted); text-decoration: none; font-size: .89rem; }
.foot-nav a:hover { color: var(--accent); }
.foot-legal { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 20px; }
.foot-legal p { margin: 0; }
/* El credito de la foto ocupa su propia linea: es mas largo que el resto y
   repartido en la fila queda descolgado. */
.foot-legal .credit { flex-basis: 100%; font-size: .78rem; }
.foot-legal .credit a { color: var(--muted); text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

@media (max-width: 1080px) {
  .nav { gap: 14px; }
  .nav a { font-size: .88rem; }
}

@media (max-width: 980px) {
  .hero-in { grid-template-columns: 1fr; gap: 34px; }
  /* A una sola columna el texto ocupa todo el ancho y la tarjeta se comeria
     la foto. En movil la foto deja de ser fondo y pasa a ser una banda con
     el encuadre completo; la tarjeta se aplana al ancho y sin sombra. */
  .hero { padding-top: 30px; }
  .hero-bg {
    position: relative; inset: auto; margin: 0 0 26px;
    height: 210px; border-radius: var(--r); overflow: hidden;
  }
  .hero-bg img { object-position: 50% 55%; }
  .hero::before { content: none; }
  .hero-card { max-width: none; padding: 26px 24px; box-shadow: none; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .contact { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 820px) {
  .burger { display: block; }
  .nav {
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 8px 20px 18px; display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 13px 0; border-bottom: 1px solid var(--line); color: var(--text); }
  .nav a.btn { margin-top: 14px; border-bottom: 0; text-align: center; }
  .top-in { position: relative; }
  .grid-2, .grid-3, .f-row { grid-template-columns: 1fr; }
  .step { grid-template-columns: 1fr; gap: 10px; }
  .sec { padding: 54px 0; }
  .hero { padding: 42px 0 38px; }
  .card { padding: 22px; }
}
