/* KesherCloud · landing. Sin dependencias: tipografías propias (Poppins e Inter, licencia OFL), CSS y un script pequeño. */

@font-face { font-family: 'Poppins'; font-weight: 600; font-style: normal; font-display: swap; src: url(../fonts/Poppins-SemiBold.woff2) format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 800; font-style: normal; font-display: swap; src: url(../fonts/Poppins-ExtraBold.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 400 600; font-style: normal; font-display: swap; src: url(../fonts/Inter-4.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-weight: 400 600; font-style: normal; font-display: swap; src: url(../fonts/Inter-5.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  color-scheme: light;
  --navy: #0e2a5a; --ink: #0a1b3d; --blue: #1364bf; --cyan: #33cde0; --violet: #8c5feb; --gold: #e6b80d;
  --gray: #5b6b85; --soft: #f5f8fd; --line: #e3e9f3; --white: #fff; --ok: #0f9d6b;
  --grad: linear-gradient(120deg, #1364bf 0%, #33cde0 55%, #8c5feb 120%);
  --font-title: 'Poppins', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --r: 22px; --r-sm: 14px;
  --shadow: 0 1px 2px rgba(14,42,90,.06), 0 12px 32px -12px rgba(14,42,90,.18);
  --shadow-lg: 0 2px 4px rgba(14,42,90,.06), 0 30px 60px -24px rgba(14,42,90,.28);
  --wrap: 1180px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-title); font-weight: 600; letter-spacing: -.02em; line-height: 1.12; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--blue) 70%, white); outline-offset: 3px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 100; transition: top .2s; }
.skip:focus { top: 12px; }
.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }

/* idioma: dos spans por texto, se ve el del idioma activo */
html[data-lang="es"] .en, html[data-lang="en"] .es { display: none !important; }

/* ---------- botones ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 999px; font-family: var(--font-title); font-weight: 600; font-size: 15px; letter-spacing: -.005em; border: 1px solid transparent; cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, border-color .25s; white-space: nowrap; }
.btn svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { color: #fff; background: linear-gradient(135deg, #0e2a5a, #1364bf 60%, #5a6cf0); box-shadow: 0 8px 22px -8px rgba(19,100,191,.65); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(19,100,191,.7); }
.btn-ghost { background: #fff; color: var(--navy); border-color: var(--line); box-shadow: var(--shadow); }
.btn-ghost:hover { transform: translateY(-2px); border-color: #c8d4ea; }
.btn-lg { padding: 16px 28px; font-size: 16px; }

/* ---------- cabecera ---------- */
.site-header { position: sticky; top: 0; z-index: 50; transition: background .3s, box-shadow .3s, backdrop-filter .3s; }
.site-header.scrolled { background: rgba(255,255,255,.78); backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px); box-shadow: 0 1px 0 var(--line); }
.nav { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-title); font-weight: 800; font-size: 21px; letter-spacing: -.03em; color: var(--navy); }
.brand img { width: 40px; height: auto; }
.wm { display: inline-block; } .brand b { font-weight: 800; background: linear-gradient(90deg, #1364bf, #33cde0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-links { display: flex; gap: 4px; margin-left: 18px; }
.nav-links a { padding: 8px 14px; border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--gray); transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--navy); background: var(--soft); }
.nav-end { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.lang { display: inline-flex; padding: 3px; background: var(--soft); border: 1px solid var(--line); border-radius: 999px; }
.lang button { font: inherit; font-size: 13px; font-weight: 600; padding: 5px 11px; border-radius: 999px; border: 0; background: transparent; color: var(--gray); cursor: pointer; }
.lang button[aria-pressed="true"] { background: #fff; color: var(--navy); box-shadow: 0 1px 3px rgba(14,42,90,.18); }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: #fff; cursor: pointer; align-items: center; justify-content: center; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 18px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .25s var(--ease), opacity .2s; content: ''; position: relative; }
.menu-btn span::before { position: absolute; top: -6px; } .menu-btn span::after { position: absolute; top: 6px; }
.menu-btn[aria-expanded="true"] span { background: transparent; }
.menu-btn[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { position: relative; padding: 56px 0 40px; isolation: isolate; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 40px; align-items: center; min-height: 620px; }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 14px; font-weight: 500; color: var(--gray); }
.pill i { font-style: normal; background: var(--grad); color: #fff; font-family: var(--font-title); font-size: 12px; padding: 4px 10px; border-radius: 999px; letter-spacing: .02em; }
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 4.9rem); margin: 22px 0 22px; color: var(--ink); }
.hero h1 .dim, .h2 .dim { color: #8392ab; }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.3rem); line-height: 1.55; color: var(--gray); max-width: 36em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-art { position: relative; height: 100%; min-height: 520px; }
.ribbon { max-width: none; position: absolute; top: -80px; left: -40px; width: calc(100% + 40px + 50vw); height: calc(100% + 140px); overflow: visible; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 24%), linear-gradient(180deg, #000 78%, transparent); mask-image: linear-gradient(90deg, transparent 0, #000 24%), linear-gradient(180deg, #000 78%, transparent); -webkit-mask-composite: source-in; mask-composite: intersect; pointer-events: none; }
.ribbon g { transform-box: fill-box; transform-origin: center; }
.rb1 { animation: drift1 11s ease-in-out infinite alternate; } .rb2 { animation: drift2 14s ease-in-out infinite alternate; } .rb3 { animation: drift3 17s ease-in-out infinite alternate; }
.trail { stroke-dasharray: 120 520; animation: flow 9s linear infinite; }
@keyframes drift1 { to { transform: translate(-18px, 12px) rotate(-1.6deg) scale(1.02); } }
@keyframes drift2 { to { transform: translate(14px, -14px) rotate(1.4deg) scale(1.015); } }
@keyframes drift3 { to { transform: translate(-10px, -18px) rotate(-1deg) scale(1.025); } }
@keyframes flow { to { stroke-dashoffset: -640; } }
.float { position: absolute; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.7); border-radius: 18px; box-shadow: var(--shadow-lg); padding: 14px 16px; display: flex; align-items: center; gap: 12px; font-size: 14px; animation: bob 7s ease-in-out infinite; }
.float b { font-family: var(--font-title); font-weight: 600; display: block; font-size: 14.5px; color: var(--navy); line-height: 1.25; }
.float small { color: var(--gray); font-size: 13px; }
.float .ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: #fff; flex: none; }
.float .ic svg { width: 20px; height: 20px; }
.f1 { top: 8%; right: 6%; animation-delay: -1s; } .f2 { top: 42%; left: 2%; animation-delay: -3s; } .f3 { bottom: 8%; right: 14%; animation-delay: -5s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.ic-green { background: linear-gradient(135deg, #0f9d6b, #35d4a0); } .ic-blue { background: linear-gradient(135deg, #1364bf, #33cde0); } .ic-violet { background: linear-gradient(135deg, #6a4be0, #b08cff); } .ic-gold { background: linear-gradient(135deg, #e6a80d, #f6d35b); }

.trust { padding: 22px 0 8px; }
.trust ul { display: flex; flex-wrap: wrap; gap: 10px 14px; justify-content: center; }
.trust li { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--gray); background: #fff; }
.trust svg { width: 16px; height: 16px; color: var(--blue); }

/* ---------- secciones ---------- */
section { position: relative; }
.sec { padding: clamp(72px, 10vw, 128px) 0; }
.sec.soft { background: linear-gradient(180deg, var(--soft), #fff 70%); }
.eyebrow { display: inline-block; font-family: var(--font-title); font-weight: 600; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 16px; }
.h2 { font-size: clamp(2rem, 4.2vw, 3.3rem); max-width: 17em; color: var(--ink); }
.sec-lead { margin-top: 20px; font-size: clamp(1.05rem, 1.5vw, 1.22rem); color: var(--gray); max-width: 40em; }
.sec-head { margin-bottom: clamp(36px, 5vw, 64px); }

/* ---------- bento de funciones ---------- */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 28px; overflow: hidden; display: flex; flex-direction: column; gap: 22px; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card h3 { font-size: 21px; margin-bottom: 8px; }
.card p.d { color: var(--gray); font-size: 15.5px; line-height: 1.55; }
.c7 { grid-column: span 7; } .c5 { grid-column: span 5; } .c4 { grid-column: span 4; } .c8 { grid-column: span 8; } .c6 { grid-column: span 6; }
.stage { position: relative; border-radius: 16px; background: var(--soft); padding: 18px; min-height: 220px; flex: 1; overflow: hidden; }
.stage.tint-a { background: linear-gradient(135deg, #eaf3ff, #e9fbff 60%, #f1ecff); }
.stage.tint-b { background: linear-gradient(135deg, #f1ecff, #eaf3ff 70%); }
.stage.tint-c { background: linear-gradient(135deg, #e8fbf6, #eaf3ff); }
.stage.tint-d { background: linear-gradient(135deg, #fff6dc, #f1ecff 80%); }

/* piezas de interfaz (maquetas) */
.ui { background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 10px 24px -14px rgba(14,42,90,.3); font-size: 13.5px; }
.ui-top { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.ui-top b { font-family: var(--font-title); font-weight: 600; font-size: 14px; color: var(--navy); }
.ui-top .sp { margin-left: auto; }
.search { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: var(--soft); color: #7b8aa3; font-size: 12.5px; }
.mini { padding: 5px 12px; border-radius: 999px; background: var(--navy); color: #fff; font-size: 12.5px; font-weight: 500; }
.rowi { display: grid; grid-template-columns: 34px 1fr auto auto; align-items: center; gap: 12px; padding: 11px 14px; border-bottom: 1px solid #eef2f8; }
.rowi:last-child { border-bottom: 0; }
.rowi b { display: block; font-weight: 600; color: var(--ink); line-height: 1.25; }
.rowi small { color: #7b8aa3; font-size: 12px; }
.av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-title); font-weight: 600; font-size: 13px; color: #fff; }
.a1 { background: linear-gradient(135deg, #1364bf, #33cde0); } .a2 { background: linear-gradient(135deg, #6a4be0, #b08cff); } .a3 { background: linear-gradient(135deg, #0f9d6b, #35d4a0); } .a4 { background: linear-gradient(135deg, #e6a80d, #f6c95b); }
.tag { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.t-blue { background: #e6f0ff; color: #1252a6; } .t-green { background: #dcf6ec; color: #0b7a54; } .t-violet { background: #eee8ff; color: #5a3cc4; } .t-amber { background: #fff0cc; color: #8a6200; } .t-gray { background: #eef2f8; color: #52627e; }
.amt { font-weight: 600; color: var(--navy); font-variant-numeric: tabular-nums; }

/* calendario */
.cal { padding: 14px; }
.cal-h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.cal-h b { font-family: var(--font-title); font-size: 15px; color: var(--navy); } .cal-h span { color: #7b8aa3; font-size: 12.5px; }
.cal-g { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal-g i { font-style: normal; font-size: 11px; color: #9aa7bd; padding-bottom: 4px; }
.cal-g > span { position: relative; padding: 7px 0; border-radius: 9px; font-size: 12.5px; color: var(--gray); font-variant-numeric: tabular-nums; }
.cal-g > .ev { background: #e6f0ff; color: #1252a6; font-weight: 600; } .cal-g > .yz::after { content: ''; position: absolute; left: 50%; bottom: 2px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--gold); }
.cal-g > .today { background: var(--grad); color: #fff; font-weight: 600; box-shadow: 0 6px 14px -6px rgba(19,100,191,.8); }
.cal-l { margin-top: 12px; display: grid; gap: 8px; }
.cal-l div { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--gray); }
.cal-l div b { color: var(--ink); font-weight: 600; }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--blue); } .dot.g { background: var(--gold); }

/* pago */
.pay { padding: 16px; display: grid; gap: 12px; }
.pay-c { display: flex; justify-content: space-between; align-items: baseline; }
.pay-c small { color: #7b8aa3; } .pay-c b { font-family: var(--font-title); font-size: 26px; font-weight: 600; color: var(--navy); }
.methods { display: flex; gap: 8px; flex-wrap: wrap; }
.methods > span { padding: 6px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 12.5px; font-weight: 600; color: var(--gray); background: #fff; }
.methods > span.on { border-color: var(--blue); color: var(--blue); box-shadow: 0 0 0 3px rgba(19,100,191,.12); }
.pay-btn { position: relative; display: block; text-align: center; padding: 11px; border-radius: 12px; font-weight: 600; color: #fff; background: linear-gradient(135deg, #0e2a5a, #1364bf); transition: background .5s; overflow: hidden; }
.pay-btn .ok { display: none; }
.pay.paid .pay-btn { background: linear-gradient(135deg, #0f9d6b, #35d4a0); }
.pay.paid .pay-btn .go { display: none; } .pay.paid .pay-btn .ok { display: inline; }
.receipt { display: flex; align-items: center; gap: 8px; color: #7b8aa3; font-size: 12.5px; opacity: 0; transform: translateY(6px); transition: all .5s var(--ease) .15s; }
.pay.paid .receipt { opacity: 1; transform: none; }

/* evento */
.evc { padding: 14px; display: grid; gap: 12px; }
.ev-h { display: flex; justify-content: space-between; gap: 10px; }
.ev-h b { font-family: var(--font-title); font-weight: 600; color: var(--navy); display: block; line-height: 1.25; } .ev-h small { color: #7b8aa3; }
.prog { height: 9px; background: #e9eef7; border-radius: 99px; overflow: hidden; }
.prog i { display: block; height: 100%; width: 0; border-radius: 99px; background: var(--grad); transition: width 1.4s var(--ease) .25s; }
.in .prog i, .prog.in i { width: var(--w, 70%); }
.ev-f { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--gray); }

/* asistencia */
.att { padding: 14px; }
.att-g { display: grid; grid-template-columns: 70px repeat(8, 1fr); gap: 6px 5px; align-items: center; font-size: 12.5px; }
.att-g > span.n { color: var(--ink); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.att-g i { height: 16px; border-radius: 5px; background: #e6eef9; transform: scale(.4); opacity: 0; transition: transform .45s var(--ease), opacity .45s; transition-delay: calc(var(--k) * 35ms + 200ms); }
.in .att-g i { transform: none; opacity: 1; }
.att-g i.p { background: linear-gradient(135deg, #33cde0, #1364bf); } .att-g i.a { background: #f5d0d0; } .att-g i.j { background: #ffe9a8; }

/* contabilidad */
.acc { display: grid; grid-template-columns: 1.15fr 1fr; gap: 14px; }
.chart { padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.chart-h { display: flex; justify-content: space-between; align-items: baseline; } .chart-h b { font-family: var(--font-title); font-weight: 600; color: var(--navy); } .chart-h small { color: #7b8aa3; }
.bars { flex: 1; min-height: 120px; display: flex; align-items: flex-end; gap: 9px; padding-top: 6px; }
.bars i { flex: 1; border-radius: 7px 7px 3px 3px; background: linear-gradient(180deg, #33cde0, #1364bf); height: var(--h); transform: scaleY(0); transform-origin: bottom; transition: transform .9s var(--ease); transition-delay: calc(var(--k) * 70ms + 150ms); }
.in .bars i { transform: none; } .bars i.alt { background: linear-gradient(180deg, #b08cff, #6a4be0); }
.code { background: #0c1a3a; color: #cfe0ff; border-radius: 14px; padding: 16px 18px; font: 12.5px/1.65 ui-monospace, 'SF Mono', Menlo, Consolas, monospace; overflow: hidden; box-shadow: 0 16px 30px -18px rgba(14,42,90,.7); }
.code .k { color: #7cc4ff; } .code .s { color: #8fe3c1; } .code .n { color: #f6d35b; } .code .c { color: #6b7fa8; }
.code .dots { display: flex; gap: 6px; margin-bottom: 12px; } .code .dots i { width: 9px; height: 9px; border-radius: 50%; background: #2a3b63; }

/* campaña */
.camp { padding: 16px; display: grid; gap: 12px; }
.camp b { font-family: var(--font-title); font-weight: 600; color: var(--navy); } .camp .big { font-family: var(--font-title); font-size: 28px; font-weight: 600; color: var(--ink); }
.camp .row2 { display: flex; justify-content: space-between; color: var(--gray); font-size: 12.5px; }

/* chips "y además" */
.more { padding: 34px 0 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.track { display: flex; gap: 12px; width: max-content; animation: marquee 48s linear infinite; }
.more:hover .track { animation-play-state: paused; }
.track > span { display: inline-flex; align-items: center; gap: 9px; padding: 11px 20px; background: #fff; border: 1px solid var(--line); border-radius: 999px; font-family: var(--font-title); font-weight: 600; font-size: 15px; color: var(--navy); box-shadow: var(--shadow); white-space: nowrap; }
.track > span::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--grad); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- roles ---------- */
.roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.role { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 26px; box-shadow: var(--shadow); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.role:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.role .av { width: 46px; height: 46px; border-radius: 14px; margin-bottom: 18px; font-size: 18px; }
.role h3 { font-size: 19px; margin-bottom: 8px; } .role p { color: var(--gray); font-size: 15.5px; }

/* ---------- portal ---------- */
.split { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(32px, 6vw, 84px); align-items: center; }
.ticks { display: grid; gap: 14px; margin-top: 28px; }
.ticks li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; font-size: 16.5px; color: var(--ink); }
.ticks svg { width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: #e6f0ff; color: var(--blue); }
.phone { width: min(340px, 100%); margin-inline: auto; background: #0e1f43; border-radius: 40px; padding: 10px; box-shadow: var(--shadow-lg); }
.phone-in { background: #fff; border-radius: 31px; overflow: hidden; min-height: 560px; display: flex; flex-direction: column; }
.ph-top { padding: 22px 20px 16px; background: linear-gradient(135deg, #0e2a5a, #1364bf 70%, #33cde0); color: #fff; }
.ph-top small { opacity: .8; display: block; } .ph-top b { font-family: var(--font-title); font-weight: 600; font-size: 20px; }
.ph-bal { margin: -14px 16px 0; background: #fff; border-radius: 16px; padding: 14px 16px; box-shadow: var(--shadow); display: flex; justify-content: space-between; align-items: center; }
.ph-bal small { color: #7b8aa3; display: block; } .ph-bal b { font-family: var(--font-title); font-size: 22px; font-weight: 600; color: var(--navy); }
.ph-list { padding: 16px; display: grid; gap: 10px; }
.ph-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; font-size: 14px; }
.ph-item b { font-weight: 600; display: block; line-height: 1.25; } .ph-item small { color: #7b8aa3; } .ph-item .tag { margin-left: auto; }
.ph-cta { margin: auto 16px 18px; text-align: center; padding: 13px; border-radius: 14px; background: linear-gradient(135deg, #0e2a5a, #1364bf); color: #fff; font-weight: 600; font-family: var(--font-title); }

/* ---------- seguridad ---------- */
.dark { background: radial-gradient(1000px 500px at 85% -10%, rgba(140,95,235,.35), transparent 60%), radial-gradient(900px 500px at 5% 110%, rgba(51,205,224,.28), transparent 60%), #091a3d; color: #e8efff; }
.dark .eyebrow { background: linear-gradient(90deg, #6fe3f2, #b9a0ff); -webkit-background-clip: text; background-clip: text; }
.dark .h2 { color: #fff; } .dark .h2 .dim { color: #8fa4cf; } .dark .sec-lead { color: #aebfe0; }
.sec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.sec-card { padding: 26px; border-radius: var(--r); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(6px); transition: transform .35s var(--ease), background .35s; }
.sec-card:hover { transform: translateY(-4px); background: rgba(255,255,255,.1); }
.sec-card svg { width: 28px; height: 28px; color: #7fe1f0; margin-bottom: 16px; }
.sec-card h3 { font-size: 18px; margin-bottom: 8px; color: #fff; } .sec-card p { color: #aebfe0; font-size: 15.5px; }

/* ---------- pasos ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.step { position: relative; padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.step::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; margin-bottom: 20px; background: var(--grad); color: #fff; font-family: var(--font-title); font-weight: 600; font-size: 18px; }
.step h3 { font-size: 20px; margin-bottom: 8px; } .step p { color: var(--gray); font-size: 15.5px; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 16px; padding: 20px 24px; font-family: var(--font-title); font-weight: 600; font-size: 17.5px; color: var(--navy); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; margin-left: auto; flex: none; width: 12px; height: 12px; border-right: 2.5px solid var(--blue); border-bottom: 2.5px solid var(--blue); transform: rotate(45deg) translateY(-3px); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq details p { padding: 0 24px 22px; color: var(--gray); }

/* ---------- llamada final y pie ---------- */
.cta { position: relative; overflow: hidden; border-radius: 32px; padding: clamp(40px, 7vw, 84px); text-align: center; color: #fff; background: radial-gradient(700px 360px at 80% -20%, rgba(140,95,235,.8), transparent 60%), radial-gradient(700px 400px at 10% 120%, rgba(51,205,224,.7), transparent 60%), linear-gradient(135deg, #0e2a5a, #1364bf); box-shadow: var(--shadow-lg); }
.cta h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); margin: 0 auto 16px; max-width: 16em; } .cta p { color: #d3e2ff; max-width: 34em; margin: 0 auto 32px; font-size: 1.15rem; }
.cta .btn-ghost { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.35); box-shadow: none; backdrop-filter: blur(6px); }
.cta .btn-primary { background: #fff; color: var(--navy); box-shadow: 0 10px 26px -10px rgba(0,0,0,.4); }
.cta-b { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.site-footer { padding: 64px 0 40px; }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 36px; border-bottom: 1px solid var(--line); }
.foot p { color: var(--gray); font-size: 14.5px; margin-top: 14px; max-width: 26em; }
.foot h4 { font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: #7b8aa3; margin-bottom: 14px; font-weight: 600; }
.foot li { margin-bottom: 8px; } .foot li a { color: var(--navy); font-size: 15px; font-weight: 500; } .foot li a:hover { color: var(--blue); }
.legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; color: #7b8aa3; font-size: 13.5px; }

/* ---------- aparición al hacer scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- adaptación ---------- */
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-art { min-height: 380px; }
  .ribbon { top: -40px; left: -60px; width: calc(100% + 60px + 30vw); height: calc(100% + 80px); }
  .f2 { display: none; }
  .c7, .c5, .c4, .c8, .c6 { grid-column: span 12; }
  .split { grid-template-columns: 1fr; }
  .roles, .sec-grid, .steps { grid-template-columns: 1fr 1fr; }
  .acc { grid-template-columns: 1fr; }
  .foot { grid-template-columns: 1fr 1fr; } .foot > div:first-child { grid-column: span 2; }
}
@media (max-width: 860px) {
  .nav-links { position: fixed; inset: 72px 0 auto 0; flex-direction: column; gap: 0; margin: 0; padding: 12px 24px 24px; background: rgba(255,255,255,.97); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); transform: translateY(-12px); opacity: 0; pointer-events: none; transition: transform .3s var(--ease), opacity .25s; }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 14px 6px; font-size: 17px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .menu-btn { display: inline-flex; } .nav-end .btn { display: none; }
}
@media (max-width: 620px) {
  body { font-size: 16px; } .wrap { width: min(var(--wrap), 100% - 36px); }
  .roles, .sec-grid, .steps { grid-template-columns: 1fr; }
  .card { padding: 20px; } .stage { padding: 12px; }
  .rowi { grid-template-columns: 34px 1fr auto; } .rowi .tag.t-hide { display: none; }
  .f1 { right: 0; top: 2%; } .f3 { right: 4%; bottom: 2%; }
  .foot { grid-template-columns: 1fr; } .foot > div:first-child { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0ms !important; }
  .reveal { opacity: 1; transform: none; }
  .bars i, .att-g i { transform: none; opacity: 1; } .prog i { width: var(--w, 70%); }
  .track { flex-wrap: wrap; width: auto; justify-content: center; } .track span:nth-child(n+13) { display: none; }
}

.s { width: 14px; height: 14px; flex: none; }
.rowi + .rowi { }
