/* ACENTEC: hoja de estilos principal.
   Radios: botones e inputs 12px, tarjetas 20px, insignias pill.
   Acento único: naranja señal. Tema claro y oscuro según el sistema. */

@font-face {
  font-family: "Geist";
  src: url("../fonts/geist-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist";
  src: url("../fonts/geist-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Geist Mono";
  src: url("../fonts/geist-mono-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  /* Paleta corporativa tomada del logo de ACENTEC */
  --brand-900: #025b87;
  --brand-600: #3d88a7;
  --brand-300: #77b4c8;
  --brand-100: #b2e1e8;
  --amber: #f5c164;

  /* Estética oscura propia, distinta de cloud.acentec.es */
  --bg: #050f16;
  --bg-2: #081822;
  --surface: #0d2130;
  --line: rgb(178 225 232 / 0.1);
  --line-strong: rgb(178 225 232 / 0.2);
  --fg: #f1f7f9;
  --fg-2: #adc2cc;
  --fg-3: #80969f;
  --brand: var(--brand-600);
  --accent: var(--amber);
  --accent-ink: var(--amber);
  --on-accent: #231f20;
  --glow: rgb(245 193 100 / 0.5);
  --shadow: 0 1px 0 rgb(255 255 255 / 0.05) inset, 0 20px 60px -20px rgb(0 0 0 / 0.75);
  --scene-dots: #77b4c8;
  --scene-shell: #b2e1e8;
  --scene-accent: #f5c164;

  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --r-sm: 12px;
  --r-md: 20px;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 68px;
  color-scheme: dark;
}


*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 1.0625rem/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -0.025em; font-weight: 650; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.4rem); letter-spacing: -0.04em; font-weight: 700; }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.015em; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--accent); color: var(--on-accent); border-radius: var(--r-sm); font-weight: 600; }
.skip:focus { top: 12px; }
.icon { width: 1.25em; height: 1.25em; flex: none; stroke-width: 1.75; }
.eyebrow { font: 500 0.8rem/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 18px; }

/* Botones */
.btn {
  --mx: 0px; --my: 0px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 0 20px;
  border-radius: var(--r-sm); border: 1px solid transparent;
  font: 600 0.98rem/1 var(--font); text-decoration: none; white-space: nowrap;
  cursor: pointer;
  transform: translate(var(--mx), var(--my));
  transition: transform 0.35s var(--ease), background-color 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.3s;
}
.btn:active { transform: translate(var(--mx), calc(var(--my) + 1px)) scale(0.98); }
.btn--lg { min-height: 54px; padding: 0 26px; font-size: 1.02rem; }
.btn--primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 10px 30px -10px var(--glow); }
.btn--primary:hover { background: color-mix(in srgb, var(--accent) 85%, white); }
.btn--primary .icon { transition: transform 0.35s var(--ease); }
.btn--primary:hover .icon { transform: translateX(3px); }
.btn--ghost { background: color-mix(in srgb, var(--surface) 60%, transparent); color: var(--fg); border-color: var(--line-strong); backdrop-filter: blur(8px); }
.btn--ghost:hover { border-color: var(--fg-3); }
.badge { display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 999px; font: 500 0.78rem/1 var(--mono); letter-spacing: 0.04em; border: 1px solid var(--line-strong); color: var(--fg-2); }

/* Cabecera */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: inline-flex; align-items: center; color: var(--fg); }
.logo img { height: 30px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav ul { display: flex; align-items: center; gap: 26px; }
.nav a:not(.btn) { position: relative; text-decoration: none; font-size: 0.95rem; font-weight: 500; color: var(--fg-2); transition: color 0.2s; display: inline-flex; align-items: center; gap: 6px; }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: var(--fg); }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease); }
.nav a:not(.btn):hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav__client .icon { width: 1em; height: 1em; }
.nav__cta { min-height: 42px; padding: 0 16px; font-size: 0.92rem; }
.menu-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: var(--r-sm); border: 1px solid var(--line-strong); background: transparent; color: var(--fg); cursor: pointer; }
.menu-toggle .icon--close { display: none; }
.menu-toggle[aria-expanded="true"] .icon--open { display: none; }
.menu-toggle[aria-expanded="true"] .icon--close { display: block; }

@media (max-width: 1023px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 20px;
    padding: 24px var(--gutter) 32px;
    background: var(--bg); border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity 0.25s, transform 0.35s var(--ease), visibility 0.25s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav ul a:not(.btn) { padding: 14px 0; font-size: 1.15rem; border-bottom: 1px solid var(--line); width: 100%; }
  .nav a:not(.btn)::after { display: none; }
  .nav__cta { min-height: 52px; }
}

/* Hero */
.hero { position: relative; min-height: min(calc(100dvh - var(--header-h)), 860px); display: flex; align-items: center; overflow: hidden; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(60% 60% at 78% 45%, color-mix(in srgb, var(--brand) 22%, transparent), transparent 70%),
    linear-gradient(to bottom, transparent 70%, var(--bg));
}
.hero__scene { position: absolute; inset: 0 0 0 38%; z-index: -1; }
.hero__scene canvas { width: 100% !important; height: 100% !important; display: block; }
.hero__grid { padding-block: 72px 96px; }
.hero__copy { max-width: 760px; }
.hero__title { margin-bottom: 24px; padding-bottom: 4px; }
.hero__lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--fg-2); max-width: 34ch; margin-bottom: 36px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.rotator { position: relative; display: inline-grid; color: var(--accent-ink); vertical-align: bottom; overflow: hidden; padding-bottom: 0.08em; }
.rotator > span { grid-area: 1 / 1; display: inline-block; }
.rotator .is-out { animation: rot-out 0.55s var(--ease) forwards; }
.rotator .is-in { animation: rot-in 0.7s var(--ease) both; }
@keyframes rot-in { from { transform: translateY(100%) rotateX(-70deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes rot-out { to { transform: translateY(-100%) rotateX(70deg); opacity: 0; } }

@media (max-width: 860px) {
  .hero { min-height: auto; flex-direction: column; align-items: stretch; }
  .hero__scene { position: relative; inset: auto; order: 2; width: 100%; height: 360px; margin-top: -24px; }
  .hero__grid { padding-block: 48px 0; }
}

/* Banda de datos */
.facts { border-block: 1px solid var(--line); background: var(--bg); position: relative; z-index: 1; }
.facts__list { display: grid; grid-template-columns: repeat(4, 1fr); }
.facts__list li { display: flex; align-items: center; gap: 12px; padding: 22px 20px; color: var(--fg-2); font-size: 0.95rem; line-height: 1.35; }
.facts__list li + li { border-left: 1px solid var(--line); }
.facts__list .icon { color: var(--accent-ink); width: 22px; height: 22px; }
.facts__list strong { color: var(--fg); font-weight: 600; display: block; }
@media (max-width: 860px) {
  .facts__list { grid-template-columns: 1fr 1fr; padding-inline: 0; }
  .facts__list li { padding: 18px var(--gutter); }
  .facts__list li:nth-child(3) { border-left: 0; }
  .facts__list li:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 480px) {
  .facts__list { grid-template-columns: 1fr; }
  .facts__list li + li { border-left: 0; border-top: 1px solid var(--line); }
}

/* Marquesina */
.marquee { overflow: hidden; padding-block: 26px; border-bottom: 1px solid var(--line); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee ul { display: flex; gap: 56px; padding-right: 56px; }
.marquee li { font: 500 clamp(1.1rem, 2vw, 1.5rem)/1 var(--mono); color: var(--fg-3); letter-spacing: -0.02em; white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Secciones */
.section { padding-block: clamp(72px, 10vw, 128px); position: relative; }
.section--tint { background: var(--bg-2); }
.section__head { max-width: 720px; margin-bottom: 56px; }
.section__head h2 { margin-bottom: 18px; }
.section__head p { color: var(--fg-2); font-size: 1.12rem; max-width: 60ch; }

/* Bento de servicios */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; perspective: 1400px; }
.bento__cell {
  --rx: 0deg; --ry: 0deg; --gx: 50%; --gy: 50%;
  position: relative; display: flex; flex-direction: column; gap: 14px;
  min-height: 260px; padding: 28px;
  border-radius: var(--r-md); border: 1px solid var(--line);
  background: var(--surface); text-decoration: none; color: var(--fg);
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform 0.5s var(--ease), border-color 0.3s, box-shadow 0.4s;
  overflow: hidden;
}
.bento__cell::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(420px circle at var(--gx) var(--gy), color-mix(in srgb, var(--accent) 16%, transparent), transparent 60%);
  opacity: 0; transition: opacity 0.4s;
}
.bento__cell:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); box-shadow: var(--shadow); }
.bento__cell:hover::before { opacity: 1; }
.bento__cell > * { transform: translateZ(30px); }
.bento__cell--big { grid-column: span 2; min-height: 320px; }
.bento__cell--big h3 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); }
.bento__cell:nth-child(1) { background: linear-gradient(150deg, color-mix(in srgb, var(--brand) 26%, var(--surface)), var(--surface) 65%); }
.bento__cell:nth-child(2) { background: var(--brand-900); color: #eef5f7; border-color: transparent; }
.bento__cell:nth-child(2) p, .bento__cell:nth-child(2) .bento__more { color: rgb(238 245 247 / 0.78); }
.bento__cell:nth-child(2) .bento__icon { background: rgb(255 255 255 / 0.12); color: var(--amber); }
.bento__cell:nth-child(6) { background-image: radial-gradient(color-mix(in srgb, var(--fg) 14%, transparent) 1px, transparent 1px); background-size: 14px 14px; background-color: var(--surface); }
.bento__icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: color-mix(in srgb, var(--brand) 16%, transparent); color: var(--accent-ink); }
.bento__icon .icon { width: 24px; height: 24px; }
.bento__cell p { color: var(--fg-2); font-size: 0.98rem; }
.bento__more { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.92rem; color: var(--fg-2); }
.bento__more .icon { transition: transform 0.35s var(--ease); }
.bento__cell:hover .bento__more .icon { transform: translateX(4px); }
@media (max-width: 1023px) { .bento { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .bento { grid-template-columns: 1fr; } .bento__cell--big { grid-column: auto; } .bento__cell { min-height: 0; } }

/* Pasos */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 56px; position: relative; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 23px; height: 2px; background: var(--line-strong); }
.steps::after { content: ""; position: absolute; left: 0; right: 0; top: 23px; height: 2px; background: var(--accent); transform-origin: left; transform: scaleX(var(--progress, 1)); }
.steps li { counter-increment: step; position: relative; padding-right: 32px; }
.steps li::before {
  content: counter(step); position: relative; z-index: 1;
  display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 28px;
  border-radius: 50%; background: var(--bg-2); border: 2px solid var(--accent);
  font: 600 1rem/1 var(--mono); color: var(--accent-ink);
}
.steps h3 { margin-bottom: 10px; font-size: 1.4rem; }
.steps p { color: var(--fg-2); max-width: 34ch; }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .steps::before, .steps::after { left: 23px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .steps::after { transform-origin: top; transform: scaleY(var(--progress, 1)); }
  .steps li { padding: 0 0 0 76px; }
  .steps li::before { position: absolute; left: 0; top: 0; margin: 0; }
}

/* Bloque dividido */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split__copy h2 { margin-bottom: 20px; }
.split__copy > p { color: var(--fg-2); font-size: 1.1rem; margin-bottom: 32px; max-width: 52ch; }
.sectors { display: flex; flex-wrap: wrap; gap: 10px; }
.sectors li { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 0.95rem; color: var(--fg-2); transition: border-color 0.2s, color 0.2s, transform 0.3s var(--ease); }
.sectors li:hover { border-color: var(--accent); color: var(--fg); transform: translateY(-2px); }
.sectors .icon { color: var(--accent-ink); width: 18px; height: 18px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* Fotos y huecos para fotos */
.photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-md); }
.photo--empty {
  display: grid; place-items: center; text-align: center;
  border: 1px dashed var(--line-strong);
  background: repeating-linear-gradient(135deg, transparent 0 14px, color-mix(in srgb, var(--fg) 4%, transparent) 14px 15px), var(--surface);
  color: var(--fg-3); font: 500 0.9rem/1.5 var(--mono);
}
.photo--empty small { font-size: 0.78rem; opacity: 0.8; }

/* Productos propios */
.products { overflow: hidden; }
.products__grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 16px; perspective: 1200px; }
.product {
  --rx: 0deg; --ry: 0deg; --gx: 50%; --gy: 50%;
  position: relative; display: flex; flex-direction: column; gap: 14px;
  min-height: 280px; padding: 30px; border-radius: var(--r-md);
  background: var(--surface); border: 1px solid var(--line);
  transform: rotateX(var(--rx)) rotateY(var(--ry)); transform-style: preserve-3d;
  transition: transform 0.5s var(--ease), box-shadow 0.4s;
}
.product:hover { box-shadow: var(--shadow); }
.product > * { transform: translateZ(26px); }
.product:first-child { background: linear-gradient(160deg, var(--surface), color-mix(in srgb, var(--brand) 22%, var(--surface))); }
.product h3 { font-size: 1.8rem; letter-spacing: -0.03em; }
.product p { color: var(--fg-2); }
.product__icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; background: var(--brand-900); color: var(--amber); }
.product__icon .icon { width: 26px; height: 26px; }
.product__link { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font: 500 0.95rem/1 var(--mono); color: var(--accent-ink); text-decoration: none; }
.product__link:hover { text-decoration: underline; text-underline-offset: 4px; }
.product .badge { margin-top: auto; align-self: flex-start; }
@media (max-width: 860px) { .products__grid { grid-template-columns: 1fr; } .product { min-height: 0; } }

/* Dominios y hosting */
.hosting { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding: clamp(32px, 5vw, 56px); border-radius: var(--r-md); border: 1px solid var(--line); background: radial-gradient(80% 140% at 100% 0%, color-mix(in srgb, var(--brand) 18%, transparent), transparent 60%), var(--surface); }
.hosting__copy { max-width: 560px; }
.hosting__copy h2 { margin-bottom: 14px; font-size: clamp(1.7rem, 3vw, 2.4rem); }
.hosting__copy p { color: var(--fg-2); }
.hosting__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Preguntas frecuentes */
.faq { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.faq__list details { border-bottom: 1px solid var(--line-strong); }
.faq__list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0; font-size: 1.15rem; font-weight: 600; }
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after { content: "+"; font: 400 1.6rem/1 var(--mono); color: var(--accent-ink); transition: transform 0.35s var(--ease); }
.faq__list details[open] summary::after { transform: rotate(45deg); }
.faq__list details p { color: var(--fg-2); padding-bottom: 24px; max-width: 62ch; }
@media (max-width: 860px) { .faq { grid-template-columns: 1fr; } }

/* Llamada final */
.cta { padding-block: clamp(56px, 8vw, 96px); }
.cta__inner { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; padding: clamp(36px, 6vw, 72px); border-radius: var(--r-md); background: linear-gradient(135deg, #04324a, var(--brand-900)); color: #eef5f7; position: relative; overflow: hidden; isolation: isolate; }
.cta__inner::before { content: ""; position: absolute; width: 520px; height: 520px; right: -160px; top: -240px; z-index: -1; border-radius: 50%; background: radial-gradient(circle, rgb(245 193 100 / 0.45), transparent 65%); filter: blur(10px); animation: float 12s ease-in-out infinite alternate; }
@keyframes float { to { transform: translate(-80px, 60px) scale(1.15); } }
.cta h2 { margin-bottom: 12px; }
.cta p { color: rgb(238 245 247 / 0.78); font-size: 1.1rem; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
.cta .btn--ghost { color: #eef5f7; border-color: rgb(238 245 247 / 0.3); background: transparent; }
.cta .btn--ghost:hover { border-color: #eef5f7; }
@media (max-width: 960px) { .cta__inner { grid-template-columns: 1fr; } .cta__actions { justify-content: flex-start; } }

/* Páginas interiores */
.page-hero { padding-block: clamp(56px, 8vw, 104px) clamp(40px, 6vw, 72px); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: -40% -10% auto auto; width: 60vw; height: 60vw; max-width: 760px; max-height: 760px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--brand) 18%, transparent), transparent 65%); z-index: -1; }
.page-hero h1 { font-size: clamp(2.2rem, 4.4vw, 3.5rem); max-width: 18ch; margin-bottom: 20px; }
.page-hero p { color: var(--fg-2); font-size: 1.2rem; max-width: 58ch; }
.crumbs { display: flex; gap: 8px; margin-bottom: 24px; font: 500 0.85rem/1 var(--mono); color: var(--fg-3); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--fg); }

.svc-hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.svc-hero__icon { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 18px; background: var(--brand-900); color: var(--amber); margin-bottom: 28px; }
.svc-hero__icon .icon { width: 30px; height: 30px; }
.svc-hero .hero__actions { margin-top: 32px; }
.svc-hero__scene { position: relative; isolation: isolate; aspect-ratio: 1; width: 100%; max-height: 520px; }
.svc-hero__scene::before { content: ""; position: absolute; inset: 10%; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--brand) 35%, transparent), transparent); z-index: -1; }
.svc-hero__scene canvas { width: 100% !important; height: 100% !important; display: block; }
@media (max-width: 860px) { .svc-hero { grid-template-columns: 1fr; } .svc-hero__scene { max-height: 360px; } }

/* Logo 3D que se monta al bajar */
.logo3d { overflow: hidden; }
.logo3d__scene { position: relative; isolation: isolate; height: clamp(360px, 46vw, 560px); }
.logo3d__scene::before { content: ""; position: absolute; inset: 8%; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--brand-900) 45%, transparent), transparent); z-index: -1; }
.logo3d__scene canvas { width: 100% !important; height: 100% !important; display: block; }
.logo3d__list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.logo3d__list li { display: flex; align-items: center; gap: 10px; color: var(--fg-2); font-size: 0.98rem; }
.logo3d__list .icon { color: var(--accent-ink); width: 20px; height: 20px; flex: none; }
@media (max-width: 860px) { .logo3d .split { grid-template-columns: 1fr; } .logo3d__list { grid-template-columns: 1fr; } }

.includes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.includes li { background: var(--bg); padding: 32px 28px; transition: background-color 0.3s; }
.includes li:hover { background: var(--surface); }
.includes .icon { color: var(--accent-ink); margin-bottom: 18px; width: 24px; height: 24px; }
.includes h3 { margin-bottom: 10px; font-size: 1.12rem; }
.includes p { color: var(--fg-2); font-size: 0.98rem; }
@media (max-width: 960px) { .includes { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .includes { grid-template-columns: 1fr; } }

.for-who { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: start; padding: 32px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); margin-top: 32px; }
.for-who .icon { width: 28px; height: 28px; color: var(--accent-ink); }
.for-who h2 { font-size: 1.3rem; margin-bottom: 8px; }
.for-who p { color: var(--fg-2); }

.svc-list { display: grid; gap: 0; border-top: 1px solid var(--line-strong); }
.svc-row { display: grid; grid-template-columns: 64px 1fr 1.3fr auto; gap: 28px; align-items: center; padding: 32px 0; border-bottom: 1px solid var(--line-strong); text-decoration: none; color: var(--fg); position: relative; transition: padding 0.4s var(--ease); }
.svc-row:hover { padding-inline: 16px; }
.svc-row .bento__icon { width: 56px; height: 56px; }
.svc-row h2 { font-size: clamp(1.4rem, 2.4vw, 2rem); }
.svc-row p { color: var(--fg-2); }
.svc-row > .icon { width: 28px; height: 28px; color: var(--fg-3); transition: transform 0.35s var(--ease), color 0.2s; }
.svc-row:hover > .icon { transform: translateX(6px); color: var(--accent-ink); }
@media (max-width: 860px) { .svc-row { grid-template-columns: 56px 1fr; } .svc-row p { grid-column: 1 / -1; } .svc-row > .icon { display: none; } }

.values { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.values li { padding: 32px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); }
.values .icon { color: var(--accent-ink); width: 26px; height: 26px; margin-bottom: 18px; }
.values h3 { margin-bottom: 10px; }
.values p { color: var(--fg-2); }
@media (max-width: 760px) { .values { grid-template-columns: 1fr; } }

/* Contacto */
.contact { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact__channels { display: grid; gap: 12px; }
.channel { display: flex; gap: 16px; align-items: center; padding: 20px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); text-decoration: none; transition: border-color 0.2s, transform 0.3s var(--ease); }
a.channel:hover { border-color: var(--accent); transform: translateX(4px); }
.channel .icon { width: 24px; height: 24px; color: var(--accent-ink); }
.channel small { display: block; color: var(--fg-3); font-size: 0.85rem; }
.channel strong { font-weight: 600; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: clamp(24px, 4vw, 40px); border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); }
.field { display: grid; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 0.95rem; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  border-radius: var(--r-sm); border: 1px solid var(--line-strong);
  background: var(--bg); color: var(--fg); font: inherit; font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--fg-3); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
.field .help { color: var(--fg-3); font-size: 0.85rem; }
.field .error { color: #ff8a80; font-size: 0.88rem; font-weight: 500; }
.field [aria-invalid="true"] { border-color: #d92d20; }
.check { grid-column: 1 / -1; display: flex; gap: 12px; align-items: flex-start; font-size: 0.95rem; color: var(--fg-2); }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { justify-self: start; }
.alert { grid-column: 1 / -1; display: flex; gap: 12px; padding: 16px 18px; border-radius: var(--r-sm); font-weight: 500; }
.alert--ok { background: color-mix(in srgb, #12b76a 14%, transparent); border: 1px solid color-mix(in srgb, #12b76a 45%, transparent); }
.alert--error { background: color-mix(in srgb, #d92d20 12%, transparent); border: 1px solid color-mix(in srgb, #d92d20 45%, transparent); }
.legal-note { grid-column: 1 / -1; font-size: 0.82rem; color: var(--fg-3); line-height: 1.5; }
@media (max-width: 960px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .form { grid-template-columns: 1fr; } }

/* Textos legales */
.legal { max-width: 780px; }
.legal h2 { font-size: 1.5rem; margin: 48px 0 16px; }
.legal h3 { font-size: 1.15rem; margin: 28px 0 10px; }
.legal p, .legal li { color: var(--fg-2); margin-bottom: 14px; }
.legal ul, .legal ol { padding-left: 22px; margin-bottom: 16px; }
.legal ul { list-style: disc; }
.legal ol { list-style: decimal; }
.legal table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; font-size: 0.95rem; }
.legal th, .legal td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { color: var(--fg); font-weight: 600; }
.legal td { color: var(--fg-2); }
.legal .table-scroll { overflow-x: auto; }
.legal a { color: var(--accent-ink); }
.legal .meta { font: 500 0.85rem/1.4 var(--mono); color: var(--fg-3); }
.legal .todo { background: color-mix(in srgb, var(--accent) 35%, transparent); padding: 2px 6px; border-radius: 6px; color: var(--fg); }

/* Pie */
.site-footer { border-top: 1px solid var(--line); padding-top: 72px; background: var(--bg); }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr 1fr; gap: 40px; padding-bottom: 56px; }
.site-footer__brand img { height: 30px; width: auto; margin-bottom: 18px; }
.site-footer__brand p { color: var(--fg-2); max-width: 32ch; margin-bottom: 20px; }
.site-footer__title { font: 500 0.8rem/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 18px; }
.site-footer__links { display: grid; gap: 10px; }
.site-footer__links a { text-decoration: none; color: var(--fg-2); font-size: 0.95rem; transition: color 0.2s; }
.site-footer__links a:hover { color: var(--fg); }
.site-footer__contact li { display: flex; gap: 10px; align-items: flex-start; color: var(--fg-2); font-size: 0.95rem; }
.site-footer__contact .icon { width: 18px; height: 18px; margin-top: 3px; color: var(--accent-ink); }
.social { display: flex; gap: 10px; }
.social a { width: 42px; height: 42px; display: grid; place-items: center; border-radius: var(--r-sm); border: 1px solid var(--line-strong); color: var(--fg-2); transition: color 0.2s, border-color 0.2s; }
.social a:hover { color: var(--fg); border-color: var(--fg-3); }
.site-footer__legal { border-top: 1px solid var(--line); padding-block: 24px; color: var(--fg-3); font-size: 0.88rem; }
@media (max-width: 960px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* Error 404 */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding-block: 96px; }
.notfound__code { font: 700 clamp(6rem, 20vw, 12rem)/1 var(--mono); letter-spacing: -0.06em; color: transparent; -webkit-text-stroke: 2px var(--brand); margin-bottom: 16px; }
.notfound p { color: var(--fg-2); margin: 16px auto 32px; max-width: 46ch; }

/* Animaciones de entrada */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js [data-tilt].reveal.is-in { transform: rotateX(var(--rx)) rotateY(var(--ry)); }
.js [data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; }
.js [data-split] .w > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease); transition-delay: calc(var(--i) * 60ms + 0.1s); }
.js [data-split].is-in .w > span { transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js [data-split] .w > span { transform: none; }
  .marquee__track { animation: none; }
}

/* Aparición suave de la escena 3D */
.hero__scene canvas, .logo3d__scene canvas, .svc-hero__scene canvas { opacity: 0; transition: opacity 1.4s var(--ease); }
.hero__scene.is-ready canvas, .logo3d__scene.is-ready canvas, .svc-hero__scene.is-ready canvas { opacity: 1; }
.hero__grid { pointer-events: none; }
.hero__copy { pointer-events: auto; }
.hero__scene.is-interactive, .svc-hero__scene.is-ready { cursor: grab; touch-action: pan-y; }
.hero__scene.is-dragging, .svc-hero__scene.is-dragging { cursor: grabbing; }
.notfound .hero__actions { justify-content: center; }
.svc-summary { margin: 0 0 18px; padding: 14px 18px; border-left: 3px solid var(--amber); border-radius: 0 var(--r-md, 12px) var(--r-md, 12px) 0; background: rgb(178 225 232 / 0.05); color: var(--fg-2); font-size: 0.98rem; line-height: 1.6; max-width: 62ch; }
.svc-summary strong { color: var(--fg); font-weight: 600; }
.channel--main { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--surface)); padding: 24px 20px; }
.channel--main strong { font-size: 1.2rem; color: var(--accent-ink); }
.channel--main .icon { width: 28px; height: 28px; }
