/* ==========================================================================
   TIC7 Ingeniería — design system
   Autor: rediseño 2026 · HTML + CSS sin dependencias externas
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  --ink: #ffffff;
  --ink-2: #0a1b34;
  --navy: #08172c;

  --blue: #1f6bff;
  --blue-dark: #0b47c9;
  --cyan: #31d4ff;

  --text: #0f2138;
  --muted: #5a6b86;
  --muted-2: #7a8aa4;

  --paper: #061225;
  --mist: #081a33;
  --line: rgba(126, 170, 240, .16);
  --line-strong: rgba(126, 170, 240, .32);

  --radius: 18px;
  --radius-lg: 24px;

  --shadow-sm: 0 2px 10px -4px rgba(8, 30, 66, .18);
  --shadow-md: 0 24px 48px -28px rgba(6, 26, 60, .45);
  --shadow-lg: 0 40px 80px -40px rgba(3, 14, 32, .75);

  --container: 1160px;
  --header-h: 84px;

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

/* 2. Reset ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  margin: 0;
  font-synthesis: none;
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--text);
  background: radial-gradient(1200px 620px at 78% -10%, #0e2b57 0%, transparent 62%), var(--paper);
  overflow-x: hidden;
}

img, svg { max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -.02em; color: var(--ink); }
p { margin: 0; }

/* 3. Utilidades ------------------------------------------------------------ */
.container { width: min(var(--container), 100% - 44px); margin-inline: auto; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: #fff; color: var(--blue-dark); padding: 12px 18px; border-radius: 10px;
  font-weight: 700; text-decoration: none; box-shadow: var(--shadow-md); transition: top .2s;
}
.skip-link:focus { top: 14px; }

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

/* 4. Cabecera -------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(6, 18, 37, .9);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  transition: box-shadow .25s ease;
}
.site-header.is-scrolled { box-shadow: 0 14px 34px -22px rgba(0, 0, 0, .85); }

.nav { display: flex; align-items: center; gap: 30px; height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; flex: 0 0 auto; }
.brand-mark { width: 40px; height: 40px; flex: 0 0 auto; }
.brand-text { display: flex; flex-direction: column; gap: 3px; }
.brand-name {
  font-size: 1.35rem; font-weight: 700; letter-spacing: -.03em; line-height: 1;
  color: #fff;
}
.brand-name span { color: var(--blue); }
.brand-sub {
  font-size: .58rem; letter-spacing: .3em; text-transform: uppercase;
  color: #8fa6c6; font-weight: 700; line-height: 1;
}

.nav-list { display: flex; align-items: center; gap: 2px; margin-left: auto; padding: 0; list-style: none; }
.nav-link {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 13px; border-radius: 10px;
  font-size: .95rem; font-weight: 600; color: #cfdcef; text-decoration: none;
  background: none; border: 0; cursor: pointer; white-space: nowrap;
  transition: background .18s, color .18s;
}
.nav-link:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.nav-link.is-active { color: #fff; background: rgba(31, 107, 255, .22); }
.nav-link .chev { transition: transform .2s ease; }

.nav-cta { margin-left: 10px; }
.nav-toggle {
  display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .06); cursor: pointer;
  align-items: center; justify-content: center; gap: 5px; flex-direction: column;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: #eaf2ff; border-radius: 2px; transition: transform .25s, opacity .2s; }
.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); }

/* Desplegables ------------------------------------------------------------- */
.has-menu { position: relative; }
.dropdown {
  position: absolute; top: calc(100% + 12px); left: 50%; transform: translate(-50%, 8px);
  width: 330px; padding: 10px; margin: 0; list-style: none;
  background: #0b1a30; border: 1px solid rgba(255, 255, 255, .1); border-radius: 16px;
  box-shadow: 0 30px 60px -32px rgba(0, 0, 0, .8);
  opacity: 0; visibility: hidden; transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.has-menu.open > .dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.dropdown a {
  display: flex; align-items: flex-start; gap: 11px; padding: 11px 12px; border-radius: 11px;
  text-decoration: none; color: #dbe7f8; font-size: .93rem; font-weight: 600; line-height: 1.35;
}
.dropdown a:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.dropdown a small { display: block; font-weight: 500; color: #93a8c6; font-size: .8rem; line-height: 1.45; margin-top: 2px; }
.dropdown .dot {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 8px; margin-top: 1px;
  display: grid; place-items: center; background: rgba(31, 107, 255, .18); color: #9cc6ff; font-size: 12px; font-weight: 700;
}

/* 5. Botones --------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 22px; border-radius: 12px; border: 1px solid transparent;
  font-size: .95rem; font-weight: 700; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease, background .18s, border-color .18s, color .18s;
}
.btn svg { flex: 0 0 auto; }
.btn-primary {
  background: linear-gradient(135deg, #2a78ff, var(--blue-dark));
  color: #fff; box-shadow: 0 16px 30px -16px rgba(31, 107, 255, .8);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 22px 36px -16px rgba(31, 107, 255, .9); }
.btn-ghost { color: #eaf2ff; background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .26); }
.btn-ghost:hover { background: rgba(255, 255, 255, .16); }
.btn-outline { color: #12305c; background: #fff; border-color: var(--line-strong); }
.btn-outline:hover { border-color: #9db6de; background: #f7faff; }
.btn-sm { padding: 10px 16px; font-size: .87rem; border-radius: 10px; }

/* 6. Hero ------------------------------------------------------------------ */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding: 78px 0 88px; color: #eaf2ff;
  background:
    radial-gradient(1100px 520px at 12% -12%, #14407f 0%, transparent 62%),
    radial-gradient(760px 420px at 92% 8%, #0d2f63 0%, transparent 66%),
    linear-gradient(180deg, #061227 0%, #081a33 58%, #061225 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 25%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 25%, transparent 72%);
}
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: 56px; align-items: center; }

.kicker {
  display: inline-flex; align-items: center; gap: 11px;
  font-size: .72rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase;
  color: #8fc4ff;
}
.kicker::before { content: ""; width: 26px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--cyan), var(--blue)); }
.kicker.dark-kicker { color: #8fc4ff; }
.kicker.dark-kicker::before { background: linear-gradient(90deg, var(--blue), var(--cyan)); }

.hero h1 {
  margin: 20px 0 22px; color: #fff;
  font-size: clamp(2.35rem, 4.6vw, 3.85rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.03;
}
.grad {
  background: linear-gradient(100deg, #8fdcff 0%, #5ba7ff 46%, #d3e7ff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lead { max-width: 54ch; font-size: clamp(1.02rem, 1.3vw, 1.16rem); line-height: 1.7; color: #b7c9e6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.hero-meta {
  display: flex; flex-wrap: wrap; gap: 34px; margin-top: 44px; padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.hero-meta strong { display: block; font-size: 1.55rem; font-weight: 700; letter-spacing: -.02em; color: #fff; line-height: 1.1; }
.hero-meta span { font-size: .8rem; letter-spacing: .05em; color: #9fb4d2; }

.hero-media { position: relative; }
.hero-media img {
  display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, .16); box-shadow: var(--shadow-lg);
}
.hero-badge {
  position: absolute; left: -20px; bottom: -22px;
  display: flex; align-items: center; gap: 13px; padding: 14px 18px;
  background: rgba(7, 19, 36, .92); border: 1px solid rgba(120, 180, 255, .32);
  border-radius: 15px; backdrop-filter: blur(10px); box-shadow: 0 24px 40px -28px #000;
  font-size: .82rem; color: #b9cdea;
}
.hero-badge .pulse {
  width: 34px; height: 34px; border-radius: 50%; flex: 0 0 auto;
  background: radial-gradient(circle at 50% 50%, rgba(49, 212, 255, .9), rgba(31, 107, 255, .2) 65%, transparent 70%);
  box-shadow: 0 0 0 6px rgba(49, 212, 255, .08);
}
.hero-badge b { display: block; color: #fff; font-size: .92rem; letter-spacing: -.01em; }

/* 7. Secciones ------------------------------------------------------------- */
.section { padding: 78px 0; }
.section.tight { padding: 54px 0; }
.section.mist { background: var(--mist); }
.section.dark {
  color: #dbe6f7;
  background:
    radial-gradient(900px 420px at 84% 0%, #123a7a 0%, transparent 62%),
    linear-gradient(180deg, #071427, #0a1b34);
}
.section.dark h2, .section.dark h3 { color: #fff; }
.section.dark p { color: #a9bcd8; }

.section-head { max-width: 740px; margin-bottom: 46px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .kicker { justify-content: center; }
.section-head h2 { margin: 16px 0 14px; font-size: clamp(1.72rem, 2.7vw, 2.45rem); letter-spacing: -.02em; line-height: 1.12; }
.section-head p { font-size: 1.05rem; line-height: 1.7; color: #9db2d0; }
.section.dark .section-head p { color: #a9bcd8; }
.section-head .actions { margin-top: 26px; display: flex; gap: 12px; flex-wrap: wrap; }

/* 8. Tarjetas -------------------------------------------------------------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.card-media { position: relative; aspect-ratio: 2 / 1; overflow: hidden; background: var(--ink-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .7s cubic-bezier(.2, .7, .3, 1); }
.card:hover .card-media img { transform: scale(1.045); }
.card-body { display: flex; flex-direction: column; gap: 11px; padding: 24px; flex: 1; }
.card h3 { font-size: 1.16rem; letter-spacing: -.015em; }
.card p { color: var(--muted); font-size: .95rem; line-height: 1.65; }
.card-link {
  margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 8px;
  color: var(--blue-dark); font-weight: 700; font-size: .9rem; text-decoration: none;
}
.card-link svg { transition: transform .2s ease; }
.card-link:hover svg { transform: translateX(3px); }

/* Tarjetas de pilar (Informática / Industrial) */
.pillar {
  position: relative; display: flex; align-items: flex-end; isolation: isolate;
  min-height: 400px; border-radius: var(--radius-lg); overflow: hidden;
  text-decoration: none; color: #fff; border: 1px solid rgba(255, 255, 255, .08);
}
.pillar > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .3, 1); }
.pillar::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(4, 12, 24, .1) 0%, rgba(4, 12, 24, .6) 46%, rgba(4, 12, 24, .95) 100%);
}
.pillar:hover > img { transform: scale(1.055); }
.pillar-inner { padding: 30px; }
.pillar-inner .tag {
  display: inline-block; margin-bottom: 12px; padding: 5px 11px; border-radius: 999px;
  background: rgba(120, 180, 255, .16); border: 1px solid rgba(140, 195, 255, .35);
  font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; color: #cfe7ff;
}
.pillar h3 { color: #fff; font-size: 1.5rem; letter-spacing: -.02em; }
.pillar p { color: #c3d5ee; font-size: .95rem; line-height: 1.6; margin-top: 8px; }
.pillar .go { margin-top: 16px; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .9rem; color: #9fd3ff; }

/* Listas con check */
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.ticks li {
  position: relative; padding-left: 31px; font-size: .95rem; line-height: 1.55; color: inherit;
}
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%;
  background: #e8f0ff url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f6bff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 11px 11px no-repeat;
}
.section.dark .ticks li { color: #c3d3ea; }
.section.dark .ticks li::before { background-color: rgba(120, 180, 255, .16); }

/* Banda de capacidades */
.cap-band { background: #071528; border-top: 1px solid rgba(255, 255, 255, .06); border-bottom: 1px solid rgba(255, 255, 255, .06); }
.cap-band ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
}
.cap-band li {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  padding: 19px 12px; border-left: 1px solid var(--line);
  font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #a9bcd8;
  text-align: left;
}
.cap-band li:first-child { border-left: 0; }
.cap-band li svg { color: #6fb0ff; flex: 0 0 auto; }

/* Tarjeta de cierre de rejilla */
.card-cta {
  display: flex; flex-direction: column; justify-content: center; gap: 12px;
  padding: 30px; border-radius: var(--radius);
  border: 1px dashed #c3d3ea; background: linear-gradient(160deg, #f9fbff, #edf3ff);
}
.card-cta h3 { font-size: 1.12rem; }
.card-cta p { color: var(--muted); font-size: .93rem; line-height: 1.6; }
.card-cta a { color: var(--blue-dark); font-weight: 700; font-size: .9rem; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.card-cta a:hover { text-decoration: underline; }

/* 9. Bloques especiales ---------------------------------------------------- */
.group-head {
  display: flex; align-items: center; gap: 14px; margin-bottom: 22px;
}
.group-head .ico {
  width: 44px; height: 44px; border-radius: 13px; flex: 0 0 auto;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, #2a78ff, #0b47c9);
  box-shadow: 0 12px 22px -14px rgba(31, 107, 255, .9);
}
.group-head h3 { font-size: 1.22rem; letter-spacing: -.015em; }
.group-head p { color: var(--muted); font-size: .9rem; margin-top: 2px; }

.panel {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; height: 100%;
}

.steps { counter-reset: step; display: grid; gap: 22px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.step { position: relative; padding: 30px 26px 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  position: absolute; top: 20px; right: 24px;
  font-size: 2.1rem; font-weight: 700; letter-spacing: -.02em;
  color: #eaf1ff; line-height: 1;
}
.step h3 { font-size: 1.08rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .93rem; line-height: 1.6; }

/* Patentes / I+D */
.patents { display: grid; gap: 22px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.patent {
  position: relative; padding: 30px; border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .02));
  border: 1px solid rgba(140, 195, 255, .26);
}
.patent .num {
  display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .22em;
  text-transform: uppercase; color: #8fd0ff; margin-bottom: 12px;
}
.patent h3 { font-size: 1.22rem; }
.patent p { margin-top: 8px; font-size: .94rem; color: #a9bcd8; }

/* CTA */
.cta {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: 1.5fr auto; gap: 34px; align-items: center;
  padding: 54px; border-radius: var(--radius-lg); color: #fff;
  background: linear-gradient(120deg, #0a2250 0%, #12459d 52%, #0b64e0 100%);
  box-shadow: 0 40px 80px -50px rgba(8, 40, 96, .9);
}
.cta::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(620px 320px at 92% 6%, rgba(49, 212, 255, .38), transparent 62%);
}
.cta h2 { color: #fff; font-size: clamp(1.5rem, 2.3vw, 2.05rem); letter-spacing: -.03em; }
.cta p { color: #cfe1f8; margin-top: 10px; font-size: 1rem; }
.cta .actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* 10. Cabecera de página interior ----------------------------------------- */
.page-hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding: 58px 0 66px; color: #fff; background: #071427;
}
.page-hero .bg {
  position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center;
  opacity: .5;
}
.page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(5, 15, 30, .78) 0%, rgba(5, 18, 38, .9) 62%, rgba(5, 15, 30, .97) 100%),
    radial-gradient(700px 300px at 88% 10%, rgba(31, 107, 255, .35), transparent 65%);
}
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin: 0 0 20px; padding: 0; list-style: none; font-size: .82rem; color: #9db2d0; }
.crumbs a { color: #cfe0f6; text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs .sep { opacity: .5; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 3.6vw, 3rem); letter-spacing: -.02em; margin: 14px 0 16px; max-width: 22ch; }
.page-hero .lead { max-width: 62ch; color: #b7c9e6; font-size: clamp(1rem, 1.3vw, 1.1rem); line-height: 1.7; }
.page-hero .hero-actions { margin-top: 28px; }

/* 11. Contenido interior --------------------------------------------------- */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.split.wide-right { grid-template-columns: .9fr 1.1fr; }
.media-frame {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-md); background: var(--ink-2);
}
.media-frame img { display: block; width: 100%; }
.media-frame.tall img { aspect-ratio: 16 / 10; object-fit: cover; }

.services-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.services-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.services-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1180px) { .services-grid.cols-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 980px) { .services-grid.cols-4, .services-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .services-grid.cols-4, .services-grid.cols-2 { grid-template-columns: 1fr; } }

/* 12. Contacto ------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 34px; align-items: stretch; }
.contact-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 32px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
}
.contact-card > .btn { margin-top: auto; align-self: flex-start; }
.contact-grid > div { display: flex; flex-direction: column; }
.contact-grid > div > .contact-card { flex: 1; }
.contact-hint {
  margin: 4px 0 12px; font-size: .76rem; letter-spacing: .12em; text-transform: uppercase;
  color: #93a8c6; font-weight: 700;
}
.contact-card .ticks { margin-bottom: 22px; }
.contact-card h2 { font-size: 1.4rem; margin-bottom: 20px; }
.contact-list { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .ico {
  width: 42px; height: 42px; border-radius: 12px; flex: 0 0 auto; display: grid; place-items: center;
  background: #eef4ff; color: var(--blue-dark);
}
.contact-list strong { display: block; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 3px; }
.contact-list a, .contact-list span { color: var(--ink); text-decoration: none; font-size: 1rem; }
.contact-list a:hover { color: var(--blue-dark); text-decoration: underline; }

.map-frame {
  position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, #eef4ff, #dbe7fa);
}
.map-frame iframe { display: block; width: 100%; height: 320px; border: 0; }
.map-frame .map-link {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 14px; background: #fff; border-top: 1px solid var(--line);
  font-size: .82rem; color: var(--muted); text-decoration: none;
}
.map-frame .map-link b { color: var(--blue-dark); font-weight: 700; }
.map-frame .map-link:hover b { text-decoration: underline; }

.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-sm); }
.form { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.form .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: .8rem; font-weight: 700; letter-spacing: .04em; color: #2b3d58; text-transform: uppercase; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; font: inherit; font-size: .95rem; color: #0f2138;
  background: #fff; border: 1px solid #d8e2f1; border-radius: 11px; transition: border-color .18s, box-shadow .18s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: #7fa8ff; box-shadow: 0 0 0 4px rgba(31, 107, 255, .12);
}
.field textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: .82rem; color: var(--muted-2); line-height: 1.55; }
.form-note a { color: var(--blue-dark); }

/* 13. Footer --------------------------------------------------------------- */
.site-footer { background: #050e1c; color: #9fb1c9; padding: 64px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr 1.1fr; gap: 26px; }
.site-footer .brand-name { color: #fff; }
.site-footer .brand-sub { color: #7f93ad; }
.site-footer p { color: #93a6c0; font-size: .93rem; line-height: 1.7; max-width: 34ch; margin-top: 18px; }
.site-footer h4 { color: #e7eefb; font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; margin: 0 0 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.site-footer a { color: #b9c8dd; text-decoration: none; font-size: .93rem; }
.site-footer a:hover { color: #fff; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  margin-top: 46px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .08);
  font-size: .82rem; color: #7e91aa;
}
.footer-bottom a { font-size: .82rem; }

/* 14. Animaciones ---------------------------------------------------------- */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s cubic-bezier(.2, .7, .3, 1); }
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: .08s; }
[data-reveal][data-delay="2"] { transition-delay: .16s; }
[data-reveal][data-delay="3"] { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *:not(.brand-head), *:not(.brand-head)::before, *:not(.brand-head)::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* 15. Responsive ----------------------------------------------------------- */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-grid > :nth-child(4) { grid-column: 2; }
  .footer-grid > :nth-child(5) { grid-column: 3; }
  .footer-grid > :last-child { grid-column: 1 / -1; }
}

@media (max-width: 980px) {
  :root { --header-h: 68px; }
  .nav-toggle { display: flex; }
  .nav-list {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    margin: 0; padding: 18px 22px 26px;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 30px 40px -30px rgba(6, 26, 60, .45);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: .22s ease;
    max-height: calc(100dvh - var(--header-h)); overflow: auto;
  }
  .nav-list.open { transform: none; opacity: 1; visibility: visible; }
  .nav-link { width: 100%; justify-content: space-between; padding: 13px 12px; font-size: 1rem; }
  .dropdown {
    position: static; width: 100%; transform: none; opacity: 1; visibility: visible;
    border: 0; box-shadow: none; padding: 4px 0 8px 12px; display: none;
  }
  .has-menu.open > .dropdown { display: block; transform: none; }
  .nav-cta { margin: 12px 0 0; }
  .nav-cta .btn { width: 100%; }

  .hero { padding: 64px 0 74px; }
  .hero-grid { grid-template-columns: 1fr; gap: 42px; }
  .hero-media { order: -1; }
  .hero-badge { left: auto; right: 12px; bottom: -18px; }
  .split, .split.wide-right { grid-template-columns: 1fr; gap: 36px; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-grid { grid-template-columns: 1fr; }
  .cta { grid-template-columns: 1fr; padding: 40px 32px; }
  .steps { grid-template-columns: 1fr; }
  .patents { grid-template-columns: 1fr; }
  .section { padding: 62px 0; }
  .cap-band ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cap-band li { justify-content: flex-start; }
  .cap-band li:nth-child(3n + 1) { border-left: 0; }
  .cap-band li:nth-child(n + 4) { border-top: 1px solid var(--line); }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .hero-meta { gap: 22px; }
  .hero-meta strong { font-size: 1.3rem; }
  .page-hero { padding: 42px 0 52px; }
  .pillar { min-height: 330px; }
  .cta { padding: 32px 24px; border-radius: 20px; }
  .contact-card, .form-card { padding: 24px; }
  .brand-name { font-size: 1.2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .site-footer p { max-width: none; }
  .cap-band ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cap-band li:nth-child(3n + 1) { border-left: 1px solid var(--line); }
  .cap-band li:nth-child(odd) { border-left: 0; }
  .cap-band li:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

@media (max-width: 480px) {
  .container { width: min(var(--container), 100% - 32px); }
  .hero-actions .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-badge { display: none; }
}

/* ==========================================================================
   Tema oscuro: superficies y contraste
   ========================================================================== */
.card { background: #0b1a30; border-color: rgba(126, 170, 240, .18); }
.card:hover { border-color: rgba(126, 170, 240, .42); box-shadow: 0 26px 50px -30px rgba(0, 0, 0, .9); }
.card-body { color: #c3d3ea; }
.card h3 { color: #fff; }
.card p { color: #a9bcd8; }
.card-link { color: #9cc6ff; }

.panel, .step, .card-cta {
  background: rgba(255, 255, 255, .035);
  border: 1px solid rgba(126, 170, 240, .18);
  color: #c3d3ea;
}
.panel h3, .step h3, .card-cta h3 { color: #fff; }
.panel p, .step p, .card-cta p { color: #a9bcd8; }
.card-cta { border-style: dashed; }
.card-cta a { color: #9cc6ff; }
.step::before { color: rgba(150, 195, 255, .22); }
.group-head p { color: #93a8c6; }

.contact-card, .form-card { background: #0b1a30; border-color: rgba(126, 170, 240, .18); color: #c3d3ea; }
.contact-card h2, .form-card h2 { color: #fff; }
.contact-list a, .contact-list span { color: #eaf2ff; }
.contact-list strong { color: #8fa6c6; }
.contact-list .ico { background: rgba(31, 107, 255, .16); color: #9cc6ff; }
.form-note { color: #93a8c6; }
.field label { color: #9db2d0; }
.field input, .field select, .field textarea { background: #081733; border-color: rgba(126, 170, 240, .26); color: #eaf2ff; }
.field select option { background: #081733; color: #eaf2ff; }
.map-frame { background: #081733; border-color: rgba(126, 170, 240, .18); }
.map-frame .map-link { background: #0b1a30; border-top-color: rgba(126, 170, 240, .18); color: #a9bcd8; }
.map-frame .map-link b { color: #9cc6ff; }

.btn-outline { background: rgba(255, 255, 255, .05); border-color: rgba(140, 190, 255, .3); color: #dbe7f8; }
.btn-outline:hover { background: rgba(255, 255, 255, .12); border-color: rgba(140, 190, 255, .5); }

.section .ticks li { color: #c3d3ea; }
.muted-soft { color: #a9bcd8; }
.legal-text { color: #a9bcd8; }
.site-footer { background: #040c18; }

/* Marca: cabeza + logotipo original --------------------------------------- */
.brand { display: inline-flex; align-items: center; gap: 12px; max-width: 100%; min-width: 0; }
.brand-head {
  width: 64px; height: 70px; flex: 0 0 auto;
  background: url("../img/cabeza-sprite.png") no-repeat 0 0 / 960px 70px;
  animation: headspin 1.6s steps(15) infinite;
  filter: drop-shadow(0 0 12px rgba(110, 185, 255, .55));
}
.brand-wordmark { display: block; height: 62px; width: auto; max-width: 100%; min-width: 0; }
@keyframes headspin {
  from { background-position: 0 0; }
  to { background-position: -960px 0; }
}
@keyframes headspin-sm {
  from { background-position: 0 0; }
  to { background-position: -660px 0; }
}
/* La cabeza se mantiene en movimiento: es la seña de identidad de la marca. */
@media (max-width: 760px) {
  .brand { gap: 9px; }
  .brand-wordmark { height: 48px; }
  .brand-head {
    width: 44px; height: 49px;
    background-size: 660px 49px;
    animation-name: headspin-sm;
  }
}

/* Texto largo sobre fondo oscuro */
.prose-soft { color: #a9bcd8; font-size: 1.03rem; line-height: 1.72; }

/* Checks: chip azul con tick blanco sobre fondo oscuro */
.section .ticks li::before,
.hero .ticks li::before {
  background-color: #1f6bff;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
}
.card .ticks li::before,
.panel .ticks li::before,
.step .ticks li::before,
.card-cta .ticks li::before,
.contact-card .ticks li::before {
  background-color: #e8f0ff;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f6bff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
}
.step::before { color: #dbe6fa; }

/* --------------------------------------------------------------------------
   Odoo: banda de presentación, chips y FAQ
   -------------------------------------------------------------------------- */
.odoo-band {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 44px; align-items: center;
  padding: 42px; border-radius: var(--radius-lg);
  background:
    radial-gradient(700px 320px at 92% 0%, rgba(49, 212, 255, .16), transparent 62%),
    linear-gradient(140deg, rgba(31, 107, 255, .14), rgba(9, 24, 48, .6));
  border: 1px solid rgba(126, 170, 240, .26);
}
.odoo-band h2 { font-size: clamp(1.6rem, 2.5vw, 2.2rem); margin: 14px 0 12px; }
.odoo-band p { color: #a9bcd8; font-size: 1.02rem; line-height: 1.7; }

.odoo-chips { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.odoo-chips a {
  display: flex; align-items: center; gap: 11px; height: 100%;
  padding: 14px; border-radius: 13px; text-decoration: none;
  background: rgba(255, 255, 255, .045); border: 1px solid rgba(126, 170, 240, .18);
  color: #e6eefc; font-weight: 650; font-size: .9rem; line-height: 1.25;
  transition: background .18s, border-color .18s, transform .18s;
}
.odoo-chips a:hover { background: rgba(31, 107, 255, .18); border-color: rgba(126, 170, 240, .45); transform: translateY(-2px); }
.odoo-chips a svg { color: #6fb0ff; flex: 0 0 auto; }
.odoo-chips small { display: block; font-weight: 500; color: #93a8c6; font-size: .78rem; margin-top: 3px; }

.faq { display: grid; gap: 12px; max-width: 900px; }
.faq details {
  background: rgba(255, 255, 255, .035); border: 1px solid rgba(126, 170, 240, .18);
  border-radius: 14px; padding: 18px 22px;
}
.faq details[open] { border-color: rgba(126, 170, 240, .38); }
.faq summary { cursor: pointer; font-weight: 700; color: #fff; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: #8fc4ff; font-weight: 700; }
.faq details[open] summary::after { content: "\2013"; }
.faq p { margin-top: 12px; color: #a9bcd8; }

@media (max-width: 980px) {
  .odoo-band { grid-template-columns: 1fr; gap: 28px; padding: 30px; }
}
@media (max-width: 560px) {
  .odoo-chips { grid-template-columns: 1fr; }
  .odoo-band { padding: 24px; }
}

/* --------------------------------------------------------------------------
   Guías / artículos largos
   -------------------------------------------------------------------------- */
.article { max-width: 820px; }
.article h2 { font-size: clamp(1.35rem, 2vw, 1.7rem); margin: 40px 0 12px; }
.article p { color: #b9c9e2; font-size: 1.05rem; line-height: 1.78; margin: 0 0 16px; }
.article ul, .article ol { margin: 0 0 20px; padding-left: 22px; color: #b9c9e2; }
.article li { margin-bottom: 9px; line-height: 1.7; }
.article a { color: #9cc6ff; }
.article-note {
  margin: 32px 0; padding: 18px 22px; border-left: 3px solid var(--blue);
  background: rgba(31, 107, 255, .1); border-radius: 0 12px 12px 0; color: #dbe7f8;
}
.article-note a { color: #9cc6ff; font-weight: 700; }

.guide-callout {
  max-width: 900px; padding: 34px; border-radius: var(--radius-lg);
  border: 1px solid rgba(126, 170, 240, .22);
  background: linear-gradient(140deg, rgba(31, 107, 255, .12), rgba(9, 24, 48, .5));
}
.guide-callout h2 { margin: 12px 0 10px; font-size: clamp(1.3rem, 2vw, 1.7rem); }
.guide-callout p { color: #a9bcd8; margin-bottom: 20px; }

.guide-links {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr));
}
.guide-links a {
  display: flex; flex-direction: column; gap: 6px; height: 100%;
  padding: 18px 20px; border-radius: 14px; text-decoration: none;
  border: 1px solid rgba(126, 170, 240, .2); background: rgba(255, 255, 255, .035);
  color: #fff; font-weight: 650; line-height: 1.35;
  transition: background .18s, border-color .18s;
}
.guide-links a:hover { background: rgba(31, 107, 255, .14); border-color: rgba(126, 170, 240, .45); }
.guide-links span { color: #93a8c6; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; }
@media (max-width: 760px) { .guide-links { grid-template-columns: 1fr; } }

/* Marca en el pie: que quepa en la columna */
.site-footer .brand { align-items: center; gap: 10px; }
.site-footer .brand-head { width: 38px; height: 42px; background-size: 570px 42px; }
.site-footer .brand-wordmark { height: 46px; }
@media (max-width: 760px) {
  .site-footer .brand-wordmark { height: 38px; }
}

/* Selector de idioma */
.lang-switch { display: flex; align-items: center; gap: 0; margin-left: 8px; padding-left: 10px; border-left: 1px solid rgba(255,255,255,.14); }
.lang-link { padding: 7px 7px; font-size: .78rem; }
.lang-link {
  font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-decoration: none;
  color: #93a8c6; padding: 7px 8px; border-radius: 8px; line-height: 1;
}
.lang-link:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.lang-link.is-active { color: #fff; background: rgba(31, 107, 255, .24); }
@media (max-width: 980px) { .lang-switch { margin: 10px 0 0; padding: 0 12px; } .lang-link { padding: 9px 12px; } }

/* Nota de idioma enlazado */
.lang-note { font-weight: 500; font-size: .78rem; color: #8fa6c6; letter-spacing: 0; }

/* Cabecera compacta en portátiles: evita que el selector de idioma se salga */
@media (min-width: 981px) and (max-width: 1220px) {
  .nav { gap: 14px; }
  .nav-link { padding: 9px 8px; font-size: .87rem; }
  .brand-head { width: 48px; height: 52px; background-size: 720px 52px; }
  .brand-wordmark { height: 48px; }
  .lang-link { padding: 6px 5px; font-size: .72rem; }
  .nav-cta .btn { padding: 9px 14px; font-size: .85rem; }
}

/* Selector de idioma visible también en móvil, junto al menú */
.lang-switch-mobile { display: none; }
@media (max-width: 980px) {
  .lang-switch-mobile {
    display: flex; align-items: center; gap: 2px;
    margin-left: auto; padding-left: 0; border-left: 0;
  }
  .lang-switch-mobile .lang-link { padding: 6px 4px; font-size: .74rem; }
}

/* Validación del formulario */
.field input.is-invalid, .field textarea.is-invalid, .field select.is-invalid {
  border-color: #ff8f8f; box-shadow: 0 0 0 2px rgba(255, 120, 120, .18);
}
.field-error { display: block; margin-top: 6px; font-size: .78rem; color: #ffb4b4; }

/* Confirmación de envío */
.form-success {
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  padding: 28px; border-radius: 16px;
  background: rgba(46, 204, 113, .10); border: 1px solid rgba(46, 204, 113, .35);
}
.form-success:focus { outline: none; }
.form-success h3 { margin: 0; color: #fff; font-size: 1.3rem; }
.form-success p { margin: 0; color: #b7c9e6; }
.form-success-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(46, 204, 113, .2); color: #7ee2a8; font-size: 1.2rem;
}

/* El atributo hidden manda siempre (los display de las clases lo anulaban) */
[hidden] { display: none !important; }

.form-success { position: relative; }
.form-success-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.form-success-close {
  position: absolute; top: 10px; right: 12px;
  width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.18); background: transparent;
  color: #b7c9e6; font-size: 18px; line-height: 1; cursor: pointer;
}
.form-success-close:hover { background: rgba(255,255,255,.08); color: #fff; }
