:root {
  --ink: #0B1E33;
  --text: #4F647A;
  --muted: #64798C;
  --blue: #3D5CE0;
  --blue-dark: #3450CC;
  --indigo: #4C6EF5;
  --cyan: #12B5A6;
  --teal-dark: #0C8F84;
  --pass: #1F9D63;
  --bg: #FBFBFA;
  --alt: #F3F6F8;
  --line: #E3E8EC;
  --tint: #EEF1FE;
  --radius: 16px;
  --grad: linear-gradient(120deg, #3D5CE0, #0C8F84);
  --display: 'Ubuntu', system-ui, sans-serif;
  --body: 'Ubuntu', system-ui, sans-serif;
  --mono: 'Ubuntu Mono', ui-monospace, monospace;
  color-scheme: light;
  box-sizing: border-box;
}
*, *::before, *::after { box-sizing: inherit; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 1rem/1.65 var(--body); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }
:focus-visible { outline: 3px solid #8DA2F6; outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ico { flex: none; }

h1, h2, h3, h4 { font-family: var(--display); color: var(--ink); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.025em; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 6vw, 4.3rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.06; }
h1 em { font-style: normal; color: var(--cyan); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); font-weight: 700; letter-spacing: -.025em; }
h3, .h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -.015em; line-height: 1.25; }
h4 { font-size: 1.02rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.3; }
p { margin: 0 0 1em; max-width: 68ch; text-wrap: pretty; }
.lead { font-size: clamp(1.04rem, 1.5vw, 1.16rem); line-height: 1.7; }

.wrap { width: min(1200px, 100% - 3rem); margin-inline: auto; }
.wrap-narrow { width: min(740px, 100% - 3rem); margin-inline: auto; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; font: 500 .95rem/1 var(--body); padding: .9rem 1.3rem; min-height: 46px; border-radius: 12px; border: 1px solid transparent; cursor: pointer; transition: background .2s, border-color .2s, color .2s, box-shadow .2s; }
.btn-lg { padding: 1.05rem 1.6rem; min-height: 54px; font-size: 1rem; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 12px 26px -14px rgba(61,92,224,.8); }
.btn-primary:hover { background: linear-gradient(120deg, #3450CC, #0A7D73); color: #fff; }
.btn-ghost { background: #fff; color: var(--ink); border-color: #CBD3DC; }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--tint); color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(251,251,250,.88); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; padding-top: env(safe-area-inset-top, 0px); transition: border-color .2s, box-shadow .2s; }
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 10px 30px -22px rgba(10,37,64,.5); }
.bar { display: flex; align-items: center; justify-content: space-between; min-height: 74px; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; font: 700 1.35rem var(--display); letter-spacing: -.035em; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand img { display: block; width: auto; height: 52px; }
.menu { display: flex; align-items: center; gap: 1.7rem; }
.menu > a { color: var(--ink); font-weight: 500; font-size: .95rem; position: relative; padding: .4rem 0; }
.menu > a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .2s; }
.menu > a:hover { color: var(--blue); }
.menu > a:hover::after { transform: scaleX(1); }
.menu-actions { display: flex; gap: .6rem; margin-left: .5rem; }
.menu-actions .btn { padding: .65rem 1.05rem; min-height: 42px; font-size: .9rem; }
.nav-toggle { display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 0; cursor: pointer; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); margin: 4px auto; border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Ilustración / foto */
.foto { margin: 0; position: relative; overflow: hidden; border-radius: 22px; aspect-ratio: 4 / 3; background: #E9EEF8; isolation: isolate; box-shadow: 0 30px 60px -36px rgba(11,30,51,.45); }
.foto .arte, .foto img { position: absolute; inset: 0; width: 100%; height: 100%; }
.foto img { object-fit: cover; }
.foto-tall { aspect-ratio: 10 / 11; }
.foto-wide { aspect-ratio: 3 / 2; }
.foto-portrait { aspect-ratio: 4 / 5; }
.chip { position: absolute; z-index: 2; left: 16px; bottom: 16px; background: rgba(255,255,255,.96); color: var(--ink); font: 500 .85rem/1 var(--body); padding: .55rem .95rem; border-radius: 999px; box-shadow: 0 8px 20px -8px rgba(10,37,64,.4); }

/* Hero */
.hero { padding: clamp(2.25rem, 6vw, 5rem) 0 0; background: radial-gradient(ellipse 55% 45% at 28% -8%, rgba(76,110,245,.10), transparent 62%), radial-gradient(ellipse 55% 50% at 82% 0%, rgba(18,181,166,.13), transparent 62%), var(--bg); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.hero-text .lead { max-width: 52ch; margin-top: 1.4rem; margin-bottom: 0; }
.hero-note { margin: 1.1rem 0 0; font-size: .9rem; color: var(--muted); }
.hero-art { min-width: 0; }
.arte-red { width: 100%; height: auto; max-height: 560px; overflow: visible; }
.orbita { fill: none; stroke: #C4CDF0; stroke-width: 1.2; stroke-dasharray: 3 7; }
.enlace { stroke: #CBD3F3; stroke-width: 2; }
.flujo { stroke: var(--cyan); stroke-width: 3.2; stroke-linecap: round; stroke-dasharray: 2 22; animation: flujo 2.4s linear infinite; }
.pulso { fill: none; stroke: #4C6EF5; stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: pulso 3s ease-out infinite; }
.t-core { font: 700 18px var(--display); fill: #fff; text-anchor: middle; letter-spacing: -.02em; }
.t-core-sub { font: 500 11px var(--body); fill: #fff; opacity: .75; text-anchor: middle; }
.t-nodo { font: 500 15px var(--body); fill: var(--ink); }
@keyframes flujo { to { stroke-dashoffset: -48; } }
@keyframes pulso { from { transform: scale(1); opacity: .55; } to { transform: scale(1.75); opacity: 0; } }

.red-movil { display: none; }
.red-marca { display: flex; flex-direction: column; align-items: center; gap: .1rem; width: max-content; margin: 0 auto 1rem; padding: .85rem 1.6rem; border-radius: 999px; color: #fff; background: linear-gradient(135deg, #4C6EF5, #0C8F84); box-shadow: 0 16px 30px -16px rgba(61,92,224,.8); }
.red-marca strong { font: 700 1.15rem var(--display); letter-spacing: -.02em; }
.red-marca span { font-size: .75rem; opacity: .8; }
.red-movil ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; }
.red-movil li { display: flex; align-items: center; gap: .55rem; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: .8rem .75rem; font-weight: 500; font-size: .86rem; white-space: nowrap; color: var(--ink); box-shadow: 0 8px 20px -16px rgba(10,37,64,.5); }
.red-movil li .ico { color: var(--blue); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin: clamp(2.5rem, 5vw, 4.5rem) 0 0; border-top: 1px solid var(--line); }
.stats div { padding: 1.7rem 1.25rem 2rem 0; }
.stats div + div { padding-left: 1.75rem; border-left: 1px solid var(--line); }
.stats dt { font: 700 clamp(2rem, 3.4vw, 2.8rem)/1 var(--display); color: var(--ink); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.stats dd { margin: .5rem 0 0; color: var(--muted); font-size: .95rem; }

/* Secciones */
.section { padding: clamp(3.75rem, 8vw, 7rem) 0; }
.section-alt { background: var(--alt); }
.section-dark { background: radial-gradient(800px 440px at 90% 0%, rgba(34,195,214,.18), transparent 60%), radial-gradient(600px 400px at 0% 100%, rgba(47,115,245,.22), transparent 60%), var(--ink); color: #BFD0E6; }
.section-dark h2 { color: #fff; }
.section-dark .lead { color: #C9D8EC; }
.section-head { margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head h2 { margin-bottom: .45em; }
.section-head p { font-size: 1.08rem; margin-bottom: 0; max-width: 62ch; }
.section-head.row { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.section-head.row h2 { margin-bottom: .3rem; }
.more { display: inline-flex; align-items: center; gap: .4rem; font-weight: 500; font-size: .95rem; }
.more .ico { transition: transform .2s; }
.more:hover .ico { transform: translateX(3px); }
.page-head { padding: clamp(3rem, 7vw, 5.5rem) 0 1.25rem; background: radial-gradient(800px 360px at 90% 0%, rgba(18,181,166,.12), transparent 65%), radial-gradient(700px 320px at 10% 0%, rgba(76,110,245,.09), transparent 65%), var(--bg); border-bottom: 1px solid var(--line); }
.page-head .lead { margin-bottom: 1.5rem; }

.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.split-rev { grid-template-columns: 1.1fr .9fr; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }

/* Tarjetas */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.cards-3 { margin-top: clamp(2.5rem, 5vw, 4rem); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.9rem; display: flex; flex-direction: column; transition: border-color .2s, box-shadow .2s; }
.card:hover { border-color: #B9C6EE; box-shadow: 0 20px 40px -28px rgba(10,37,64,.4); }
.card p { font-size: .975rem; }
.card .more { margin-top: auto; padding-top: .35rem; }
.card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; }
.card-flat { background: var(--alt); border-color: transparent; }
.card-flat:hover { border-color: var(--line); box-shadow: none; }
.card-flat h3 { margin-top: 1.1rem; }
.tag { font: 400 .72rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--teal-dark); background: #E4F6F4; padding: .45rem .7rem; border-radius: 999px; }
.icon-box { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; color: var(--blue); background: linear-gradient(145deg, #EEF1FE, #DDF4F1); box-shadow: inset 0 0 0 1px rgba(61,92,224,.12); }
.icon-box-sm { width: 46px; height: 46px; border-radius: 12px; }

.items { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 2.75rem; margin-top: clamp(2.25rem, 4vw, 3.25rem); }
.item { display: flex; gap: 1.1rem; padding: 1.7rem 0; border-top: 1px solid var(--line); }
.item h3 { margin-bottom: .35rem; }
.item p { margin: 0; font-size: .95rem; }
.icon-line { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: var(--blue); border: 1.5px solid #D3DBF8; background: #fff; }

.checks { list-style: none; padding: 0; margin: 1.75rem 0 2.25rem; display: grid; gap: .85rem; }
.checks li { position: relative; padding-left: 2.1rem; font-weight: 500; color: var(--ink); }
.checks li::before { content: ''; position: absolute; left: 0; top: .22em; width: 1.3rem; height: 1.3rem; border-radius: 50%; background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.2 8.4l2.4 2.4 5-5' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }
.section-dark .checks li { color: #fff; }
.section-dark .checks li::before { background-color: var(--cyan); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.2 8.4l2.4 2.4 5-5' fill='none' stroke='%230A2540' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

/* Nosotros */
.mv { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin: clamp(2.5rem, 5vw, 4rem) 0; }
.mv > div { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.25rem); position: relative; overflow: hidden; }
.mv > div::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(180deg, var(--indigo), var(--cyan)); }
.mv h3 { font-size: 1.4rem; }
.mv p { margin: 0; }
.subhead { font-size: 1.5rem; margin-bottom: 1.75rem; }
.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.why h4 { margin: 1.1rem 0 .4rem; }
.why p { font-size: .95rem; margin: 0; }

/* Gerente */
.ceo { display: grid; grid-template-columns: .55fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.ceo .foto { max-width: 440px; }
.ceo-name { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin-bottom: .1em; font-weight: 700; letter-spacing: -.035em; }
.ceo-role { color: var(--blue); font-weight: 500; margin-bottom: 1.4rem; }
blockquote { margin: 1.5rem 0; padding: .3rem 0 .3rem 1.4rem; border-left: 3px solid var(--blue); font: italic 500 1.25rem/1.5 var(--display); color: var(--ink); }
.timeline { list-style: none; margin: 2rem 0 0; padding: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 1.25rem 1.6rem; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ''; position: absolute; left: -7px; top: .5em; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid var(--blue); }
.timeline strong { display: block; color: var(--ink); font-family: var(--display); }

/* Noticias */
.news { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.news-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, border-color .2s; }
.news-card:hover { border-color: #B9C6EE; box-shadow: 0 22px 44px -30px rgba(10,37,64,.45); }
.news-img { position: relative; display: block; aspect-ratio: 16 / 10; background: linear-gradient(135deg, #E9EEF8, #D5E4F4); color: #8CA3EE; overflow: hidden; }
.news-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.news-ph { position: absolute; inset: 0; display: grid; place-items: center; }
.news-body { padding: 1.5rem 1.6rem 1.75rem; }
.news-body time { color: var(--muted); font-size: .85rem; }
.news-body h3, .news-body h2 { margin: .45rem 0 .65rem; }
.news-body h3 a, .news-body h2 a { color: var(--ink); }
.news-body h3 a:hover, .news-body h2 a:hover { color: var(--blue); }
.news-body p { font-size: .95rem; margin: 0; }
.news-3 .news-card:first-child { grid-column: 1 / -1; flex-direction: row; }
.news-3 .news-card:first-child .news-img { flex: 1.1; aspect-ratio: auto; min-height: 300px; }
.news-3 .news-card:first-child .news-body { flex: 1; align-self: center; padding: clamp(1.5rem, 4vw, 3rem); }
.news-3 .news-card:first-child h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); letter-spacing: -.03em; }
.empty { color: var(--muted); padding: 1.5rem 0; }
.pager { display: flex; gap: .5rem; justify-content: center; margin-top: 2.5rem; }
.pager a { min-width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); font-weight: 500; }
.pager a[aria-current] { background: var(--blue); border-color: var(--blue); color: #fff; }

/* Artículo */
.article-head { padding: clamp(2.5rem, 6vw, 4.5rem) 0 1.5rem; }
.article-head h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); }
.crumbs { font-weight: 500; font-size: .9rem; margin-bottom: 1rem; }
.meta { color: var(--muted); font-size: .95rem; }
.article-img { margin-block: 1rem 2.5rem; max-width: 1000px; }
.article-img img { width: 100%; border-radius: 22px; }
.prose { padding-bottom: 4rem; }
.prose p { font-size: 1.08rem; line-height: 1.85; max-width: none; }
.prose .lead { font-size: 1.28rem; color: var(--ink); font-weight: 500; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.share span { color: var(--muted); font-size: .9rem; margin-right: .4rem; }
.share a { border: 1px solid var(--line); border-radius: 999px; padding: .55rem 1.1rem; font-size: .9rem; font-weight: 500; color: var(--ink); min-height: 40px; }
.share a:hover { border-color: var(--blue); color: var(--blue); }

/* Clientes y tienda */
.clients { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.clients li { display: flex; align-items: center; gap: .9rem; padding: 1rem 1.1rem; background: #fff; border: 1px solid var(--line); border-radius: 14px; font: 700 .98rem/1.25 var(--display); color: var(--ink); letter-spacing: -.01em; }
.mono { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(145deg, #EEF1FE, #DDEFF0); color: var(--blue); font: 700 .9rem var(--display); letter-spacing: -.02em; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .65rem; }
.chips a { display: flex; align-items: center; min-height: 44px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .6rem 1.15rem; font-weight: 500; font-size: .95rem; color: var(--ink); transition: border-color .2s, color .2s; }
.chips a:hover { border-color: var(--blue); color: var(--blue); }

/* Contacto */
.contact { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; padding: clamp(1.75rem, 5vw, 4.25rem); border-radius: 28px; border: 1px solid var(--line); background: radial-gradient(620px 320px at 100% 0%, rgba(76,110,245,.14), transparent 65%), radial-gradient(520px 300px at 0% 100%, rgba(18,181,166,.14), transparent 65%), var(--alt); }
.datos { list-style: none; margin: 0; padding: 0; display: grid; gap: .85rem; }
.datos li { display: flex; align-items: center; gap: 1rem; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.2rem; }
.datos .ico { color: var(--blue); }
.datos span { display: block; color: var(--muted); font-size: .82rem; }
.datos a, .datos strong { color: var(--ink); font-weight: 500; word-break: break-word; }
.datos a:hover { color: var(--blue); }

/* Footer */
.site-footer { background: var(--ink); color: #B7C5D8; padding: clamp(3rem, 6vw, 4.5rem) 0 2rem; font-size: .95rem; }
.site-footer a { color: #D9E3F0; }
.site-footer a:hover { color: #fff; }
.brand-light, .brand-light:hover { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2.5rem; }
.foot-note { margin-top: 1.1rem; max-width: 34ch; line-height: 1.75; }
.site-footer h3 { color: #fff; font-size: .95rem; margin-bottom: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.legal { margin: 3rem 0 0; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.14); font-size: .85rem; max-width: none; }

.wa-float { position: fixed; right: max(1rem, env(safe-area-inset-right, 0px)); bottom: max(1rem, env(safe-area-inset-bottom, 0px)); width: 56px; height: 56px; border-radius: 50%; background: #1FA855; color: #fff; display: grid; place-items: center; box-shadow: 0 12px 26px -8px rgba(10,37,64,.55); z-index: 40; }
.wa-float:hover { background: #178a45; color: #fff; }

/* Tablet */
@media (max-width: 1020px) {
  .hero-grid, .split, .split-rev, .ceo, .contact { grid-template-columns: 1fr; }
  .split-rev > :first-child { order: 1; }
  .hero-art { max-width: 560px; margin-inline: auto; width: 100%; }
  .foto-tall { aspect-ratio: 16 / 11; }
  .ceo .foto { max-width: 380px; }
  .cards, .news { grid-template-columns: repeat(2, 1fr); }
  .items { grid-template-columns: repeat(2, 1fr); }
  .why { grid-template-columns: repeat(2, 1fr); }
  .clients { grid-template-columns: repeat(3, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .news-3 .news-card:first-child { flex-direction: column; }
  .news-3 .news-card:first-child .news-img { aspect-ratio: 16 / 9; min-height: 0; flex: none; }

  .nav-toggle { display: block; }
  .menu { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: .25rem 1.5rem 1.5rem; display: none; box-shadow: 0 24px 40px -28px rgba(10,37,64,.5); max-height: calc(100vh - 80px); overflow-y: auto; }
  .menu.open { display: flex; }
  .menu > a { padding: 1rem 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .menu > a::after { display: none; }
  .menu-actions { margin: 1.25rem 0 0; flex-direction: column; }
  .menu-actions .btn { min-height: 50px; font-size: 1rem; }
}

/* Móvil */
@media (max-width: 760px) {
  .wrap, .wrap-narrow { width: calc(100% - 2.5rem); }
  .bar { min-height: 66px; }
  .brand img { height: 44px; }
  .hero { padding-top: 1.75rem; }
  .red-escritorio { display: none; }
  .red-movil { display: block; padding: 1rem; border-radius: 22px; border: 1px solid var(--line); background: linear-gradient(160deg, #EEF1FE, #fff 70%); }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats div { padding: 1.35rem 1rem 1.5rem 0; }
  .stats div + div { padding-left: 1.25rem; }
  .stats div:nth-child(3) { padding-left: 0; border-left: 0; }
  .stats div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .actions .btn { width: 100%; }
  .section-head.row { align-items: flex-start; }
  .cards, .duo, .mv, .items, .why { grid-template-columns: 1fr; }
  .card { padding: 1.5rem; }
  .why { gap: 1.75rem; }
  .foto { border-radius: 18px; }
  .foto-tall { aspect-ratio: 4 / 3.4; }
  .clients { grid-template-columns: 1fr 1fr; gap: .7rem; }
  .clients li { flex-direction: column; align-items: flex-start; gap: .7rem; padding: 1rem; }
  .news:not(.news-3) { display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 84%; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 1.25rem; margin-inline: -1.25rem; padding: 0 1.25rem .9rem; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .news:not(.news-3)::-webkit-scrollbar { display: none; }
  .news:not(.news-3) .news-card { scroll-snap-align: start; }
  .news-3 { grid-template-columns: 1fr; }
  .contact { padding: 1.5rem; border-radius: 22px; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 2rem 1.5rem; }
  .foot-grid > :first-child { grid-column: 1 / -1; }
  .share a { flex: 1 1 auto; text-align: center; }
}

@media (max-width: 380px) {
  .red-movil ul { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .flujo, .pulso { animation: none; }
  * { transition: none !important; }
}


/* ===== Identidad de marca (según gruponext.cl) ===== */
.eyebrow { display: inline-flex; align-items: center; gap: .55rem; font: 400 .78rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--teal-dark); margin-bottom: 1.1rem; }
.eyebrow::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px rgba(18,181,166,.16); }
.eyebrow-claro { color: #7FEBDD; }
.eyebrow-claro::before { background: #7FEBDD; box-shadow: 0 0 0 4px rgba(127,235,221,.18); }
.hero-text .eyebrow { margin-bottom: 1.4rem; }
.section-head .eyebrow, .split .eyebrow, .contact .eyebrow { margin-bottom: 1rem; }
.subhead { margin-top: .2rem; }

.card-flagship { position: relative; overflow: hidden; background: linear-gradient(180deg, #fff, #F6F8FF); }
.card-flagship::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--indigo), var(--cyan)); }

.spec { display: block; font: 400 .85rem/1 var(--mono); letter-spacing: .04em; color: var(--pass); margin-bottom: .55rem; }

/* Banner con la imagen de código */
.banner { position: relative; isolation: isolate; overflow: hidden; background: #08162A; color: #C9D8EC; padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.banner-bg { position: absolute; inset: 0; z-index: -2; background: #08162A url('/img/banner-codigo.jpg') right center / cover no-repeat; }
.banner::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8,22,42,.96) 0%, rgba(8,22,42,.86) 38%, rgba(8,22,42,.35) 72%, rgba(8,22,42,.1) 100%); }
.banner-in { max-width: 1200px; }
.banner h2 { color: #fff; max-width: 17ch; font-size: clamp(2rem, 4.6vw, 3.4rem); letter-spacing: -.025em; }
.banner .lead { color: #C9D8EC; max-width: 46ch; margin-bottom: 0; }
.btn-claro { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.35); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.btn-claro:hover { background: rgba(255,255,255,.2); border-color: #fff; color: #fff; }

/* Entrada suave al hacer scroll (solo con JavaScript activo) */
.js .reveal { opacity: 0; transform: translateY(-16px); transition: opacity .8s cubic-bezier(.22,.61,.36,1), transform .8s cubic-bezier(.22,.61,.36,1); will-change: opacity, transform; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 760px) {
  .banner::after { background: linear-gradient(180deg, rgba(8,22,42,.9) 0%, rgba(8,22,42,.78) 100%); }
  .banner-bg { background-position: 70% center; }
  .banner h2 { max-width: none; }
  .eyebrow { font-size: .74rem; letter-spacing: .12em; }
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* Logo en footer */
.site-footer .brand img { height: 62px; }
.foot-note { margin-top: 1.25rem; }
@media (max-width: 760px) { .site-footer .brand img { height: 54px; } }
