/* Aranjuez Technologies · estilos de aranjuez.dev (rediseño oct 2026)
   Paleta Atardecer e IBM Plex del manual de marca, con superficies de vidrio:
   fondo navy-deep, hairlines translúcidos en vez de bordes, halo de luz arriba
   y un solo color de acción (coral). Dos temas: oscuro (por defecto) y claro,
   controlados con data-theme en <html>. */

@font-face { font-family: "IBM Plex Mono"; src: url(/assets/fonts/ibm-plex-mono-500.woff2) format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url(/assets/fonts/ibm-plex-sans-400.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url(/assets/fonts/ibm-plex-sans-500.woff2) format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url(/assets/fonts/ibm-plex-sans-600.woff2) format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  /* Paleta */
  --navy: #13294B;
  --navy-line: #2E4C7A;
  --navy-deep: #0C1C36;
  --ink: #0F1C33;
  --slate: #55607A;
  --mist: #BAC6DB;
  --cream: #FFF5F0;
  --coral: #FF6A4D;
  --coral-light: #FF8A70;
  --coral-text: #C23F26;
  --coral-detail: #E8553A;
  --sun: #FFC857;
  --white: #FFFFFF;

  /* Tipografía */
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-sans: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Medidas */
  --maxw: 1200px;
  --gutter: 32px;
  --section-y: 120px;
  --r-card: 16px;
  --r-input: 6px;
  --focus-width: 3px;

  /* Tema oscuro (por defecto) */
  --bg: var(--navy-deep);
  --bg-rgb: 12, 28, 54;
  --text: var(--cream);
  --muted: var(--mist);
  --tint: 186, 198, 219;        /* mist, para rgba() */
  --frost: 255, 245, 240;       /* cream, para los filos de luz */
  --grad-a: #FFF5F0;
  --grad-m: #DCE2EC;
  --grad-b: #BAC6DB;
  --cta: var(--coral);
  --cta-text: var(--ink);
  --cta-hover: var(--coral-light);
  --accent-text: var(--coral-light);
  --focus: var(--sun);
  --deep: rgba(19, 41, 75, .72);
  --shadow: rgba(3, 10, 24, .55);
  --grid: rgba(186, 198, 219, .07);
  --halo-a: rgba(150, 172, 214, .13);
  --halo-b: rgba(176, 194, 228, .32);
  --halo-c: rgba(186, 198, 219, .22);
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: var(--cream);
  --bg-rgb: 255, 245, 240;
  --text: var(--ink);
  --muted: var(--slate);
  --tint: 19, 41, 75;           /* navy, para rgba() */
  --frost: 255, 255, 255;
  --grad-a: #0F1C33;
  --grad-m: #1F3558;
  --grad-b: #2E4C7A;
  --cta-hover: var(--coral-detail);
  --accent-text: var(--coral-text);
  --focus: var(--ink);
  --deep: rgba(255, 255, 255, .72);
  --shadow: rgba(19, 41, 75, .14);
  --grid: rgba(19, 41, 75, .07);
  --halo-a: rgba(255, 255, 255, .35);
  --halo-b: rgba(255, 255, 255, .9);
  --halo-c: rgba(255, 255, 255, .6);
  color-scheme: light;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-sans); font-size: 17px; line-height: 1.6; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; transition: background-color .4s, color .4s; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--font-mono); font-weight: 500; line-height: 1.12; letter-spacing: -.03em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: var(--focus-width) solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: var(--cta); color: var(--cta-text); font-weight: 600; }
.skip:focus { left: 16px; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--font-mono); }

/* Atmósfera: cuadrícula tipo plano y foco de luz arriba */
.atmos { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.atmos .grid { position: absolute; inset: 0; background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 80px 80px; -webkit-mask-image: radial-gradient(ellipse 80% 900px at 50% 160px, #000 25%, transparent 100%); mask-image: radial-gradient(ellipse 80% 900px at 50% 160px, #000 25%, transparent 100%); }
.atmos .halo { position: absolute; left: 0; right: 0; top: 0; height: 980px; background: conic-gradient(from 180deg at 50% -6%, transparent 41%, var(--halo-a) 47%, var(--halo-b) 50%, var(--halo-a) 53%, transparent 59%), radial-gradient(55% 32% at 50% -2%, var(--halo-c), transparent 70%); animation: glow 1.6s ease-out backwards; }
body { position: relative; }
.site-header, main, .site-footer { position: relative; z-index: 1; }
.site-header { position: sticky; top: 0; z-index: 5; } /* acompaña el scroll; por encima de main, para que el menú móvil se despliegue sobre la portada */

/* Tipografía luminosa */
.grad { background: linear-gradient(180deg, var(--grad-a) 0%, var(--grad-m) 55%, var(--grad-b) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.display { font-size: clamp(2.5rem, 5.2vw, 3.75rem); line-height: 1.08; letter-spacing: -.035em; max-width: 980px; }
.section h2 { font-size: clamp(2rem, 3.4vw, 2.75rem); max-width: 760px; }
.lead, .intro { font-size: 18px; line-height: 1.6; color: var(--muted); max-width: 640px; }
.eyebrow { display: flex; align-items: center; justify-content: center; gap: 16px; font-family: var(--font-mono); font-size: 13px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.eyebrow::before, .eyebrow::after { content: ""; height: 1px; width: 120px; background: linear-gradient(90deg, transparent, rgba(var(--tint), .38)); }
.eyebrow::after { background: linear-gradient(90deg, rgba(var(--tint), .38), transparent); }

/* Íconos de línea (máscara con currentColor) */
.ico { display: inline-block; flex: none; width: 22px; height: 22px; background-color: currentColor; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; -webkit-mask-size: contain; mask-size: contain; }
.ico-codigo { -webkit-mask-image: url(/assets/icons/codigo.svg); mask-image: url(/assets/icons/codigo.svg); }
.ico-agente-ia { -webkit-mask-image: url(/assets/icons/agente-ia.svg); mask-image: url(/assets/icons/agente-ia.svg); }
.ico-automatizacion { -webkit-mask-image: url(/assets/icons/automatizacion.svg); mask-image: url(/assets/icons/automatizacion.svg); }
.ico-integracion { -webkit-mask-image: url(/assets/icons/integracion.svg); mask-image: url(/assets/icons/integracion.svg); }
.ico-sitio-web { -webkit-mask-image: url(/assets/icons/sitio-web.svg); mask-image: url(/assets/icons/sitio-web.svg); }
.ico-soporte { -webkit-mask-image: url(/assets/icons/soporte.svg); mask-image: url(/assets/icons/soporte.svg); }
.ico-check { -webkit-mask-image: url(/assets/icons/check.svg); mask-image: url(/assets/icons/check.svg); }
.ico-correo { -webkit-mask-image: url(/assets/icons/correo.svg); mask-image: url(/assets/icons/correo.svg); }
.ico-luna { -webkit-mask-image: url(/assets/icons/luna.svg); mask-image: url(/assets/icons/luna.svg); }
.ico-sol { -webkit-mask-image: url(/assets/icons/sol.svg); mask-image: url(/assets/icons/sol.svg); }
.ico-reloj { -webkit-mask-image: url(/assets/icons/reloj.svg); mask-image: url(/assets/icons/reloj.svg); }
.ico-documento { -webkit-mask-image: url(/assets/icons/documento.svg); mask-image: url(/assets/icons/documento.svg); }
.ico-trato { -webkit-mask-image: url(/assets/icons/trato.svg); mask-image: url(/assets/icons/trato.svg); }
.ico-claridad { -webkit-mask-image: url(/assets/icons/claridad.svg); mask-image: url(/assets/icons/claridad.svg); }
.ico-experiencia { -webkit-mask-image: url(/assets/icons/experiencia.svg); mask-image: url(/assets/icons/experiencia.svg); }

/* Píldoras: vidrio con filo de escarcha; el coral es el único color de acción */
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px; border: 0; border-radius: 999px; font-size: 15px; font-weight: 500; line-height: 1.2; text-decoration: none; cursor: pointer; color: var(--text); background: rgba(var(--tint), .06); box-shadow: inset 0 0 0 1px rgba(var(--tint), .14), inset 0 1px 1px rgba(var(--frost), .12); transition: background-color .2s, box-shadow .2s, color .2s; white-space: nowrap; }
.pill:hover { background: rgba(var(--tint), .12); }
.pill .ico { width: 18px; height: 18px; }
.pill-cta { color: var(--cta-text); background: var(--cta); font-weight: 600; padding: 12px 24px; box-shadow: inset 0 1px 1px rgba(255, 245, 240, .4), 0 0 0 1px rgba(255, 106, 77, .45), 0 14px 34px -12px rgba(255, 106, 77, .6); }
.pill-cta:hover { background: var(--cta-hover); color: var(--cta-text); }
.pill-mono { font-family: var(--font-mono); font-size: 13px; letter-spacing: .06em; padding: 10px 14px; }

/* Interruptor de tema y segmentos */
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(var(--tint), .06); box-shadow: inset 0 0 0 1px rgba(var(--tint), .14); }
.seg-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 38px; min-width: 38px; padding: 0 12px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-size: 14px; font-weight: 500; cursor: pointer; transition: background-color .2s, color .2s; }
.seg-btn:hover { color: var(--text); }
.seg-btn[aria-pressed="true"] { color: var(--text); background: rgba(var(--tint), .14); box-shadow: inset 0 1px 1px rgba(var(--frost), .14); }
.seg-btn .ico { width: 16px; height: 16px; }

/* Vidrio */
.glass { border-radius: var(--r-card); background: rgba(var(--tint), .045); box-shadow: inset 0 1px 1px rgba(var(--frost), .16), inset 0 0 0 1px rgba(var(--tint), .12), inset 0 24px 48px rgba(var(--tint), .035), 0 24px 40px var(--shadow); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); transition: background-color .4s, box-shadow .4s; }
.glass-deep { background: var(--deep); }
.tag { display: inline-flex; align-items: center; padding: 4px 8px; border-radius: 6px; font-size: 12px; font-weight: 500; line-height: 1.3; color: var(--text); background: rgba(var(--tint), .12); box-shadow: inset 0 0 0 1px rgba(var(--tint), .1); white-space: nowrap; }
.hairline { box-shadow: 0 1px 0 rgba(var(--tint), .14); }

/* Encabezado */
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 24px; padding-bottom: 24px; transition: padding .25s; }
.site-header::before { content: ""; position: absolute; inset: 0; background: rgba(var(--bg-rgb), .78); box-shadow: 0 1px 0 rgba(var(--tint), .12); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3); opacity: 0; transition: opacity .3s; pointer-events: none; }
.site-header.is-stuck::before { opacity: 1; }
.site-header.is-stuck .wrap { padding-top: 14px; padding-bottom: 14px; }
.site-header .wrap > * { position: relative; }
.nav a[aria-current="page"], .menu-panel a[aria-current="page"] { color: var(--text); }
.nav a[aria-current="page"] { box-shadow: 0 1px 0 var(--accent-text); }
/* Al saltar a un ancla, dejar sitio para el encabezado fijo */
[id] { scroll-margin-top: 84px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { height: 40px; width: auto; }
.logo-light { display: none; }
:root[data-theme="light"] .logo-dark { display: none; }
:root[data-theme="light"] .logo-light { display: block; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a, .site-footer nav a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; transition: color .2s; }
.nav a:hover, .site-footer nav a:hover { color: var(--text); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; }
.menu summary::-webkit-details-marker { display: none; }
.menu-panel { position: absolute; right: 0; top: 54px; z-index: 20; display: flex; flex-direction: column; gap: 2px; min-width: 220px; padding: 8px; background: var(--bg); box-shadow: inset 0 1px 1px rgba(var(--frost), .16), inset 0 0 0 1px rgba(var(--tint), .16), 0 24px 40px var(--shadow); }
.menu-panel a { display: block; padding: 12px 14px; border-radius: 10px; color: var(--text); text-decoration: none; font-size: 15px; }
.menu-panel a:hover { background: rgba(var(--tint), .1); }

/* Portada */
.hero-copy { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 28px; padding-top: 72px; }
.hero-copy .lead { text-align: center; }
.ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

/* Abanico de tarjetas */
.fan { position: relative; height: 500px; margin: 64px auto 0; perspective: 1400px; }
.slot { position: absolute; top: 0; left: 50%; }
.slot-c { width: 440px; z-index: 3; transform: translateX(-50%) translateY(0) scale(1); animation: inC .9s cubic-bezier(.2, .7, .2, 1) .55s backwards; }
.slot-l { width: 380px; top: 44px; z-index: 2; transform: translateX(calc(-50% - 400px)) translateY(0) rotate(-7deg) scale(.94); animation: inL 1s cubic-bezier(.2, .7, .2, 1) .75s backwards; }
.slot-r { width: 380px; top: 44px; z-index: 2; transform: translateX(calc(-50% + 400px)) translateY(0) rotate(7deg) scale(.94); animation: inR 1s cubic-bezier(.2, .7, .2, 1) .85s backwards; }
.float { animation: floaty 7s ease-in-out 2s infinite; }
.float-2 { animation-duration: 8.5s; animation-delay: 2.6s; }
.float-3 { animation-duration: 6.5s; animation-delay: 2.3s; }
.tilt { transition: transform .25s ease-out; transform-style: preserve-3d; will-change: transform; }
.panel { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.panel-title { font-family: var(--font-sans); font-size: 15px; font-weight: 600; letter-spacing: 0; line-height: 1.3; }
.panel-sub { font-size: 12px; color: var(--muted); }
.fan-caption { margin: 28px auto 0; max-width: 640px; text-align: center; font-size: 14px; line-height: 1.5; color: var(--muted); }

/* Panel de la clínica (sistema a la medida) */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.tab { display: inline-flex; align-items: center; padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 500; color: var(--muted); box-shadow: inset 0 0 0 1px rgba(var(--tint), .12); }
.tab[aria-selected="true"] { color: var(--text); background: rgba(var(--tint), .12); }
.states { display: flex; flex-direction: column; gap: 6px; }
.state { display: grid; grid-template-columns: 10px 1fr auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 8px; font-size: 14px; box-shadow: inset 0 0 0 1px rgba(var(--tint), .08); }
.state .n { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: 999px; background: rgba(var(--tint), .35); }
.dot-on { background: var(--text); box-shadow: 0 0 0 3px rgba(var(--frost), .15); }
.new-item { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border-radius: 8px; background: rgba(var(--tint), .08); box-shadow: inset 0 0 0 1px rgba(var(--tint), .12); font-size: 14px; line-height: 1.35; }
.new-item .row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.new-item .tag { font-size: 11px; padding: 2px 6px; }
.new-item .panel-sub, .state .panel-sub { font-size: 12px; }

/* Conversación del agente */
.chat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 12px; box-shadow: 0 1px 0 rgba(var(--tint), .14); }
.chat-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.chat-av { width: 36px; height: 36px; flex: none; border-radius: 999px; display: grid; place-items: center; font-family: var(--font-mono); font-size: 15px; font-weight: 500; color: var(--text); background: rgba(var(--tint), .08); box-shadow: inset 0 0 0 1px rgba(var(--tint), .16); }
.chat-av .ico { width: 18px; height: 18px; }
.chat-name { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-log { display: flex; flex-direction: column; gap: 12px; }
.msg { max-width: 84%; padding: 10px 14px; font-size: 14px; line-height: 1.45; }
.msg-client { align-self: flex-end; border-radius: 14px 14px 4px 14px; background: rgba(var(--tint), .12); }
.msg-agent { align-self: flex-start; border-radius: 14px 14px 14px 4px; background: rgba(var(--frost), .06); box-shadow: inset 0 0 0 1px rgba(var(--tint), .12); }
.chat-note { margin-top: 4px; font-size: 12px; color: var(--muted); }

/* Flujo de automatización */
.flow { display: flex; flex-direction: column; }
.flow li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; }
.flow .rail { display: flex; flex-direction: column; align-items: center; }
.flow .mark { width: 28px; height: 28px; border-radius: 999px; display: grid; place-items: center; color: var(--muted); box-shadow: inset 0 0 0 1px rgba(var(--tint), .3); }
.flow .mark .ico { width: 15px; height: 15px; }
.flow .mark-done { color: var(--bg); background: var(--text); box-shadow: none; }
.flow .mark-next { color: var(--text); background: rgba(var(--tint), .1); }
.flow .rail-line { flex: 1; width: 1px; min-height: 18px; background: rgba(var(--tint), .3); }
.flow .body { display: flex; flex-direction: column; gap: 2px; padding-bottom: 14px; font-size: 14px; line-height: 1.35; }
.flow li:last-child .body { padding-bottom: 0; }

/* Fila de confianza */
.trust-wrap { padding-top: 72px; }
.trust { position: relative; display: flex; justify-content: center; max-width: 1040px; margin: 0 auto; }
.trust::before { content: ""; position: absolute; top: 28px; left: 14%; right: 14%; height: 1px; background: linear-gradient(90deg, transparent, rgba(var(--tint), .3) 15%, rgba(var(--tint), .3) 85%, transparent); }
.trust li { position: relative; flex: 1 1 0; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 0 16px; text-align: center; }
.trust p { font-size: 15px; line-height: 1.45; color: var(--muted); max-width: 240px; }
.ring { width: 56px; height: 56px; border-radius: 999px; display: grid; place-items: center; color: var(--text); background: var(--bg); box-shadow: inset 0 0 0 1px rgba(var(--tint), .16), inset 0 1px 1px rgba(var(--frost), .14), 0 0 0 6px var(--bg); transition: background-color .4s, box-shadow .4s; }

/* Secciones */
.section { padding-top: var(--section-y); }
.section-last { padding-bottom: var(--section-y); }
.section-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; }
.section-head .intro { text-align: center; }
.section-head .intro-wide { max-width: 760px; }

/* Tarjetas con brillo en el borde donde está el cursor */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 56px; }
.card { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 16px; padding: 24px; }
.card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), rgba(var(--frost), .6), transparent 60%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude; opacity: 0; transition: opacity .35s; pointer-events: none; }
.card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(var(--tint), .09), transparent 60%); opacity: 0; transition: opacity .35s; pointer-events: none; }
.card:hover::before, .card:hover::after { opacity: 1; }
.card h3, .cards-index h2 { font-size: 20px; letter-spacing: -.02em; line-height: 1.25; max-width: none; }
.card p { font-size: 15px; line-height: 1.55; color: var(--muted); }
.tile { width: 48px; height: 48px; border-radius: 999px; display: grid; place-items: center; color: var(--text); background: rgba(var(--tint), .06); box-shadow: inset 0 0 0 1px rgba(var(--tint), .16), inset 0 1px 1px rgba(var(--frost), .14); }

/* Personalizador del agente */
.custom { display: grid; grid-template-columns: 300px minmax(0, 1fr) 300px; gap: 24px; align-items: center; margin-top: 56px; }
.custom-col { display: flex; flex-direction: column; gap: 16px; }
.field { padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.field .label { font-size: 12px; color: var(--muted); }
.field .note { font-size: 14px; line-height: 1.5; color: var(--muted); }
.input { width: 100%; min-height: 44px; padding: 10px 12px; border: 0; border-radius: var(--r-input); font: inherit; font-size: 15px; color: var(--text); background: rgba(var(--tint), .06); box-shadow: inset 0 0 0 1px rgba(var(--tint), .14); }
.input::placeholder { color: var(--muted); opacity: .7; }
.input:focus { outline: none; box-shadow: inset 0 0 0 1px rgba(var(--tint), .35); }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch { width: 30px; height: 30px; padding: 0; border: 0; border-radius: 6px; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); transition: transform .15s; }
.swatch:hover { transform: translateY(-1px); }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--text); }
.chat-demo { width: 100%; max-width: 440px; margin: 0 auto; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.chat-demo .msg-agent { box-shadow: none; }

/* Proceso: línea vertical que se llena al hacer scroll */
.timeline { position: relative; max-width: 900px; margin: 56px auto 0; }
.timeline .line { position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; transform: translateX(-50%); background: rgba(var(--tint), .18); }
.timeline .fill { position: absolute; left: 50%; top: 0; width: 2px; height: 0; transform: translateX(-50%); background: linear-gradient(180deg, rgba(var(--frost), .95), rgba(var(--tint), .6)); box-shadow: 0 0 14px rgba(var(--frost), .35); transition: height .7s cubic-bezier(.2, .7, .2, 1); }
.steps { position: relative; }
.step { position: relative; display: grid; grid-template-columns: 1fr 56px 1fr; align-items: start; padding: 28px 0; }
.step-body { display: flex; flex-direction: column; gap: 8px; opacity: .55; transition: opacity .6s; }
.step:nth-child(odd) .step-body { grid-column: 1; grid-row: 1; text-align: right; padding-right: 24px; align-items: flex-end; }
.step:nth-child(even) .step-body { grid-column: 3; grid-row: 1; text-align: left; padding-left: 24px; align-items: flex-start; }
.step h3 { font-size: 22px; letter-spacing: -.02em; }
.step p { font-size: 15px; line-height: 1.55; color: var(--muted); max-width: 360px; }
.node { grid-column: 2; grid-row: 1; justify-self: center; width: 36px; height: 36px; border-radius: 999px; display: grid; place-items: center; font-family: var(--font-mono); font-size: 13px; font-weight: 500; color: var(--muted); background: var(--bg); box-shadow: inset 0 0 0 1px rgba(var(--tint), .3); transition: color .5s, background-color .5s, box-shadow .5s; }
.step.lit .node, html:not(.js) .node { color: var(--bg); background: var(--text); box-shadow: 0 0 0 6px rgba(var(--frost), .12), 0 0 24px rgba(var(--frost), .35); }
.step.lit .step-body, html:not(.js) .step-body { opacity: 1; }
html:not(.js) .timeline .fill { height: 100%; }

/* Nosotros */
.team { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; max-width: 960px; margin: 56px auto 0; }
.person { display: flex; flex-direction: column; gap: 16px; }
.person img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-card); box-shadow: inset 0 1px 1px rgba(var(--frost), .2), 0 24px 40px var(--shadow); }
.person .meta { display: flex; flex-direction: column; gap: 6px; }
.person .role { font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-text); }
.person h3 { font-size: 26px; letter-spacing: -.02em; }
.person .bio { font-size: 15px; line-height: 1.55; color: var(--muted); }

/* Contacto */
.contact-box { max-width: 560px; margin: 48px auto 0; padding: 32px; align-items: center; text-align: center; gap: 14px; }
.contact-box .label { font-size: 14px; color: var(--muted); }
.contact-box .mail { font-family: var(--font-mono); font-size: 24px; font-weight: 500; letter-spacing: -.02em; text-decoration: none; word-break: break-all; }
.contact-box .mail:hover { color: var(--accent-text); }
.contact-box .pill-cta { margin-top: 6px; }
.contact-box .note { font-size: 14px; color: var(--muted); }

/* Enlaces "ver más" dentro de tarjetas y notas */
.more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; font-size: 15px; font-weight: 500; color: var(--accent-text); text-decoration: none; }
.more::after { content: "→"; transition: transform .2s; }
.more:hover { text-decoration: underline; text-underline-offset: 3px; }
.more:hover::after { transform: translateX(3px); }
.center-link { margin-top: 40px; text-align: center; }

/* Avance del producto (portada) y bloque "próximamente" */
.teaser { padding: 40px; }
.teaser-text { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; max-width: 760px; }
.teaser-text h2 { max-width: none; }
.teaser-text > p:not(.eyebrow) { font-size: 17px; line-height: 1.6; color: var(--muted); }
.ctas-left { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }

/* Páginas internas: cabecera, migas de pan y encabezados alineados a la izquierda */
.page-head { padding-top: 40px; }
.page-head .wrap { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.page-head .lead { max-width: 720px; }
.page-head + .section { padding-top: 80px; }
.display-sm { font-size: clamp(2.1rem, 4.2vw, 3.1rem); line-height: 1.1; letter-spacing: -.03em; max-width: 880px; }
.eyebrow-left { justify-content: flex-start; }
.eyebrow-left::before { display: none; }
.eyebrow-left::after { width: 72px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.crumbs [aria-current] { color: var(--text); }
.crumbs .sep { opacity: .5; }
.section-head-left { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.section-head-left h2 { max-width: 760px; }
.section-head-left .intro { max-width: 640px; }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; align-items: start; }

/* Para quién es: lista con marcas */
.checks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 40px; }
.checks li { display: flex; gap: 12px; padding: 20px; font-size: 15px; line-height: 1.5; color: var(--muted); }
.checks .ico { width: 20px; height: 20px; margin-top: 2px; color: var(--text); }

/* Qué incluye, ejemplos, secciones de Nosotros */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 48px; }
.features-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.feature { gap: 10px; }
.feature h3 { font-size: 19px; }
.example-situation { font-family: var(--font-mono); font-size: 13px; letter-spacing: .02em; color: var(--accent-text); }
.example h3 { font-family: var(--font-sans); font-weight: 500; font-size: 17px; line-height: 1.5; letter-spacing: 0; }

/* Proceso resumido (páginas internas) */
.steps-mini { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 48px; }
.step-mini { display: flex; flex-direction: column; gap: 10px; padding: 24px; }
.step-mini .n { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.step-mini h3 { font-size: 19px; letter-spacing: -.02em; line-height: 1.25; }
.step-mini p { font-size: 15px; line-height: 1.55; color: var(--muted); }

/* Preguntas frecuentes */
.faq { display: flex; flex-direction: column; gap: 12px; margin-top: 40px; max-width: 820px; }
.faq details { padding: 0 24px; }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; font-size: 17px; font-weight: 600; line-height: 1.4; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-family: var(--font-mono); font-size: 22px; font-weight: 500; color: var(--muted); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 20px; font-size: 15px; line-height: 1.6; color: var(--muted); max-width: 720px; }

/* Servicios relacionados */
.related { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 40px; }
.related .card { text-decoration: none; }

/* Nosotros (página): fundadores alineados con los encabezados */
.team-left { margin-left: 0; }

/* Privacidad y términos */
.prose { max-width: 760px; display: flex; flex-direction: column; gap: 14px; }
.prose h2 { font-size: 22px; margin-top: 24px; }
.prose p { color: var(--muted); line-height: 1.65; }

/* Pie */
.site-footer { box-shadow: inset 0 1px 0 rgba(var(--tint), .14); }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 40px; padding-top: 40px; padding-bottom: 40px; }
.foot-brand { display: flex; flex-direction: column; gap: 10px; }
.foot-brand .brand img { height: 32px; }
.foot-brand p { font-size: 14px; color: var(--muted); }
.foot-brand a { color: var(--muted); text-decoration: none; }
.foot-brand a:hover { color: var(--text); }
.site-footer nav a { font-size: 14px; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 56px; }
.foot-nav h2 { margin-bottom: 12px; font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.foot-nav ul { display: flex; flex-direction: column; gap: 8px; }

/* 404 */
.notfound { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 24px; }
.notfound > div { display: flex; flex-direction: column; align-items: center; gap: 24px; max-width: 560px; }
.notfound h1 { font-size: clamp(2rem, 5vw, 3rem); }
.notfound p { color: var(--muted); }

/* Entrada orquestada: halo, titular, tarjetas */
.rise { animation: rise .8s cubic-bezier(.2, .7, .2, 1) backwards; }
.d1 { animation-delay: .15s; } .d2 { animation-delay: .28s; } .d3 { animation-delay: .42s; } .d4 { animation-delay: .56s; }
@keyframes glow { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
@keyframes inC { from { opacity: 0; transform: translateX(-50%) translateY(56px) scale(.94); } }
@keyframes inL { from { opacity: 0; transform: translateX(calc(-50% - 120px)) translateY(40px) rotate(0deg) scale(.9); } }
@keyframes inR { from { opacity: 0; transform: translateX(calc(-50% + 120px)) translateY(40px) rotate(0deg) scale(.9); } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* Responsive */
@media (max-width: 1180px) {
  .slot-l, .slot-r { width: 340px; }
  .slot-l { transform: translateX(calc(-50% - 330px)) translateY(0) rotate(-7deg) scale(.9); }
  .slot-r { transform: translateX(calc(-50% + 330px)) translateY(0) rotate(7deg) scale(.9); }
  .custom { grid-template-columns: 260px minmax(0, 1fr) 260px; }
}
@media (max-width: 1000px) {
  .cards, .features, .related, .checks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps-mini { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .custom { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; }
}
@media (max-width: 900px) {
  :root { --gutter: 20px; --section-y: 72px; }
  /* El desenfoque del vidrio cuesta caro en celulares; sin él las tarjetas se ven igual sobre el fondo plano. */
  .glass { -webkit-backdrop-filter: none; backdrop-filter: none; }
  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .teaser { padding: 28px 24px; }
  .page-head { padding-top: 24px; }
  .site-header.is-stuck .wrap { padding-top: 10px; padding-bottom: 10px; }
  .site-header::before { background: rgba(var(--bg-rgb), .9); }
  [id] { scroll-margin-top: 72px; }
  .nav, .hide-sm { display: none; }
  .menu { display: block; }
  .hero-copy { padding-top: 48px; }
  .fan { height: auto; display: flex; flex-direction: column; gap: 20px; align-items: center; perspective: none; margin-top: 48px; }
  .slot { position: static; width: 100%; max-width: 440px; transform: none !important; animation: rise .8s cubic-bezier(.2, .7, .2, 1) .4s backwards; }
  .float { animation: none; }
  .trust { flex-direction: column; gap: 36px; }
  .trust::before { display: none; }
  .eyebrow::before, .eyebrow::after { width: 36px; }
  .timeline .line, .timeline .fill { left: 18px; }
  .step { grid-template-columns: 36px 1fr; }
  .step:nth-child(odd) .step-body, .step:nth-child(even) .step-body { grid-column: 2; text-align: left; padding: 0 0 0 20px; align-items: flex-start; }
  .node { grid-column: 1; }
  .team { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .cards, .features, .features-2, .related, .checks, .steps-mini { grid-template-columns: 1fr; }
  .ctas .pill, .ctas-left .pill { width: 100%; }
  .site-footer .wrap { flex-direction: column; align-items: flex-start; }
  .foot-nav { gap: 32px; }
  .brand img { height: 36px; }
  .faq details { padding: 0 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
