/* inesIA — hoja de estilos principal */

@font-face { font-family: "Plus Jakarta Sans"; src: url("../fonts/pjs-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("../fonts/pjs-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("../fonts/pjs-800.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }

:root {
  --navy: #0b2c48;
  --navy-2: #133a5c;
  --blue: #1455ff;
  --blue-600: #0f46d6;
  --blue-50: #edf2ff;
  --blue-100: #dbe5ff;
  --bg: #ffffff;
  --bg-soft: #f4f7fb;
  --line: #e3e9f1;
  --text: #0b2c48;
  --muted: #536174;
  --ok: #0f8a5f;

  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 1px 2px rgb(11 44 72 / .04), 0 8px 24px rgb(11 44 72 / .06);
  --shadow-lg: 0 24px 64px rgb(11 44 72 / .12);
  --container: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(72px, 10vw, 128px);
  --header-h: 72px;
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue-600); }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -0.025em; font-weight: 800; color: var(--navy); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--blue-100); }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.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-link { position: absolute; left: 16px; top: -64px; z-index: 100; padding: 10px 16px; background: var(--navy); color: #fff; border-radius: 8px; font-weight: 600; }
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .75rem 1.375rem;
  border-radius: 999px; border: 1px solid transparent;
  font: 600 1rem/1.2 var(--font); text-decoration: none; white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
  cursor: pointer;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 6px 18px rgb(20 85 255 / .28); }
.btn-primary:hover { background: var(--blue-600); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: #fff; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy); color: var(--navy); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--blue-50); color: var(--navy); }
.btn-outline-light { color: #fff; border-color: rgb(255 255 255 / .35); }
.btn-outline-light:hover { color: #fff; border-color: #fff; background: rgb(255 255 255 / .06); }
.btn-sm { min-height: 40px; padding: .5rem 1.1rem; font-size: .9375rem; }

/* ---------- Cabecera ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(255 255 255 / .86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 20px rgb(11 44 72 / .05); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }
.brand { display: inline-flex; flex: none; }
.brand img { height: 34px; width: auto; }
.nav-list { display: flex; align-items: center; gap: 4px; }
.nav-list a { display: block; padding: .5rem .8rem; border-radius: 999px; color: var(--navy); font-weight: 600; font-size: .9375rem; text-decoration: none; }
.nav-list a:hover { background: var(--bg-soft); }
.nav-cta { margin-left: 8px; }
.nav-list .nav-cta a { display: inline-flex; padding: .5rem 1.1rem; color: #fff; }
.nav-list .nav-cta a:hover { background: var(--blue-600); }
.nav-toggle { display: none; }

@media (max-width: 960px) {
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px;
    background: #fff; color: var(--navy); cursor: pointer;
  }
  .nav-toggle svg { width: 22px; height: 22px; }
  .nav-toggle .icon-close { display: none; }
  .nav-toggle[aria-expanded="true"] .icon-open { display: none; }
  .nav-toggle[aria-expanded="true"] .icon-close { display: block; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: var(--header-h);
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
    padding: 12px var(--gutter) 24px;
    display: none;
  }
  .site-nav.is-open { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-list a { padding: .85rem 1rem; border-radius: 12px; font-size: 1.0625rem; }
  .nav-cta { margin: 8px 0 0; }
  .nav-cta .btn { width: 100%; }
}

/* ---------- Secciones genéricas ---------- */
.section { padding-block: var(--section); }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 16px; padding: 6px 12px; border-radius: 999px;
  background: var(--blue-50); color: var(--blue);
  font-size: .8125rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.section-title { font-size: clamp(1.875rem, 4.2vw, 2.75rem); }
.section-lead { margin-top: 16px; color: var(--muted); font-size: clamp(1.0625rem, 1.6vw, 1.1875rem); }
.accent { color: var(--blue); }

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: clamp(48px, 8vw, 104px) clamp(64px, 9vw, 120px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60rem 30rem at 85% -10%, rgb(20 85 255 / .10), transparent 60%),
    radial-gradient(40rem 24rem at -10% 110%, rgb(11 44 72 / .06), transparent 60%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: radial-gradient(rgb(11 44 72 / .10) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 75%);
  mask-image: linear-gradient(180deg, #000, transparent 75%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(2.375rem, 6vw, 4rem); letter-spacing: -0.035em; }
.hero h1 .accent { display: block; }
.hero-lead { margin-top: 24px; max-width: 36rem; color: var(--muted); font-size: clamp(1.0625rem, 1.8vw, 1.25rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 36px; color: var(--muted); font-size: .9375rem; font-weight: 600; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points svg { width: 18px; height: 18px; color: var(--ok); flex: none; }
.hero-visual { position: relative; }
.hero-visual .diagram { width: 100%; height: auto; }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 560px; margin-inline: auto; width: 100%; }
}

/* ---------- Vídeo de presentación ---------- */
.video-hero { padding-top: clamp(16px, 3vw, 32px); background: linear-gradient(180deg, var(--bg-soft), #fff); }
.video-frame {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: var(--radius-lg); border: 1px solid var(--line);
  background: #f4f7fd url("../img/video-poster-v3.webp") center / cover no-repeat; box-shadow: var(--shadow-lg);
}
.video-frame video { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-controls { position: absolute; right: clamp(8px, 2vw, 20px); bottom: clamp(8px, 2vw, 20px); display: flex; gap: 8px; }
.video-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-width: 44px; height: 44px; padding: 0 12px; border-radius: 999px;
  border: 1px solid rgb(11 44 72 / .12); background: rgb(255 255 255 / .92); color: var(--navy);
  font: 600 .9rem/1 var(--font); cursor: pointer; box-shadow: 0 4px 14px rgb(11 44 72 / .14);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: background-color .2s, color .2s, transform .2s;
}
.video-btn:hover { background: #fff; transform: translateY(-1px); }
.video-btn svg { width: 18px; height: 18px; flex: none; }
.video-btn-sound { background: var(--blue); border-color: var(--blue); color: #fff; padding: 0 16px; }
.video-btn-sound:hover { background: var(--blue-600); }
.video-btn-sound[aria-pressed="true"] { background: rgb(255 255 255 / .92); border-color: rgb(11 44 72 / .12); color: var(--navy); padding: 0 12px; }
.video-btn .when-paused, .video-btn .when-unmuted,
.video-frame.is-paused .video-btn .when-playing,
.video-frame.is-unmuted .video-btn .when-muted { display: none; }
.video-frame.is-paused .video-btn .when-paused,
.video-frame.is-unmuted .video-btn .when-unmuted { display: block; }
.video-frame.is-unmuted .video-btn-label { display: none; }
.video-hero + .hero { padding-top: clamp(40px, 6vw, 80px); }

/* Móvil y tablet vertical: versión vertical del vídeo (720×980) */
@media (max-width: 767px) {
  .video-frame {
    aspect-ratio: 720 / 980;
    max-width: min(100%, 440px, calc((100svh - var(--header-h) - 24px) * 720 / 980));
    margin-inline: auto;
    background-image: url("../img/video-poster-movil-v3.webp");
  }
}
@media (max-width: 560px) {
  .video-btn { min-width: 36px; height: 36px; padding: 0 10px; font-size: .8125rem; }
  .video-btn-sound { padding: 0 12px; }
}

/* Diagrama de orquestación */
.diagram .link { stroke: #c9d6ea; stroke-width: 2; fill: none; }
.diagram .flow { stroke: var(--blue); stroke-width: 2.5; fill: none; stroke-linecap: round; stroke-dasharray: 6 14; animation: flow 1.6s linear infinite; }
.diagram .node rect { fill: #fff; stroke: var(--line); }
.diagram .node text { font: 600 13px var(--font); fill: var(--navy); }
.diagram .node .ic { stroke: var(--blue); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.diagram .core-ring { fill: none; stroke: var(--blue); stroke-opacity: .25; stroke-width: 1.5; transform-origin: 260px 230px; animation: pulse 3.2s ease-out infinite; }
.diagram .core-ring.r2 { animation-delay: 1.6s; }
.diagram .shield { fill: var(--blue-50); stroke: var(--blue); stroke-width: 1.5; }
.diagram .tag text { font: 600 11px var(--font); fill: var(--ok); }
.diagram .tag rect { fill: #e7f6ef; }
@keyframes flow { to { stroke-dashoffset: -40; } }
@keyframes pulse { 0% { transform: scale(.85); opacity: 1; } 100% { transform: scale(1.35); opacity: 0; } }

/* ---------- Pilares ---------- */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.pillar { padding: 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.pillar h3 { font-size: 1.125rem; margin-top: 18px; }
.pillar p { margin-top: 8px; color: var(--muted); font-size: .9688rem; }
.icon-badge {
  display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px;
  background: var(--blue-50); color: var(--blue);
}
.icon-badge svg { width: 24px; height: 24px; }
.pillars-wrap { margin-top: calc(var(--section) * -0.45); position: relative; z-index: 2; }
.pillars-wrap .pillar { box-shadow: var(--shadow); }

@media (max-width: 1024px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pillars { grid-template-columns: 1fr; } }

/* ---------- Servicios ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  position: relative; display: flex; flex-direction: column;
  padding: 32px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line);
  transition: border-color .25s, box-shadow .25s, transform .25s;
}
.card:hover { border-color: var(--blue-100); box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.card h3 { margin-top: 22px; font-size: 1.25rem; }
.card p { margin-top: 10px; color: var(--muted); }
.card ul { margin-top: 18px; display: grid; gap: 8px; font-size: .9375rem; }
.card li { display: flex; gap: 10px; align-items: flex-start; }
.card li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: .6em; border-radius: 50%; background: var(--blue); }

@media (max-width: 1024px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cards { grid-template-columns: 1fr; } .card { padding: 26px; } }

/* ---------- Proceso ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; counter-reset: step; position: relative; }
.steps::before {
  content: ""; position: absolute; top: 27px; left: 10%; right: 10%; height: 2px;
  background: linear-gradient(90deg, var(--blue-100), var(--blue), var(--blue-100));
}
.step { position: relative; text-align: center; }
.step-num {
  position: relative; display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto;
  border-radius: 50%; background: #fff; border: 2px solid var(--blue); color: var(--blue);
  font-weight: 800; font-size: 1.125rem;
}
.step h3 { margin-top: 20px; font-size: 1.125rem; }
.step p { margin-top: 8px; color: var(--muted); font-size: .9375rem; }

@media (max-width: 960px) {
  .steps { grid-template-columns: 1fr; gap: 0; max-width: 560px; margin-inline: auto; }
  .steps::before { top: 28px; bottom: 28px; left: 27px; right: auto; width: 2px; height: auto; background: linear-gradient(180deg, var(--blue), var(--blue-100)); }
  .step { display: grid; grid-template-columns: 56px 1fr; column-gap: 20px; text-align: left; padding-bottom: 28px; }
  .step-num { grid-row: span 2; margin: 0; }
  .step h3 { margin-top: 12px; }
}

/* ---------- IA segura ---------- */
.trust-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.trust-intro { position: sticky; top: calc(var(--header-h) + 32px); }
.trust-intro .btn { margin-top: 32px; }
.trust-quote {
  margin-top: 32px; padding: 24px; border-radius: var(--radius); background: var(--navy); color: #dbe7f5;
  font-size: 1rem;
}
.trust-quote strong { color: #fff; }
.trust-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.trust-item { padding: 26px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.trust-item h3 { margin-top: 16px; font-size: 1.0625rem; }
.trust-item p { margin-top: 8px; color: var(--muted); font-size: .9375rem; }

@media (max-width: 960px) {
  .trust-grid { grid-template-columns: 1fr; }
  .trust-intro { position: static; }
}
@media (max-width: 560px) { .trust-list { grid-template-columns: 1fr; } }

/* ---------- Tecnologías ---------- */
.tech-logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.tech-logo {
  flex: 0 1 calc((100% - 60px) / 4); min-width: 240px;
  display: flex; align-items: center; gap: 18px;
  padding: 22px 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line);
  transition: border-color .25s, box-shadow .25s, transform .25s;
}
.tech-logo:hover { border-color: var(--blue-100); box-shadow: var(--shadow); transform: translateY(-2px); }
.tech-logo img { width: 44px; height: 44px; flex: none; object-fit: contain; }
.tech-logo h3 { font-size: 1.0625rem; letter-spacing: -0.01em; }
.tech-logo p { margin-top: 2px; color: var(--muted); font-size: .875rem; line-height: 1.45; }
.tech-note { margin-top: 32px; text-align: center; color: var(--muted); font-size: .9375rem; }

@media (max-width: 1100px) { .tech-logo { flex-basis: calc((100% - 40px) / 3); } }
@media (max-width: 820px) { .tech-logo { flex-basis: calc((100% - 20px) / 2); min-width: 0; } }
@media (max-width: 520px) { .tech-logo { flex-basis: 100%; } }

/* ---------- Casos de uso ---------- */
.usecases { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.usecase { display: flex; flex-direction: column; padding: 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.usecase .area { font-size: .8125rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--blue); }
.usecase h3 { margin-top: 10px; font-size: 1.0625rem; }
.usecase p { margin-top: 10px; color: var(--muted); font-size: .9375rem; }

@media (max-width: 1100px) { .usecases { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .usecases { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .usecases { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: border-color .2s, box-shadow .2s; }
.faq details[open] { border-color: var(--blue-100); box-shadow: var(--shadow); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 24px; cursor: pointer; list-style: none;
  font-weight: 600; font-size: 1.0625rem; color: var(--navy);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%;
  background: var(--blue-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231455ff' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 16px no-repeat;
  transition: transform .25s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 24px 22px; color: var(--muted); }
.faq .answer p + p { margin-top: 10px; }

/* ---------- CTA / Contacto ---------- */
.cta {
  position: relative; overflow: hidden;
  padding: clamp(40px, 7vw, 80px); border-radius: 32px;
  background: var(--navy); color: #c9d7e8;
}
.cta::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(36rem 20rem at 100% 0%, rgb(20 85 255 / .45), transparent 60%),
    radial-gradient(24rem 16rem at 0% 100%, rgb(20 85 255 / .18), transparent 60%);
}
.cta > * { position: relative; }
.cta-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
.cta h2 { color: #fff; font-size: clamp(1.875rem, 4.2vw, 2.75rem); }
.cta-lead { margin-top: 16px; font-size: 1.125rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.contact-list { display: grid; gap: 12px; }
.contact-item {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px;
  border-radius: var(--radius); background: rgb(255 255 255 / .06); border: 1px solid rgb(255 255 255 / .12);
  color: #fff; text-decoration: none; transition: background-color .2s, border-color .2s;
}
a.contact-item:hover { color: #fff; background: rgb(255 255 255 / .1); border-color: rgb(255 255 255 / .25); }
.contact-item svg { width: 22px; height: 22px; flex: none; color: #8fb0ff; }
.contact-item small { display: block; color: #9fb3cb; font-size: .8125rem; }
.contact-item span { font-weight: 600; word-break: break-word; }

@media (max-width: 860px) { .cta-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Pie ---------- */
.site-footer { padding-block: 64px 32px; border-top: 1px solid var(--line); background: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-brand img { height: 34px; width: auto; }
.footer-brand p { margin-top: 16px; max-width: 26rem; color: var(--muted); font-size: .9375rem; }
.footer-col h2 { font-size: .8125rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.footer-col ul { margin-top: 14px; display: grid; gap: 8px; }
.footer-col a { color: var(--navy); text-decoration: none; font-size: .9375rem; }
.footer-col a:hover { color: var(--blue); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem; }

@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------- Páginas legales / 404 ---------- */
.page-hero { padding-block: clamp(48px, 8vw, 88px) 32px; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3rem); }
.page-hero p { margin-top: 12px; color: var(--muted); }
.prose { max-width: 780px; padding-block: 48px var(--section); }
.prose h2 { margin-top: 40px; font-size: 1.375rem; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose ul { margin-top: 14px; color: #33475e; }
.prose ul { padding-left: 1.25rem; list-style: disc; }
.prose li + li { margin-top: 6px; }
.prose table { width: 100%; margin-top: 16px; border-collapse: collapse; font-size: .9375rem; }
.prose th, .prose td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { background: var(--bg-soft); }
.placeholder { padding: 0 .25em; border-radius: 4px; background: #fff4d6; color: #7a5300; font-weight: 600; }
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding-block: var(--section); }
.notfound .code { font-size: clamp(4rem, 14vw, 8rem); font-weight: 800; color: var(--blue); line-height: 1; letter-spacing: -0.05em; }
.notfound h1 { margin-top: 16px; font-size: clamp(1.5rem, 4vw, 2.25rem); }
.notfound p { margin-top: 12px; color: var(--muted); }
.notfound .btn { margin-top: 28px; }

/* ---------- Animación de aparición ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Chat flotante: Inés ---------- */
.ines-chat { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 80; font-family: var(--font); }
.ines-launcher {
  position: relative; width: 64px; height: 64px; padding: 0; border: 3px solid #fff; border-radius: 50%;
  background: var(--bg-soft); cursor: pointer; box-shadow: 0 10px 30px rgb(11 44 72 / .28), 0 0 0 1px rgb(11 44 72 / .08);
  transition: transform .2s, box-shadow .2s;
}
.ines-launcher:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 14px 34px rgb(20 85 255 / .3), 0 0 0 1px rgb(20 85 255 / .2); }
.ines-launcher-img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.ines-online { position: absolute; right: 1px; bottom: 3px; width: 14px; height: 14px; border-radius: 50%; background: #22c55e; border: 2px solid #fff; }
.ines-chat.is-open .ines-launcher { transform: scale(.92); }

.ines-nudge {
  position: absolute; right: 76px; bottom: 10px; display: flex; align-items: center; gap: 6px;
  padding: 10px 8px 10px 14px; border-radius: 14px 14px 4px 14px; background: #fff; color: var(--navy);
  font-weight: 600; font-size: .9375rem; white-space: nowrap; cursor: pointer;
  box-shadow: var(--shadow-lg); border: 1px solid var(--line);
  opacity: 0; transform: translateY(6px); pointer-events: none; transition: opacity .3s, transform .3s;
}
.ines-nudge.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.ines-nudge-close { width: 24px; height: 24px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); font-size: 18px; line-height: 1; cursor: pointer; }
.ines-nudge-close:hover { background: var(--bg-soft); }

.ines-panel {
  position: absolute; right: 0; bottom: 80px; width: 380px; height: min(620px, calc(100dvh - 120px));
  display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border-radius: 20px; border: 1px solid var(--line); box-shadow: 0 24px 64px rgb(11 44 72 / .22);
  animation: ines-in .22s ease-out;
}
.ines-panel[hidden] { display: none; }
@keyframes ines-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }

.ines-header { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; background: var(--navy); color: #fff; }
.ines-header-img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; border: 2px solid rgb(255 255 255 / .85); flex: none; }
.ines-header-text { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.25; }
.ines-header-text strong { font-size: 1.0625rem; }
.ines-header-text span { font-size: .8125rem; color: #b9cbe2; }
.ines-icon-btn { width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 10px; background: transparent; color: #fff; cursor: pointer; }
.ines-icon-btn:hover { background: rgb(255 255 255 / .12); }
.ines-icon-btn svg { width: 20px; height: 20px; }

.ines-log { flex: 1; overflow-y: auto; padding: 18px 14px 8px; background: var(--bg-soft); display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; }
.ines-row { display: flex; align-items: flex-end; gap: 8px; max-width: 100%; }
.ines-msg-img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex: none; }
.ines-bubble { max-width: 82%; padding: 10px 14px; border-radius: 16px; font-size: .9375rem; line-height: 1.5; overflow-wrap: anywhere; }
.ines-bubble p { margin: 0; }
.ines-bubble p + p { margin-top: 6px; }
.ines-bot .ines-bubble { background: #fff; color: var(--text); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.ines-bot .ines-bubble a { color: var(--blue); font-weight: 600; }
.ines-user { justify-content: flex-end; }
.ines-user .ines-bubble { background: var(--blue); color: #fff; border-bottom-right-radius: 4px; white-space: pre-wrap; }
.ines-error .ines-bubble { background: #fff8eb; border-color: #f5d9a8; }
.ines-typing .ines-bubble { display: inline-flex; gap: 4px; padding: 14px; }
.ines-typing .ines-bubble span { width: 7px; height: 7px; border-radius: 50%; background: #9aa9bc; animation: ines-dot 1.2s infinite ease-in-out; }
.ines-typing .ines-bubble span:nth-child(2) { animation-delay: .15s; }
.ines-typing .ines-bubble span:nth-child(3) { animation-delay: .3s; }
@keyframes ines-dot { 0%, 80%, 100% { transform: translateY(0); opacity: .5; } 40% { transform: translateY(-4px); opacity: 1; } }

.ines-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 14px 10px; background: var(--bg-soft); }
.ines-chips[hidden] { display: none; }
.ines-chip { padding: 7px 12px; border-radius: 999px; border: 1px solid var(--blue-100); background: #fff; color: var(--blue); font: 600 .8125rem/1.2 var(--font); cursor: pointer; }
.ines-chip:hover { background: var(--blue-50); }

.ines-form { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); background: #fff; }
.ines-input {
  flex: 1; min-height: 42px; max-height: 120px; resize: none; padding: 10px 14px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--bg-soft); color: var(--text); font: 400 .9375rem/1.4 var(--font);
}
.ines-input:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 3px rgb(20 85 255 / .15); }
.ines-send { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border: 0; border-radius: 12px; background: var(--blue); color: #fff; cursor: pointer; }
.ines-send:hover { background: var(--blue-600); }
.ines-send:disabled { opacity: .5; cursor: wait; }
.ines-send svg { width: 20px; height: 20px; }
.ines-legal { margin: 0; padding: 0 14px 10px; background: #fff; font-size: .72rem; line-height: 1.45; color: var(--muted); }
.ines-legal a { color: var(--muted); }
.ines-legal .ines-wa { color: #128c4b; font-weight: 600; white-space: nowrap; }

@media (max-width: 560px) {
  .ines-panel { position: fixed; inset: 0; width: 100%; height: 100dvh; border-radius: 0; border: 0; }
  .ines-chat.is-open .ines-launcher, .ines-chat.is-open .ines-nudge { display: none; }
  .ines-nudge { font-size: .875rem; }
  html.ines-chat-open, html.ines-chat-open body { overflow: hidden; }
}
@media (prefers-reduced-motion: reduce) { .ines-panel, .ines-typing .ines-bubble span { animation: none; } }

/* ---------- Alineación de textos ---------- */
/* Títulos y entradillas de sección: centrados */
.section-head { margin-inline: auto; text-align: center; }

/* Tarjetas cortas: centradas (icono, título y texto) */
.pillar, .trust-item, .usecase { text-align: center; }
.pillar .icon-badge, .trust-item .icon-badge { margin-inline: auto; }
.usecase { align-items: center; }

/* Servicios: cabecera centrada; las listas con viñetas siguen alineadas a la izquierda para leerse bien */
.card { text-align: center; }
.card .icon-badge { margin-inline: auto; }
.card ul { text-align: left; width: fit-content; max-width: 100%; margin-inline: auto; }

/* Tecnologías: la nota final ya estaba centrada; las tarjetas de logo mantienen su disposición */

/* Bloque "IA segura": introducción centrada, como el resto de cabeceras de sección */
.trust-intro { text-align: center; }
.trust-intro .section-lead { margin-inline: auto; }

/* Textos largos y corridos en columnas anchas: justificados con división de palabras (lang="es") */
.faq .answer, .prose p, .prose li {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
}
.faq summary { text-align: left; }

/* Portada y llamada final: centradas cuando la pantalla es de una columna */
@media (max-width: 960px) {
  .hero-grid > div:first-child { text-align: center; }
  .hero-lead { margin-inline: auto; }
  .hero-actions, .hero-points { justify-content: center; }
}
@media (max-width: 860px) {
  .cta-grid > div:first-child { text-align: center; }
  .cta-actions { justify-content: center; }
}

/* Pie: centrado en móvil */
@media (max-width: 760px) {
  .footer-brand { text-align: center; }
  .footer-brand img, .footer-brand p { margin-inline: auto; }
  .footer-bottom { justify-content: center; text-align: center; }
}

/* Páginas legales: título centrado */
.page-hero { text-align: center; }
.prose { margin-inline: auto; }

/* Acceso a la cuenta común de inesIA */
.nav-account a { display: inline-flex; align-items: center; gap: .45rem; }
.nav-account svg { width: 18px; height: 18px; flex: none; }
