/* ESPCU · espcu.com
   Brand kit 12-nov-2026. Tinta: azul marino #0c0646. Acento único: azul claro #b6d0e9.
   Tipografía: Manrope. Movimiento solo con transform y opacity. */

:root {
  --navy: #0c0646;        /* Azul marino: tinta, fondos oscuros, botón principal */
  --navy-deep: #08042f;   /* Marino profundo: fondo de la portada */
  --navy-soft: #1b1560;   /* Marino suave: hover y bordes sobre oscuro */
  --sky: #b6d0e9;         /* Azul claro: acento único */
  --ice: #e6eff8;         /* Azul hielo: superficies claras */
  --mist: #f4f7fb;        /* Gris azulado: secciones alternas */
  --white: #ffffff;
  --text: #2b2c4b;
  --muted: #5d6080;
  --line: #dbe4ef;
  --line-dark: rgba(182, 208, 233, .18);
  --radius: 20px;
  --radius-sm: 12px;
  --wrap: 1240px;
  --font: "Manrope", Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --space: clamp(4.5rem, 9vw, 7.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.65;
  color: var(--text); background: var(--white);
  font-feature-settings: "tnum" 1; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
h1, h2, h3 { color: var(--navy); line-height: 1.12; margin: 0 0 .55em; letter-spacing: -.025em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4.1rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.3vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.1rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; max-width: 65ch; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .76rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 1.1em;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--navy); border-radius: 2px; }
.eyebrow-light { color: var(--sky); }
.eyebrow-light::before { background: var(--sky); }
.lead { font-size: clamp(1.08rem, 1.5vw, 1.25rem); }
.big { font-size: clamp(1.2rem, 1.9vw, 1.5rem); color: var(--navy); font-weight: 600; line-height: 1.45; }
.small { font-size: .86rem; color: var(--muted); }
.muted { color: var(--muted); }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  font-weight: 700; text-decoration: none; border-radius: 999px; padding: 0 26px;
  background: var(--navy); color: #fff; border: 0;
  transition: transform .35s var(--ease), background-color .25s ease;
}
.btn:hover { background: var(--navy-soft); transform: translateY(-2px); }
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: .92rem; }
.btn-accent { background: var(--sky); color: var(--navy); }
.btn-accent:hover { background: #fff; }

/* Encabezado */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.5) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.brand img { height: 54px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { text-decoration: none; font-weight: 600; font-size: .94rem; color: var(--navy); }
.nav a:not(.btn) { position: relative; padding: 6px 0; }
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--navy);
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav a:not(.btn):hover::after { transform: scaleX(1); }
.nav .btn { color: #fff; }
.nav-toggle { display: none; background: none; border: 0; padding: 12px; cursor: pointer; min-width: 44px; min-height: 44px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--navy); margin: 5px 0; border-radius: 2px; }

/* Portada */
.hero { position: relative; overflow: hidden; background: var(--navy-deep); color: #dfe7f5; padding: clamp(4.5rem, 9vw, 7rem) 0 clamp(5rem, 10vw, 8rem); }
.hero-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(182, 208, 233, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(182, 208, 233, .06) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 75% 40%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 80% at 75% 40%, #000 20%, transparent 75%);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.25fr .95fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.hero h1 { color: #fff; max-width: 15ch; }
.hero .hl { color: var(--sky); }
.hero .lead { color: #c9d6ea; max-width: 46ch; margin-bottom: 2rem; }

.console {
  background: linear-gradient(180deg, rgba(27, 21, 96, .85), rgba(12, 6, 70, .85));
  border: 1px solid var(--line-dark); border-radius: 24px; padding: 26px;
  box-shadow: 0 30px 60px -20px rgba(3, 1, 25, .7);
}
.console-head { display: flex; align-items: center; gap: 10px; font-size: .82rem; font-weight: 600; color: var(--sky); padding-bottom: 18px; border-bottom: 1px solid var(--line-dark); }
.console-mark { width: 40px; height: 40px; margin-left: auto; }
.pulse { position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--sky); }
.pulse::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--sky);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(3.2); opacity: 0; } }
.console-stats { display: grid; grid-template-columns: 1fr 1fr; margin: 0; }
.console-stats div { padding: 22px 4px 18px; border-bottom: 1px solid var(--line-dark); }
.console-stats div:nth-child(odd) { border-right: 1px solid var(--line-dark); padding-right: 18px; }
.console-stats div:nth-child(even) { padding-left: 22px; }
.console-stats dt { font-size: clamp(2.2rem, 3.6vw, 2.9rem); font-weight: 800; color: #fff; line-height: 1; letter-spacing: -.03em; }
.console-stats dd { margin: 8px 0 0; font-size: .86rem; color: #aebcd6; line-height: 1.4; }
.console-foot { margin: 18px 0 0; font-size: .85rem; color: #aebcd6; }

/* Banda de clientes */
.trust { border-bottom: 1px solid var(--line); background: var(--white); }
.trust-inner { display: flex; align-items: center; gap: clamp(1.5rem, 5vw, 4rem); padding-top: 26px; padding-bottom: 26px; flex-wrap: wrap; }
.trust-label { font-size: .76rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.trust-list { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(1.5rem, 5vw, 4rem); flex-wrap: wrap; }
.trust-list li { font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 800; color: var(--navy); letter-spacing: -.01em; }

/* Secciones */
.section { padding: var(--space) 0; }
.section.tint { background: var(--mist); }
.section.dark { background: var(--navy); color: #d3ddef; }
.section.dark h2, .section.dark h3 { color: #fff; }
.section-head { max-width: 760px; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2.5rem, 7vw, 6rem); align-items: start; }
.sticky { position: sticky; top: 120px; }

/* Servicios: filas numeradas */
.rows { list-style: none; margin: 0; padding: 0; }
.row { display: grid; grid-template-columns: 64px 1fr; gap: 12px; padding: 28px 0; border-top: 1px solid var(--line); }
.row:last-child { border-bottom: 1px solid var(--line); }
.row-n { font-weight: 800; font-size: .9rem; color: var(--navy); padding-top: 3px; }
.row h3 { font-size: 1.22rem; margin-bottom: .4em; }
.row p { margin: 0; color: var(--muted); }
.row { transition: transform .4s var(--ease); }
.row:hover { transform: translateX(6px); }

/* Clientes: bento */
.bento { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: auto auto; gap: 20px; }
.tile {
  background: var(--mist); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3vw, 34px);
  display: flex; flex-direction: column; transition: transform .45s var(--ease);
}
.tile:hover { transform: translateY(-4px); }
.tile-lg { grid-row: span 2; background: var(--ice); justify-content: flex-end; min-height: 340px; }
.tile-tag { font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: auto; padding-bottom: 28px; }
.tile-client { font-size: clamp(1.6rem, 2.8vw, 2.2rem); font-weight: 800; color: var(--navy); letter-spacing: -.02em; margin-bottom: .35em; line-height: 1.1; }
.tile-lg .tile-client { font-size: clamp(2rem, 4vw, 3rem); }
.tile p:last-child { margin-bottom: 0; }

/* Cómo trabajamos */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.timeline::before { content: ""; position: absolute; top: 22px; left: 0; right: 0; height: 1px; background: var(--line-dark); }
.timeline li { position: relative; padding: 0 24px 0 0; }
.t-n {
  position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--navy); border: 1px solid var(--sky); color: var(--sky); font-weight: 800; margin-bottom: 22px;
}
.timeline p { color: #b9c6dd; font-size: .97rem; }
.quote {
  margin: clamp(2.5rem, 5vw, 4rem) 0 0; padding: 0 0 0 24px; border-left: 3px solid var(--sky);
  font-size: clamp(1.1rem, 1.8vw, 1.35rem); font-weight: 600; color: #fff; line-height: 1.5; max-width: 60ch;
}

/* Tecnología */
.checks { list-style: none; padding: 0; margin: 26px 0 0; }
.checks li { position: relative; padding: 13px 0 13px 36px; border-top: 1px solid var(--line); font-weight: 600; color: var(--navy); }
.checks li:last-child { border-bottom: 1px solid var(--line); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 15px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--ice) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-6.5' fill='none' stroke='%230c0646' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat;
}
.partners { background: var(--navy); color: #c9d6ea; border-radius: 24px; padding: clamp(26px, 4vw, 40px); }
.partners .eyebrow { color: var(--sky); }
.partners .eyebrow::before { background: var(--sky); }
.partner { padding: 22px 0; border-top: 1px solid var(--line-dark); transition: transform .4s var(--ease); }
.partner:hover { transform: translateX(6px); }
.partner-name { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; color: #fff; letter-spacing: -.02em; margin: 0 0 .2em; line-height: 1.1; }
.partner-name span { font-size: .9rem; font-weight: 600; color: var(--sky); letter-spacing: 0; margin-left: 6px; }
.partner p:last-child { margin: 0; }
.partners .small { color: #97a6c2; margin: 18px 0 0; padding-top: 18px; border-top: 1px solid var(--line-dark); }

/* Personal */
.quad { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(1.5rem, 4vw, 3rem); }
.quad article { padding: 26px 0; border-top: 1px solid var(--line); }
.quad p { margin: 0; color: var(--muted); }

/* Presencia */
.mega { font-size: clamp(5rem, 13vw, 9rem); font-weight: 800; color: var(--navy); line-height: .9; letter-spacing: -.05em; margin: 0 0 .1em; }
.regions { list-style: none; margin: 0; padding: 0; }
.regions li { display: grid; grid-template-columns: 200px 1fr; gap: 16px; padding: 22px 0; border-top: 1px solid var(--line); align-items: baseline; }
.regions li:last-child { border-bottom: 1px solid var(--line); }
.regions h3 { margin: 0; font-size: 1rem; }
.regions p { margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.regions span { background: var(--ice); color: var(--navy); font-weight: 600; font-size: .9rem; padding: 6px 12px; border-radius: 999px; }

/* Cumplimiento */
.compliance { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 clamp(1.5rem, 5vw, 4rem); }
.compliance article { padding: 26px 0 26px 40px; border-top: 1px solid var(--line); position: relative; }
.compliance article::before {
  content: ""; position: absolute; left: 0; top: 30px; width: 22px; height: 22px; border-radius: 6px;
  background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-6.5' fill='none' stroke='%23b6d0e9' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat;
}
.compliance p { margin: 0; color: var(--muted); }

/* Contacto */
.signer { font-size: 1.15rem; font-weight: 700; color: #fff; margin-bottom: 1.8rem; }
.signer span { display: block; font-weight: 500; color: var(--sky); font-size: .95rem; }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { padding: 22px 0; border-top: 1px solid var(--line-dark); }
.contact-list li:last-child { border-bottom: 1px solid var(--line-dark); }
.contact-list .label { display: block; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--sky); font-weight: 700; margin-bottom: 6px; }
.contact-list a { color: #fff; font-weight: 700; font-size: clamp(1.05rem, 1.8vw, 1.3rem); text-decoration: none; word-break: break-word; }
.contact-list a:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--sky); }

/* Pie */
.site-footer { background: var(--ice); padding: 48px 0; color: var(--navy); }
.footer-inner { display: flex; gap: 36px; align-items: center; }
.footer-inner img { width: 112px; flex: none; }
.site-footer p { margin: 0 0 .4em; }
.site-footer a { color: var(--navy); }

/* Aparición al hacer scroll (solo transform y opacity) */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.rows .reveal:nth-child(2), .timeline .reveal:nth-child(2), .quad .reveal:nth-child(2), .regions .reveal:nth-child(2), .compliance .reveal:nth-child(2), .bento .reveal:nth-child(2) { transition-delay: .08s; }
.rows .reveal:nth-child(3), .timeline .reveal:nth-child(3), .quad .reveal:nth-child(3), .regions .reveal:nth-child(3), .compliance .reveal:nth-child(3), .bento .reveal:nth-child(3) { transition-delay: .16s; }
.rows .reveal:nth-child(4), .timeline .reveal:nth-child(4), .quad .reveal:nth-child(4), .regions .reveal:nth-child(4), .compliance .reveal:nth-child(4) { transition-delay: .24s; }
.rows .reveal:nth-child(5), .regions .reveal:nth-child(5), .compliance .reveal:nth-child(5) { transition-delay: .32s; }
.rows .reveal:nth-child(6), .compliance .reveal:nth-child(6) { transition-delay: .4s; }
.hero .console.reveal { transition-delay: .15s; }

/* 404 */
.notfound { text-align: center; min-height: 70vh; display: grid; place-items: center; }
.notfound img { width: 120px; margin: 0 auto 24px; }
.notfound p { margin-left: auto; margin-right: auto; }

/* Responsivo */
@media (max-width: 1020px) {
  .timeline { grid-template-columns: 1fr 1fr; gap: 36px 0; }
  .timeline::before { display: none; }
  .regions li { grid-template-columns: 1fr; gap: 10px; }
}
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 80px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 20px 20px;
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin-top: 14px; }
  .hero-inner, .split { grid-template-columns: 1fr; }
  .sticky { position: static; }
}
@media (max-width: 767px) {
  body { font-size: 16px; }
  .header-inner { height: 72px; }
  .nav { top: 72px; }
  .brand img { height: 44px; }
  .bento, .quad, .compliance, .timeline { grid-template-columns: 1fr; }
  .tile-lg { grid-row: auto; min-height: 0; }
  .row { grid-template-columns: 44px 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .trust-inner { gap: 12px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
