/* ============================================================
   KAE PATRIMONIO · SOFOM E.N.R.
   Futuristic glassmorphism design system
   Brand palette derived from logo: cyan-blue -> green, black
   ============================================================ */

:root {
  /* Brand */
  --blue:      #16A6DE;
  --blue-2:    #0E7FB8;
  --green:     #4FB84B;
  --green-2:   #2E9E4F;
  --ink:       #0A1017;

  /* Surfaces */
  --bg:        #060B14;
  --bg-2:      #0A1420;
  --panel:     rgba(255,255,255,.055);
  --panel-2:   rgba(255,255,255,.03);
  --stroke:    rgba(255,255,255,.12);
  --stroke-2:  rgba(255,255,255,.07);

  /* Text */
  --text:      #EAF2F8;
  --muted:     #93A6B8;
  --muted-2:   #5E7286;

  /* FX */
  --grad:      linear-gradient(120deg, var(--blue), var(--green));
  --grad-soft: linear-gradient(120deg, rgba(22,166,222,.18), rgba(79,184,75,.18));
  --glow-blue: 0 0 40px rgba(22,166,222,.35);
  --glow-green:0 0 40px rgba(79,184,75,.30);
  --shadow:    0 20px 60px -20px rgba(0,0,0,.65);
  --radius:    22px;
  --radius-sm: 14px;

  --font: "Space Grotesk", "Inter", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 108px; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Animated aurora background ---------- */
.bg-fx { position: fixed; inset: 0; z-index: -2; overflow: hidden; background:
  radial-gradient(1200px 800px at 80% -10%, rgba(22,166,222,.14), transparent 60%),
  radial-gradient(1000px 700px at 0% 100%, rgba(79,184,75,.12), transparent 55%),
  var(--bg); }
.blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55;
  mix-blend-mode: screen; animation: drift 22s var(--ease) infinite alternate; }
.blob.b1 { width: 560px; height: 560px; background: var(--blue);  top: -160px; left: -120px; }
.blob.b2 { width: 620px; height: 620px; background: var(--green); bottom: -220px; right: -140px; animation-delay: -7s; }
.blob.b3 { width: 420px; height: 420px; background: #1FC7C7; top: 40%; left: 55%; animation-delay: -13s; opacity:.35; }
@keyframes drift {
  0%   { transform: translate(0,0) scale(1); }
  100% { transform: translate(60px,-50px) scale(1.15); }
}
.bg-grid { position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 75%);
}

/* ---------- Layout helpers ---------- */
.wrap { width: min(1200px, 92vw); margin-inline: auto; }
section { padding: 96px 0; position: relative; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem;
  letter-spacing: .18em; text-transform: uppercase; color: var(--blue);
  font-weight: 600; margin-bottom: 16px; }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--grad); border-radius: 2px; }
h2.section-title { font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.08; font-weight: 700;
  letter-spacing: -.02em; margin-bottom: 18px; }
.section-title .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: var(--muted); font-size: 1.06rem; max-width: 62ch; }

/* ---------- Glass primitive ---------- */
.glass {
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.06);
  position: relative;
  overflow: hidden;
}
.glass::after { /* sheen */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(140deg, rgba(255,255,255,.10), transparent 40%);
  opacity: .8;
}

/* ---------- Buttons ---------- */
.btn { --pad: 14px 26px; display: inline-flex; align-items: center; gap: 10px;
  padding: var(--pad); border-radius: 100px; font-weight: 600; font-size: .96rem;
  cursor: pointer; border: 1px solid transparent; text-decoration: none;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s; }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: var(--glow-blue); background-size: 160% 160%; }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 14px 40px -8px rgba(22,166,222,.6); background-position: 100% 0; }
.btn-ghost { background: var(--panel); color: var(--text); border-color: var(--stroke);
  backdrop-filter: blur(10px); }
.btn-ghost:hover { transform: translateY(-3px); border-color: rgba(79,184,75,.6); box-shadow: var(--glow-green); }
.btn-sm { --pad: 10px 18px; font-size: .85rem; }

/* ============================================================
   TOPBAR
   ============================================================ */
.topbar { font-size: .8rem; color: var(--muted); border-bottom: 1px solid var(--stroke-2);
  background: rgba(6,11,20,.6); backdrop-filter: blur(10px); position: relative; z-index: 60; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 40px; gap: 20px; }
.topbar .phrase { display: inline-flex; align-items: center; gap: 8px; }
.topbar .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); animation: pulse 2s infinite; }
.topbar-links { display: flex; gap: 18px; align-items: center; }
.topbar-links a { color: var(--muted); text-decoration: none; transition: color .25s; white-space: nowrap; }
.topbar-links a:hover { color: var(--blue); }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.35} }

/* ============================================================
   NAVBAR
   ============================================================ */
.nav { position: sticky; top: 0; z-index: 50; transition: background .4s, box-shadow .4s, padding .4s; }
.nav.scrolled { background: rgba(6,11,20,.72); backdrop-filter: blur(20px) saturate(140%);
  box-shadow: 0 10px 40px -20px rgba(0,0,0,.8); border-bottom: 1px solid var(--stroke-2); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.brand img { height: 46px; width: auto; filter: drop-shadow(0 4px 14px rgba(22,166,222,.45)); }
.brand .bt { display: flex; flex-direction: column; line-height: 1; }
.brand .bt b { font-size: 1.05rem; letter-spacing: .02em; }
.brand .bt span { font-size: .62rem; letter-spacing: .18em; color: var(--muted); text-transform: uppercase; }

.menu { display: flex; align-items: center; gap: 4px; list-style: none; }
.menu > li { position: relative; }
.menu > li > a { display: inline-flex; align-items: center; gap: 6px; padding: 10px 15px; border-radius: 100px;
  color: var(--text); text-decoration: none; font-size: .92rem; font-weight: 500;
  transition: color .25s, background .25s; }
.menu > li > a:hover { color: #fff; background: var(--panel); }
.menu > li > a .chev { width: 12px; height: 12px; transition: transform .3s; }
.menu > li:hover > a .chev { transform: rotate(180deg); }

/* dropdown — fondo sólido oscuro para legibilidad (no heredar el glass translúcido) */
.submenu { position: absolute; top: calc(100% + 12px); left: 0; min-width: 320px;
  padding: 10px; list-style: none; opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: all .3s var(--ease);
  background: rgba(9, 16, 28, .98) !important;
  border: 1px solid var(--stroke);
  box-shadow: 0 24px 60px -18px rgba(0,0,0,.85), inset 0 1px 0 rgba(255,255,255,.06); }
.submenu::after { display: none; }
.menu > li:hover .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu::before { content:""; position:absolute; top:-12px; left:0; right:0; height:12px; }
.submenu a { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 12px;
  text-decoration: none; color: var(--text); transition: background .25s; }
.submenu a:hover { background: var(--grad-soft); }
.submenu a .si { flex: 0 0 34px; height: 34px; display: grid; place-items: center; border-radius: 9px;
  background: var(--grad); color: #fff; font-weight: 700; font-size: .8rem; }
.submenu a b { display: block; font-size: .9rem; font-weight: 600; }
.submenu a small { color: var(--muted); font-size: .74rem; }

.nav-cta { display: flex; align-items: center; gap: 12px; }
.hamburger { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--stroke);
  background: var(--panel); cursor: pointer; flex-direction: column; gap: 5px; align-items: center; justify-content: center; }
.hamburger span { width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s; }

/* ============================================================
   HERO
   ============================================================ */
.hero { padding-top: 70px; padding-bottom: 60px; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 50px; align-items: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 100px;
  background: var(--panel); border: 1px solid var(--stroke); font-size: .8rem; color: var(--muted); margin-bottom: 26px; }
.hero-badge b { color: var(--text); }
.hero h1 { font-size: clamp(2.4rem, 5.4vw, 4.1rem); line-height: 1.02; letter-spacing: -.03em; font-weight: 700; }
.hero h1 .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  position: relative; }
.hero-slide-text { min-height: 2.1em; }
.hero p.sub { color: var(--muted); font-size: 1.12rem; margin: 22px 0 32px; max-width: 52ch; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 30px; margin-top: 44px; flex-wrap: wrap; }
.hero-stats .st b { display: block; font-size: 1.8rem; font-weight: 700;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-stats .st span { color: var(--muted); font-size: .82rem; }

/* Hero visual — orbiting glass card + KAE ring */
.hero-visual { position: relative; height: 460px; display: grid; place-items: center; }
.ring { position: absolute; inset: 0; margin: auto; width: 380px; height: 380px; }
.ring svg { width: 100%; height: 100%; animation: spin 26s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero-card { width: 300px; padding: 26px; text-align: center; z-index: 2; animation: floatY 6s var(--ease) infinite; }
.hero-card .logo-badge { width: 160px; margin: 0 auto 16px; display: grid; place-items: center; }
.hero-card .logo-badge img { width: 100%; filter: drop-shadow(0 8px 24px rgba(22,166,222,.5)); }
.hero-card h3 { font-size: 1.1rem; }
.hero-card .chip { display: inline-block; margin-top: 6px; font-size: .68rem; letter-spacing: .12em;
  padding: 5px 12px; border-radius: 100px; background: var(--grad-soft); border: 1px solid var(--stroke); color: var(--text); }
.hero-card .mini { margin-top: 18px; display: flex; justify-content: space-around; gap: 10px; }
.hero-card .mini div b { display: block; font-size: 1.15rem; color: var(--green); }
.hero-card .mini div span { font-size: .68rem; color: var(--muted); }
@keyframes floatY { 0%,100%{ transform: translateY(0) } 50%{ transform: translateY(-16px) } }

.float-pill { position: absolute; padding: 10px 16px; border-radius: 100px; font-size: .78rem; font-weight: 600;
  display: flex; align-items: center; gap: 8px; z-index: 3; animation: floatY 5s var(--ease) infinite; }
.float-pill.p1 { top: 30px; right: 0; animation-delay: -1s; }
.float-pill.p2 { bottom: 40px; left: -10px; animation-delay: -3s; }
.float-pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }

/* ============================================================
   HIGHLIGHTS STRIP
   ============================================================ */
.strip { padding: 0; margin-top: -10px; }
.strip .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.strip .item { display: flex; align-items: center; gap: 14px; padding: 20px 22px; border-radius: var(--radius-sm); }
.strip .item .ic { flex: 0 0 46px; height: 46px; display: grid; place-items: center; border-radius: 12px;
  background: var(--grad-soft); border: 1px solid var(--stroke); }
.strip .item .ic svg { width: 24px; height: 24px; stroke: var(--blue); }
.strip .item b { font-size: .96rem; display: block; }
.strip .item span { font-size: .8rem; color: var(--muted); }

/* ============================================================
   TRUST / VALUES CARDS
   ============================================================ */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 46px; }
.value-card { padding: 32px 28px; transition: transform .5s var(--ease), border-color .5s; }
.value-card:hover { transform: translateY(-8px); border-color: rgba(22,166,222,.5); }
.value-card .vic { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center;
  background: var(--grad); box-shadow: var(--glow-blue); margin-bottom: 20px; }
.value-card .vic svg { width: 28px; height: 28px; stroke: #fff; }
.value-card h3 { font-size: 1.22rem; margin-bottom: 10px; }
.value-card p { color: var(--muted); font-size: .95rem; }

/* ============================================================
   PRODUCTS
   ============================================================ */
.products-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 46px; }
.product { padding: 30px; display: flex; flex-direction: column; transition: transform .5s var(--ease), border-color .5s; }
.product:hover { transform: translateY(-6px); border-color: rgba(79,184,75,.5); }
.product .p-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.product .p-ic { flex: 0 0 56px; height: 56px; border-radius: 15px; display: grid; place-items: center;
  background: var(--grad-soft); border: 1px solid var(--stroke); }
.product .p-ic svg { width: 28px; height: 28px; stroke: var(--green); }
.product .p-tag { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); font-weight: 600; }
.product h3 { font-size: 1.28rem; line-height: 1.15; }
.product .p-desc { color: var(--muted); font-size: .93rem; margin-bottom: 18px; }
.product .p-feats { list-style: none; display: grid; gap: 10px; margin-bottom: 22px; }
.product .p-feats li { display: flex; align-items: flex-start; gap: 10px; font-size: .9rem; color: var(--text); }
.product .p-feats li svg { width: 18px; height: 18px; stroke: var(--green); flex-shrink: 0; margin-top: 2px; }
.product .p-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-top: 18px; border-top: 1px solid var(--stroke-2); }
.product .contract { font-size: .68rem; color: var(--muted-2); font-family: ui-monospace, monospace; }

/* Product detail — diagram */
.diagram { position: relative; height: 340px; display: grid; place-items: center; margin: 20px 0; }
.diagram .center { width: 150px; height: 150px; border-radius: 50%; display: grid; place-items: center; text-align: center;
  background: var(--grad); box-shadow: var(--glow-blue); padding: 18px; z-index: 2; font-weight: 600; font-size: .82rem; color: #fff; }
.diagram .sat { position: absolute; width: 120px; padding: 12px; text-align: center; }
.diagram .sat b { display: block; font-size: .92rem; color: var(--green); }
.diagram .sat span { font-size: .72rem; color: var(--muted); }
.diagram .sat.s1 { top: 0; left: 50%; transform: translateX(-50%); }
.diagram .sat.s2 { right: 0; top: 50%; transform: translateY(-50%); }
.diagram .sat.s3 { bottom: 0; left: 50%; transform: translateX(-50%); }
.diagram .sat.s4 { left: 0; top: 50%; transform: translateY(-50%); }

/* ============================================================
   COSTS TABLE
   ============================================================ */
.cost-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin: 30px 0 24px; }
.cost-tab { padding: 12px 20px; border-radius: 100px; border: 1px solid var(--stroke); background: var(--panel);
  color: var(--muted); cursor: pointer; font-size: .88rem; font-weight: 500; transition: all .3s; }
.cost-tab.active { background: var(--grad); color: #fff; border-color: transparent; box-shadow: var(--glow-blue); }
.cost-panel { display: none; }
.cost-panel.active { display: block; animation: fadeUp .5s var(--ease); }
.cost-table-wrap { overflow-x: auto; border-radius: var(--radius); }
table.cost-table { width: 100%; border-collapse: collapse; min-width: 620px; }
table.cost-table th { text-align: left; padding: 16px 20px; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--blue); background: var(--panel-2); border-bottom: 1px solid var(--stroke); }
table.cost-table td { padding: 16px 20px; font-size: .92rem; border-bottom: 1px solid var(--stroke-2); vertical-align: top; }
table.cost-table tr:last-child td { border-bottom: none; }
table.cost-table td b { color: var(--text); }
.cat-note { margin-top: 18px; padding: 16px 20px; border-radius: var(--radius-sm); font-size: .9rem;
  background: var(--grad-soft); border: 1px solid var(--stroke); color: var(--text); }
.cat-highlight { font-size: 1rem; font-weight: 700; color: var(--green); }

/* ============================================================
   SIMULATOR
   ============================================================ */
.sim { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 46px; }
.sim-controls { padding: 34px; }
.sim-field { margin-bottom: 26px; }
.sim-field .row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.sim-field label { font-size: .9rem; font-weight: 500; }
.sim-field .val { font-size: 1.2rem; font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
input[type=range] { -webkit-appearance: none; width: 100%; height: 6px; border-radius: 100px;
  background: rgba(255,255,255,.12); outline: none; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%;
  background: var(--grad); cursor: pointer; box-shadow: var(--glow-blue); border: 3px solid #0a1420; transition: transform .2s; }
input[type=range]::-webkit-slider-thumb:hover { transform: scale(1.15); }
input[type=range]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--green); cursor: pointer; border: none; }
.sim-scale { display: flex; justify-content: space-between; font-size: .72rem; color: var(--muted-2); margin-top: 8px; }

.sim-result { padding: 34px; display: flex; flex-direction: column; }
.sim-result .big { text-align: center; padding: 18px 0 26px; border-bottom: 1px solid var(--stroke-2); margin-bottom: 22px; }
.sim-result .big span { font-size: .82rem; color: var(--muted); display: block; }
.sim-result .big b { font-size: clamp(2.2rem,5vw,3rem); font-weight: 700;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sim-result .big em { font-style: normal; font-size: .9rem; color: var(--muted); }
.sim-rows { display: grid; gap: 14px; margin-bottom: 22px; }
.sim-rows .r { display: flex; justify-content: space-between; font-size: .94rem; }
.sim-rows .r span { color: var(--muted); }
.sim-rows .r b { font-weight: 600; }
.sim-disclaimer { font-size: .76rem; color: var(--muted-2); margin-top: auto; line-height: 1.5; }

/* ============================================================
   UNE — high contrast mandatory notice
   ============================================================ */
.une-card { padding: 0; overflow: hidden; }
.une-head { padding: 26px 34px; background: linear-gradient(120deg, rgba(22,166,222,.16), rgba(79,184,75,.16));
  border-bottom: 1px solid var(--stroke); display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.une-head img { height: 44px; filter: drop-shadow(0 4px 12px rgba(22,166,222,.4)); }
.une-head b { font-size: 1.1rem; }
.une-head span { font-size: .8rem; color: var(--muted); }
.une-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; }
.une-item { padding: 22px 34px; border-bottom: 1px solid var(--stroke-2); border-right: 1px solid var(--stroke-2); }
.une-item:nth-child(2n) { border-right: none; }
.une-item .k { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); font-weight: 600; margin-bottom: 6px; }
.une-item .v { font-size: .98rem; color: #fff; font-weight: 500; }
.une-item .v a { color: var(--green); text-decoration: none; }
.une-foot { padding: 20px 34px; font-size: .84rem; color: var(--muted); background: var(--panel-2); }

/* ============================================================
   BURÓ
   ============================================================ */
.buro { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: stretch; margin-top: 40px; }
.buro-card { padding: 34px; }
.buro-badge { display: inline-flex; align-items: center; gap: 12px; padding: 14px 20px; border-radius: var(--radius-sm);
  background: #fff; color: var(--ink); font-weight: 700; margin-bottom: 22px; }
.buro-badge .bicon { width: 40px; height: 40px; border-radius: 10px; background: var(--grad); display: grid; place-items: center; color: #fff; font-size: 1.1rem; }
.buro-badge small { display: block; font-size: .66rem; font-weight: 600; color: var(--blue-2); letter-spacing: .05em; }
.buro-card p { color: var(--muted); font-size: .92rem; margin-bottom: 16px; }
.buro-legend { padding: 18px 20px; border-radius: var(--radius-sm); background: var(--panel-2); border: 1px solid var(--stroke-2);
  font-size: .84rem; color: var(--text); font-style: italic; }
.gov-links { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 22px; }
.gov-link { display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: var(--radius-sm);
  text-decoration: none; color: var(--text); border: 1px solid var(--stroke); background: var(--panel);
  transition: transform .35s var(--ease), border-color .35s; }
.gov-link:hover { transform: translateY(-4px); border-color: rgba(22,166,222,.6); box-shadow: var(--glow-blue); }
.gov-link .gl { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; font-weight: 700;
  background: var(--grad-soft); border: 1px solid var(--stroke); font-size: .8rem; }
.gov-link b { font-size: .92rem; display: block; }
.gov-link span { font-size: .72rem; color: var(--muted); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 26px; margin-top: 44px; }
.contact-info { padding: 34px; display: flex; flex-direction: column; gap: 22px; }
.ci-item { display: flex; gap: 16px; align-items: flex-start; }
.ci-item .cic { flex: 0 0 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--grad); box-shadow: var(--glow-blue); }
.ci-item .cic svg { width: 22px; height: 22px; stroke: #fff; }
.ci-item .k { font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); font-weight: 600; }
.ci-item .v { font-size: .96rem; }
.ci-item .v a { color: var(--text); text-decoration: none; }
.ci-item .v a:hover { color: var(--green); }
.contact-form { padding: 34px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .82rem; color: var(--muted); margin-bottom: 8px; }
.field input, .field select, .field textarea { width: 100%; padding: 14px 16px; border-radius: 12px;
  background: var(--panel-2); border: 1px solid var(--stroke); color: var(--text); font-family: inherit; font-size: .92rem;
  transition: border-color .3s, box-shadow .3s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(22,166,222,.15); }
.field textarea { resize: vertical; min-height: 110px; }
.form-note { font-size: .76rem; color: var(--muted-2); margin-top: 12px; }

/* ============================================================
   FOOTER
   ============================================================ */
footer { padding: 70px 0 30px; border-top: 1px solid var(--stroke-2); margin-top: 40px;
  background: linear-gradient(180deg, transparent, rgba(10,20,32,.6)); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.foot-brand img { height: 48px; margin-bottom: 18px; filter: drop-shadow(0 6px 20px rgba(22,166,222,.45)); }
.foot-brand p { color: var(--muted); font-size: .88rem; max-width: 42ch; }
.foot-col h4 { font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); margin-bottom: 16px; }
.foot-col a { display: block; color: var(--muted); text-decoration: none; font-size: .9rem; padding: 6px 0; transition: color .25s; }
.foot-col a:hover { color: var(--text); }
.legal-box { padding: 22px 26px; border-radius: var(--radius-sm); background: var(--panel-2); border: 1px solid var(--stroke-2);
  font-size: .8rem; color: var(--muted); line-height: 1.65; margin-bottom: 30px; }
.legal-box b { color: var(--text); }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  padding-top: 24px; border-top: 1px solid var(--stroke-2); font-size: .82rem; color: var(--muted-2); }
.foot-bottom a { color: var(--muted); text-decoration: none; }
.foot-bottom a:hover { color: var(--green); }

/* ============================================================
   WHATSAPP FAB
   ============================================================ */
.wa-fab { position: fixed; bottom: 26px; right: 26px; z-index: 80; width: 60px; height: 60px; border-radius: 50%;
  background: #25D366; display: grid; place-items: center; box-shadow: 0 12px 30px -6px rgba(37,211,102,.6);
  animation: floatY 4s var(--ease) infinite; transition: transform .3s; }
.wa-fab:hover { transform: scale(1.1); }
.wa-fab svg { width: 32px; height: 32px; fill: #fff; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
/* Only hide reveal elements when JS is confirmed running (html.js) —
   without JS everything stays visible as a safe fallback. */
html.js [data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
html.js [data-reveal].in { opacity: 1; transform: none; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-visual { height: 380px; order: -1; }
  .strip .wrap { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .sim, .buro, .contact { grid-template-columns: 1fr; }
  .une-grid { grid-template-columns: 1fr; }
  .une-item { border-right: none; }
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
  .gov-links { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .menu, .nav-cta .btn { display: none; }
  .hamburger { display: flex; }
  .topbar .phrase { display: none; }
  .strip .wrap { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  section { padding: 70px 0; }

  /* mobile menu open */
  .menu.open { display: flex; position: fixed; top: 116px; left: 4vw; right: 4vw; flex-direction: column;
    align-items: stretch; padding: 16px; gap: 4px; z-index: 55;
    background: rgba(10,20,32,.96); backdrop-filter: blur(24px); border: 1px solid var(--stroke); border-radius: var(--radius); }
  .menu.open > li > a { padding: 14px 16px; }
  .menu.open .submenu { position: static; opacity: 1; visibility: visible; transform: none;
    min-width: 0; padding-left: 12px; }
}

/* ============================================================
   LOADER — pantalla de carga con logo animado
   Solo se muestra con JS activo (html.js); sin JS nunca bloquea.
   ============================================================ */
.loader { display: none; }
html.js .loader { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center;
  background:
    radial-gradient(900px 600px at 75% 15%, rgba(22,166,222,.14), transparent 60%),
    radial-gradient(800px 550px at 20% 90%, rgba(79,184,75,.12), transparent 55%),
    var(--bg);
  transition: opacity .65s var(--ease), visibility .65s; }
html.js .loader.done { opacity: 0; visibility: hidden; pointer-events: none; }

.loader-inner { display: grid; place-items: center; gap: 34px; }
.loader-core { position: relative; display: grid; place-items: center; width: min(210px, 60vw); aspect-ratio: 1; }
.loader-logo { width: min(146px, 42vw); animation: loaderFloat 2.4s var(--ease) infinite;
  filter: drop-shadow(0 0 34px rgba(22,166,222,.55)) drop-shadow(0 0 60px rgba(79,184,75,.25)); }
@keyframes loaderFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-14px) scale(1.03); }
}
.loader-ring, .loader-ring2 { position: absolute; inset: 0; border-radius: 50%; }
.loader-ring { border: 3px solid transparent; border-top-color: var(--blue); border-bottom-color: var(--green);
  animation: spin 1.5s linear infinite; }
.loader-ring2 { inset: 22px; border: 2px dashed rgba(255,255,255,.14); animation: spin 9s linear infinite reverse; }

.loader-bar { width: 230px; height: 4px; border-radius: 100px; background: rgba(255,255,255,.09); overflow: hidden; }
.loader-bar span { display: block; height: 100%; width: 45%; border-radius: 100px; background: var(--grad);
  box-shadow: 0 0 14px rgba(22,166,222,.7); animation: loaderBar 1.2s var(--ease) infinite; }
@keyframes loaderBar {
  0%   { transform: translateX(-110%); }
  100% { transform: translateX(560%); }
}
.loader-text { font-size: .74rem; letter-spacing: .3em; text-transform: uppercase; color: var(--muted);
  animation: pulse 1.8s infinite; }

/* ============================================================
   GLOBAL FEATURE LISTS (fix: previously scoped to .product only)
   ============================================================ */
.p-feats { list-style: none; display: grid; gap: 10px; }
.p-feats li { display: flex; align-items: flex-start; gap: 10px; font-size: .9rem; color: var(--text); }
.p-feats li svg { width: 18px; height: 18px; stroke: var(--green); flex-shrink: 0; margin-top: 2px; }

/* ============================================================
   REQUISITOS
   ============================================================ */
.req-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 22px; }
.req-item { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: var(--radius-sm);
  background: var(--panel-2); border: 1px solid var(--stroke-2); transition: border-color .3s, transform .3s var(--ease); }
.req-item:hover { border-color: rgba(79,184,75,.45); transform: translateY(-3px); }
.req-item svg { width: 20px; height: 20px; stroke: var(--green); flex-shrink: 0; margin-top: 2px; }
.req-item span { font-size: .88rem; color: var(--text); }

/* ============================================================
   INTERIOR PAGES
   ============================================================ */
.page-hero { padding: 70px 0 20px; }
.breadcrumb { font-size: .8rem; color: var(--muted-2); margin-bottom: 20px; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--blue); }
.prod-layout { display: grid; grid-template-columns: 1.05fr .95fr; gap: 46px; align-items: center; }
.contract-chip { display: inline-block; margin-top: 20px; padding: 8px 16px; border-radius: 100px;
  background: var(--panel); border: 1px solid var(--stroke); font-size: .72rem; color: var(--muted);
  font-family: ui-monospace, monospace; }
.menu > li > a.active { background: var(--panel); color: #fff; box-shadow: inset 0 0 0 1px var(--stroke); }

.diagram::before { content: ""; position: absolute; width: 330px; height: 330px; border-radius: 50%;
  border: 1px dashed rgba(255,255,255,.16); animation: spin 34s linear infinite; }

/* Regulatory warnings */
.warn-list { list-style: none; display: grid; gap: 12px; }
.warn-list li { display: flex; gap: 12px; align-items: flex-start; font-size: .88rem; color: var(--muted); }
.warn-list li svg { width: 20px; height: 20px; stroke: #E8B23A; flex-shrink: 0; margin-top: 1px; }

/* UNE / process steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.step { padding: 28px 26px; position: relative; }
.step .n { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-weight: 700;
  background: var(--grad); color: #fff; box-shadow: var(--glow-blue); margin-bottom: 16px; }
.step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .88rem; }

/* CTA band */
.cta-band { padding: 44px; text-align: center; }
.cta-band h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); margin-bottom: 12px; }
.cta-band p { color: var(--muted); margin-bottom: 26px; }
.cta-band .row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Prose (aviso de privacidad) */
.prose { max-width: 800px; }
.prose h3 { font-size: 1.1rem; margin: 28px 0 10px; color: var(--text); }
.prose p, .prose li { color: var(--muted); font-size: .93rem; }
.prose ul { padding-left: 20px; margin: 10px 0; }

@media (max-width: 980px) {
  .prod-layout { grid-template-columns: 1fr; }
  .req-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
}

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


/* ============================================================
   CAT DESTACADO (formato regulatorio) + AUTORIDADES
   ============================================================ */
.cat-box { display: grid; grid-template-columns: 214px 1fr; margin-top: 22px;
  border: 1px solid var(--stroke); border-radius: var(--radius-sm); overflow: hidden;
  background: rgba(255,255,255,.045); }
.cat-box-fig { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  padding: 28px 18px; background: rgba(255,255,255,.07); border-right: 1px solid var(--stroke); text-align: center; }
.cat-box-fig .lbl { font-size: .67rem; letter-spacing: .15em; text-transform: uppercase;
  color: var(--muted); font-weight: 600; }
.cat-box-fig .val { font-size: 3rem; line-height: 1; font-weight: 700; color: #fff; letter-spacing: -.025em; }
.cat-box-fig .val em { font-style: normal; font-size: 1.5rem; font-weight: 600; margin-left: 2px; color: var(--muted); }
.cat-box-fig .tax { font-size: .78rem; color: var(--muted); font-weight: 600; }
.cat-box-body { padding: 24px 28px; display: flex; flex-direction: column; gap: 9px; justify-content: center; }
.cat-box-body p { margin: 0; font-size: .87rem; line-height: 1.65; color: var(--text); }
.cat-box-body p.sub { color: var(--muted); font-size: .82rem; }
.tyc-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; align-self: flex-start;
  padding: 9px 17px; border-radius: 100px; border: 1px solid var(--stroke); background: var(--panel);
  color: var(--text); text-decoration: none; font-size: .82rem; font-weight: 600; transition: .25s var(--ease); }
.tyc-link:hover { border-color: var(--blue); color: #fff; background: rgba(22,166,222,.14); }
.tyc-link svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; flex: none; }
.cat-cell { font-weight: 700; color: var(--green); white-space: nowrap; }
.cat-cell small { display: block; font-weight: 500; color: var(--muted); font-size: .72rem; }
@media (max-width: 760px) {
  .cat-box { grid-template-columns: 1fr; }
  .cat-box-fig { border-right: none; border-bottom: 1px solid var(--stroke); padding: 22px; }
  .cat-box-body { padding: 20px 22px; }
}

/* --- tira permanente de autoridades (footer, todas las páginas) --- */
.auth-strip { margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--stroke-2); }
.auth-strip h5 { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted-2); font-weight: 600; margin: 0 0 15px; }
.auth-row { display: flex; flex-wrap: wrap; gap: 12px; }
/* escritorio: los 4 logos en una sola fila, repartidos a lo ancho */
@media (min-width: 1000px) {
  .auth-row { flex-wrap: nowrap; }
  .auth-item { flex: 1 1 0; min-width: 0; }
}
.auth-item { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 12px;
  background: var(--panel-2); border: 1px solid var(--stroke-2); text-decoration: none;
  transition: .25s var(--ease); }
.auth-item:hover { border-color: var(--blue); background: var(--panel); }
.auth-item .am { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 9px;
  background: var(--grad-soft); border: 1px solid var(--stroke); font-size: .58rem; font-weight: 700;
  color: var(--text); flex: none; overflow: hidden; }
.auth-item .am img { display: block; width: 100%; height: 100%; object-fit: contain; padding: 0; }
.auth-item .am.am-logo img { width: 136px; height: 52px; }
.auth-item b { display: block; font-size: .8rem; color: var(--text); font-weight: 600; }
.auth-item small { font-size: .68rem; color: var(--muted-2); }

/* --- fichas completas de autoridades (buro.html) --- */
.auth-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 18px; margin-top: 22px; }
.auth-card { padding: 30px; }
.auth-card .ah { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.auth-card .ah .am { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 12px;
  background: var(--grad-soft); border: 1px solid var(--stroke); font-size: .72rem; font-weight: 700;
  color: var(--text); flex: none; overflow: hidden; }
.auth-card .ah .am img { display: block; width: 100%; height: 100%; object-fit: contain; padding: 0; }
.auth-card .ah .am.am-logo img { width: 110px; height: 48px; }
.auth-card .ah b { display: block; font-size: 1rem; color: var(--text); }
.auth-card .ah span { font-size: .76rem; color: var(--muted-2); }
.auth-card p { font-size: .86rem; line-height: 1.7; color: var(--muted); margin: 0 0 12px; }
.auth-card p:last-of-type { margin-bottom: 0; }
.auth-quote { padding: 14px 18px; border-left: 2px solid var(--green); border-radius: 0 10px 10px 0;
  background: var(--panel-2); font-size: .85rem; line-height: 1.65; color: var(--text); margin-top: 4px; }
.auth-card .a-cta { display: inline-flex; align-items: center; gap: 7px; margin-top: 16px;
  font-size: .82rem; font-weight: 600; color: var(--blue); text-decoration: none; }
.auth-card .a-cta:hover { color: var(--green); }

/* --- chips con logo oficial (los logotipos vienen con fondo blanco) --- */
.auth-card .ah .am.am-logo,
.auth-item .am.am-logo,
.buro-badge .bicon.am-logo { background: #fff; border: 1px solid var(--stroke); padding: 0; }
.auth-card .ah .am.am-logo { width: 124px; height: 62px; border-radius: 10px; overflow: visible; padding: 7px; }
.auth-item .am.am-logo { width: 160px; height: 76px; border-radius: 10px; overflow: visible; padding: 12px; }
.buro-badge .bicon.am-logo { width: 58px; height: 58px; border-radius: 10px; flex: none; overflow: visible; padding: 5px; }
.buro-badge .bicon.am-logo img { display: block; width: 48px; height: 48px; object-fit: contain; padding: 0; }
/* logotipo de Banco de México (SVG apaisado) en las fichas grandes */
.auth-big .ab-logo img.ab-svg { width: 240px; max-width: 100%; height: auto; }
@media (max-width: 620px) { .auth-big .ab-logo img.ab-svg { width: 200px; } }
@media (max-width: 520px) {
  .auth-card .ah .am.am-logo { width: 96px; height: 50px; }
  .auth-card .ah .am.am-logo img { width: 82px; height: 36px; }
}

/* ============================================================
   Fichas grandes de autoridades — logotipo oficial destacado
   ============================================================ */
.auth-big { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 22px; margin-top: 30px; align-items: stretch; }
.auth-big .ab-card { position: relative; display: flex; flex-direction: column; padding: 0;
  overflow: hidden; transition: .3s var(--ease); }
.auth-big .ab-card:hover { transform: translateY(-6px); border-color: rgba(22,166,222,.5);
  box-shadow: var(--glow-blue); }
.auth-big .ab-logo { position: relative; background: #fff; display: grid; place-items: center;
  min-height: 260px; padding: 28px; border-bottom: 1px solid var(--stroke); }
.auth-big .ab-logo::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px;
  height: 3px; background: var(--grad); }
/* logotipos a tamaño completo (sin reducir): solo se limitan si el contenedor es más angosto */
.auth-big .ab-logo img { max-width: 100%; width: auto; height: auto; display: block; }
.auth-big .ab-word { font-size: 1.45rem; font-weight: 700; letter-spacing: .02em; color: #0A1017;
  text-align: center; line-height: 1.25; }
.auth-big .ab-word small { display: block; font-size: .68rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: #6B7C8C; margin-top: 8px; }
.auth-big .ab-body { display: flex; flex-direction: column; flex: 1; padding: 28px 30px 30px; }
.auth-big .ab-body h3 { font-size: 1.12rem; margin: 0 0 3px; color: var(--text); }
.auth-big .ab-body .ab-sub { font-size: .76rem; color: var(--muted-2); letter-spacing: .04em;
  text-transform: uppercase; font-weight: 600; margin-bottom: 15px; }
.auth-big .ab-body p { font-size: .88rem; line-height: 1.75; color: var(--muted); margin: 0 0 13px; }
.auth-big .ab-body .auth-quote { margin: 4px 0 0; }
.auth-big .ab-body .a-cta { display: inline-flex; align-items: center; gap: 7px; margin-top: auto;
  padding-top: 18px; font-size: .84rem; font-weight: 600; color: var(--blue); text-decoration: none; }
.auth-big .ab-body .a-cta:hover { color: var(--green); }
.auth-big .ab-body .a-cta svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; }
@media (max-width: 620px) {
  .auth-big { grid-template-columns: 1fr; gap: 18px; }
  .auth-big .ab-logo { min-height: 210px; padding: 22px; }
  .auth-big .ab-word { font-size: 1.2rem; }
  .auth-big .ab-body { padding: 24px 22px 26px; }
}
