/* ============================================================================
   luispardo.co · Sistema de diseño — concepto "Contador × Ingeniero"
   Naranja = contaduría (rigor) · Cian = ingeniería (automatización) · convergen.
   Tipografía Montserrat/Inter + JetBrains Mono para el motivo de código.
   Íconos: SVG en línea (sin FontAwesome).
   ============================================================================ */
:root {
  /* Base */
  --navy:     #0b1540;
  --navy2:    #142561;
  --navy3:    #1d3489;
  --ink:      #070d24;
  --ink2:     #0a1230;

  /* Acento contaduría (naranja) */
  --orange:   #f57c00;
  --orange2:  #e35d00;
  --amber:    #ffb648;

  /* Acento ingeniería (cian) */
  --cyan:     #22d3ee;
  --cyan2:    #0891b2;
  --sky:      #38bdf8;

  /* Neutros */
  --white:    #ffffff;
  --paper:    #f5f8fd;
  --paper2:   #eaf0fa;
  --line:     #e3e9f4;
  --line2:    #d3dcee;
  --text:     #26304a;
  --muted:    #5c6785;
  --faint:    #8b93ac;

  --green:    #1a8a48;
  --blue:     #2563eb;
  --violet:   #7c3aed;
  --red:      #dc2626;

  --f-head: 'Montserrat', 'Segoe UI', system-ui, sans-serif;
  --f-body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --f-mono: 'JetBrains Mono', 'Consolas', ui-monospace, monospace;

  --maxw: 1180px;
  --radius: 18px;
  --radius-sm: 10px;
  --trans: .35s cubic-bezier(.4, 0, .2, 1);

  --sh-1: 0 1px 2px rgba(11, 21, 64, .05), 0 6px 20px rgba(11, 21, 64, .07);
  --sh-2: 0 10px 34px rgba(11, 21, 64, .12);
  --sh-3: 0 24px 56px rgba(11, 21, 64, .20);
  --sh-orange: 0 10px 26px rgba(245, 124, 0, .32);
  --sh-cyan: 0 10px 26px rgba(34, 211, 238, .30);

  --grad-fusion: linear-gradient(100deg, var(--orange), var(--amber) 45%, var(--cyan) 100%);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; -webkit-text-size-adjust: 100%; }
body { font-family: var(--f-body); color: var(--text); background: var(--white); line-height: 1.65; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--f-head); line-height: 1.14; color: var(--navy); }
.o { color: var(--orange); }
.c { color: var(--cyan2); }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 1.6rem; }
::selection { background: var(--orange); color: #fff; }
.grad-text { background: var(--grad-fusion); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ============================ NAV ============================ */
.nav { position: sticky; top: 0; z-index: 60; background: rgba(7, 13, 36, .82); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid rgba(255, 255, 255, .08); transition: background var(--trans), box-shadow var(--trans); }
.nav.scrolled { background: rgba(7, 13, 36, .97); box-shadow: 0 6px 24px rgba(0, 0, 0, .3); }
.nav-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 1.6rem; height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.nav-brand { display: flex; align-items: center; gap: .7rem; }
.nav-logo { width: 40px; height: 40px; border-radius: 11px; overflow: hidden; display: flex; align-items: center; justify-content: center; box-shadow: var(--sh-orange); flex: none; }
.nav-logo img { width: 100%; height: 100%; display: block; }
.nav-name { color: #fff; font-family: var(--f-head); font-weight: 700; font-size: .98rem; line-height: 1.1; }
.nav-name small { display: block; color: var(--amber); font-size: .62rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: .1rem; }
.nav-links a { color: rgba(255, 255, 255, .82); padding: .5rem .75rem; border-radius: 8px; font-size: .86rem; font-weight: 500; transition: var(--trans); }
.nav-links a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.nav-cta { background: var(--orange) !important; color: #fff !important; font-weight: 600 !important; box-shadow: var(--sh-orange); }
.nav-cta:hover { background: var(--orange2) !important; }
.lang-btn { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); color: #fff; font-family: var(--f-head); font-weight: 700; font-size: .72rem; letter-spacing: .05em; padding: .4rem .6rem; border-radius: 8px; cursor: pointer; transition: var(--trans); }
.lang-btn:hover { background: rgba(255, 255, 255, .2); }
.nav-toggle { display: none; background: none; border: none; color: #fff; cursor: pointer; padding: .3rem; }
.nav-toggle svg { width: 26px; height: 26px; }

/* ============================ HERO ============================ */
.hero { position: relative; background: var(--ink); padding: 5.5rem 0 8rem; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg::before { content: ""; position: absolute; inset: 0; background:
  radial-gradient(55% 55% at 85% 6%, rgba(34, 211, 238, .26), transparent 60%),
  radial-gradient(55% 55% at 10% 18%, rgba(245, 124, 0, .26), transparent 62%),
  radial-gradient(70% 60% at 55% 115%, rgba(124, 58, 237, .18), transparent 60%),
  linear-gradient(160deg, #060b20, #0b1540 55%, #0d1b52); }
.hero-grid-lines { position: absolute; inset: 0; background-image:
  linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
  linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 46px 46px; mask-image: radial-gradient(circle at 50% 35%, #000 0%, transparent 78%); -webkit-mask-image: radial-gradient(circle at 50% 35%, #000 0%, transparent 78%); }
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: .55rem; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .16); color: #fff; font-family: var(--f-head); font-size: .72rem; font-weight: 600; letter-spacing: .04em; padding: .42rem .9rem; border-radius: 40px; }
.hero-eyebrow b { color: var(--amber); } .hero-eyebrow .x { color: var(--cyan); font-weight: 800; }
.hero-title { font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 800; color: #fff; letter-spacing: -.025em; margin: 1.2rem 0 .5rem; }
.hero-title .grad-text { background: var(--grad-fusion); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-desc { color: rgba(230, 236, 255, .82); max-width: 545px; font-size: 1.07rem; margin: 1.1rem 0 1.8rem; }
.hero-desc b { color: #fff; font-weight: 600; }
.hero-cta { display: flex; gap: .9rem; flex-wrap: wrap; }
.hero-metrics { display: flex; gap: 2.4rem; margin-top: 2.6rem; flex-wrap: wrap; }
.hero-metric b { display: block; font-family: var(--f-head); font-size: 1.85rem; font-weight: 800; color: #fff; line-height: 1; }
.hero-metric b .o { color: var(--amber); } .hero-metric b .c { color: var(--cyan); }
.hero-metric span { font-size: .76rem; color: rgba(230, 236, 255, .6); margin-top: .3rem; display: block; }

/* Terminal / ventana de código del hero (el motivo "ingeniería") */
.hero-visual { position: relative; }
.code-window { background: linear-gradient(180deg, #0e1636, #0b1230); border: 1px solid rgba(255, 255, 255, .12); border-radius: 16px; box-shadow: var(--sh-3); overflow: hidden; }
.code-bar { display: flex; align-items: center; gap: .5rem; padding: .7rem .9rem; background: rgba(255, 255, 255, .04); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.code-dot { width: 11px; height: 11px; border-radius: 50%; }
.code-dot.r { background: #ff5f57; } .code-dot.y { background: #febc2e; } .code-dot.g { background: #28c840; }
.code-file { margin-left: .5rem; font-family: var(--f-mono); font-size: .72rem; color: rgba(255, 255, 255, .5); }
.code-body { padding: 1.1rem 1.2rem; font-family: var(--f-mono); font-size: .82rem; line-height: 1.85; color: #cdd6f4; min-height: 232px; }
.code-body .ln { display: block; white-space: pre-wrap; }
.tk-key { color: #f38ba8; } .tk-fn { color: var(--cyan); } .tk-str { color: #a6e3a1; } .tk-num { color: var(--amber); } .tk-com { color: #6c7394; } .tk-var { color: #89b4fa; }
.code-caret { display: inline-block; width: 8px; height: 1.05em; background: var(--cyan); vertical-align: -2px; animation: blink 1.05s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.code-badge { position: absolute; bottom: -18px; right: 18px; background: #fff; border-radius: 12px; box-shadow: var(--sh-2); padding: .6rem 1rem; display: flex; align-items: center; gap: .6rem; }
.code-badge svg { width: 22px; height: 22px; color: var(--green); }
.code-badge b { font-family: var(--f-head); font-size: .82rem; color: var(--navy); }

.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 1; line-height: 0; }
.hero-wave svg { width: 100%; height: 70px; display: block; }

/* ============================ BOTONES ============================ */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .82rem 1.6rem; border-radius: 11px; font-family: var(--f-head); font-weight: 600; font-size: .92rem; cursor: pointer; border: none; transition: var(--trans); }
.btn svg { width: 18px; height: 18px; }
.btn-orange { background: var(--orange); color: #fff; box-shadow: var(--sh-orange); }
.btn-orange:hover { background: var(--orange2); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(245, 124, 0, .4); }
.btn-cyan { background: var(--cyan2); color: #fff; box-shadow: var(--sh-cyan); }
.btn-cyan:hover { background: #067a95; transform: translateY(-2px); }
.btn-ghost { background: rgba(255, 255, 255, .08); color: #fff; border: 1px solid rgba(255, 255, 255, .28); }
.btn-ghost:hover { background: rgba(255, 255, 255, .16); transform: translateY(-2px); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy2); transform: translateY(-2px); box-shadow: var(--sh-2); }
.btn-outline { background: #fff; color: var(--navy); border: 1.5px solid var(--line2); }
.btn-outline:hover { border-color: var(--orange); color: var(--orange); transform: translateY(-2px); }

/* ============================ SECCIONES ============================ */
.section { padding: 5.5rem 0; background: var(--white); }
.section-alt { background: var(--paper); }
.section-navy { background: var(--ink); position: relative; overflow: hidden; }
.wave-sec { position: relative; }
#fusion { padding-top: 2rem; padding-bottom: .5rem; }
#fusion .sec-head { margin-bottom: 1.5rem; }
/* Tienda: señal "abajo hay más" entre la 1.ª hoja y la siguiente */
.herr-more { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: .15rem; padding: 2.2rem 0 4.6rem; color: var(--muted); font-family: var(--f-head); font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; }
.herr-more svg { width: 22px; height: 22px; color: var(--orange); animation: herrBob 1.6s ease-in-out infinite; }
@keyframes herrBob { 0%, 100% { transform: translateY(0); opacity: .75; } 50% { transform: translateY(7px); opacity: 1; } }
@media (max-width: 980px) { .herr-more { padding: 1.2rem 0 1.6rem; } }

/* Empresas: cuadrícula 2×2 */
#empresas .empresas-grid { grid-template-columns: repeat(2, 1fr); max-width: 880px; margin: 0 auto; }
@media (max-width: 700px) { #empresas .empresas-grid { grid-template-columns: 1fr; } }

/* Software: título "QMSPM Suite" en colores corporativos (naranja → azul) */
#software .grad-text { background: linear-gradient(100deg, #fe6b03, #ff9042 40%, #001a77 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* Software: las 6 suites completas en una sola hoja (tarjetas compactas) */
#software .sec-head { margin-bottom: 1.3rem; }
#software .suites-grid { gap: 1rem; }
#software .suite-top { padding: 1.1rem 1.2rem .7rem; }
#software .suite-icon { width: 46px; height: 46px; border-radius: 12px; font-size: 1.4rem; margin-bottom: .55rem; }
#software .suite-name { font-size: 1.02rem; margin-bottom: .3rem; }
#software .suite-desc { font-size: .8rem; line-height: 1.45; }
#software .suite-foot { padding: .65rem 1.2rem; }
#software .suite-cta { padding: .42rem 1rem; font-size: .76rem; }
#software .suite-badge { top: .7rem; right: .7rem; }

/* ===== Modelo de hojas: cada sección principal llena su pantalla ===== */
#sobre-mi, #servicios, #metodo, #software, #empresas, #powerbi, #contacto,
#trayectoria, #formacion, #herramientas { min-height: calc(100vh + 70px); display: flex; align-items: flex-start; padding-top: 3rem; padding-bottom: 2.5rem; }
#sobre-mi .container, #servicios .container, #metodo .container, #software .container,
#empresas .container, #powerbi .container, #contacto .container,
#trayectoria .container, #formacion .container, #herramientas .container { width: 100%; }
#trayectoria .sec-head { margin-bottom: 2rem; }
@media (max-width: 980px) {
  #sobre-mi, #servicios, #metodo, #software, #empresas, #powerbi, #contacto,
  #trayectoria, #formacion, #herramientas { min-height: 0; padding: 3.5rem 0; display: block; }
}
.section-navy.wave-sec { padding-top: 2.2rem; padding-bottom: 3rem; }
.section-navy.wave-sec .sec-head { margin-bottom: 1.1rem; }
.section-navy.wave-sec .stat { padding: 1.35rem 1.4rem; }
.wave-top { position: absolute; top: -1px; left: 0; right: 0; line-height: 0; z-index: 2; pointer-events: none; }
.wave-top svg { width: 100%; height: 32px; display: block; }
@media (max-width: 560px) { .section-navy.wave-sec { padding-top: 2.8rem; padding-bottom: 3rem; } .wave-top svg { height: 34px; } }
.sec-head { max-width: 720px; margin-bottom: 3rem; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-label { display: inline-flex; align-items: center; gap: .45rem; color: var(--orange); text-transform: uppercase; font-size: .74rem; font-weight: 700; letter-spacing: .16em; margin-bottom: .8rem; }
.sec-label::before { content: ""; width: 22px; height: 2px; background: var(--orange); }
.sec-label.cyan { color: #001a77; } .sec-label.cyan::before { background: #001a77; }
.sec-label.light { color: var(--amber); } .sec-label.light::before { background: var(--amber); }
.sec-head.center .sec-label { justify-content: center; }
.sec-title { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 800; letter-spacing: -.02em; }
.sec-title.light { color: #fff; }
.sec-sub { color: var(--muted); font-size: 1.06rem; margin-top: .9rem; }
.sec-sub.light { color: rgba(230, 236, 255, .78); }

/* ============================ MARQUEE CREDENCIALES ============================ */
.trust { background: var(--ink); border-top: 1px solid rgba(255, 255, 255, .07); border-bottom: 1px solid rgba(255, 255, 255, .07); padding: 1.3rem 0; overflow: hidden; }
.trust-track { display: flex; gap: 3rem; align-items: center; width: max-content; animation: marquee 36s linear infinite; }
.trust:hover .trust-track { animation-play-state: paused; }
.trust-item { display: flex; align-items: center; gap: .55rem; color: rgba(255, 255, 255, .62); font-family: var(--f-head); font-weight: 600; font-size: .9rem; white-space: nowrap; }
.trust-item svg { width: 18px; height: 18px; color: var(--amber); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================ LA FUSIÓN (diferencial) ============================ */
.fusion { background: var(--paper); }
.fusion-cols { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 1.2rem; align-items: stretch; margin-top: 1rem; }
.fusion-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem 1.6rem; position: relative; overflow: hidden; }
.fusion-card.acc { border-top: 4px solid var(--orange); }
.fusion-card.eng { border-top: 4px solid #001a77; }
.fusion-card.res { border-top: 4px solid transparent; background: linear-gradient(180deg, #0b1540, #142561); color: #fff; box-shadow: var(--sh-3); }
.fusion-card.res::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--grad-fusion); }
.fusion-ico { width: 54px; height: 54px; border-radius: 14px; display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.fusion-card.acc .fusion-ico { background: rgba(245, 124, 0, .12); color: var(--orange); }
.fusion-card.eng .fusion-ico { background: rgba(0, 26, 119, .1); color: #001a77; }
.fusion-card.res .fusion-ico { background: rgba(255, 255, 255, .12); color: var(--amber); }
.fusion-ico svg { width: 26px; height: 26px; }
.fusion-kicker { font-family: var(--f-head); font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; margin-bottom: .3rem; }
.fusion-card.acc .fusion-kicker { color: var(--orange); }
.fusion-card.eng .fusion-kicker { color: #001a77; }
.fusion-card.res .fusion-kicker { color: var(--amber); }
.fusion-card h3 { font-size: 1.2rem; margin-bottom: .7rem; }
.fusion-card.res h3 { color: #fff; }
.fusion-list { list-style: none; display: flex; flex-direction: column; gap: .55rem; }
.fusion-list li { display: flex; gap: .55rem; align-items: flex-start; font-size: .88rem; color: var(--muted); }
.fusion-card.res .fusion-list li { color: rgba(255, 255, 255, .85); }
.fusion-list svg { width: 17px; height: 17px; flex: none; margin-top: .2rem; }
.fusion-card.acc .fusion-list svg { color: var(--orange); }
.fusion-card.eng .fusion-list svg { color: #001a77; }
.fusion-card.res .fusion-list svg { color: var(--amber); }
.fusion-op { display: flex; align-items: center; justify-content: center; font-family: var(--f-head); font-size: 2rem; font-weight: 800; color: var(--faint); }
.fusion-op.eq { background: var(--grad-fusion); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* ============================ NÚMEROS / CONTADORES ============================ */
.section-navy .sec-glow { position: absolute; width: 480px; height: 480px; border-radius: 50%; background: radial-gradient(circle, rgba(245, 124, 0, .2), transparent 70%); top: -140px; right: -120px; z-index: 0; }
.section-navy .sec-glow.cyan { background: radial-gradient(circle, rgba(34, 211, 238, .18), transparent 70%); left: -140px; right: auto; top: auto; bottom: -160px; }
.stats-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.stat { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--radius); padding: 1.8rem 1.4rem; text-align: center; transition: var(--trans); }
.stat:hover { background: rgba(255, 255, 255, .09); transform: translateY(-4px); }
.stat-num { font-family: var(--f-head); font-size: 2.3rem; font-weight: 800; line-height: 1; }
.stat-num.o { color: var(--amber); } .stat-num.c { color: var(--cyan); }
.stat-suf { font-size: 1.3rem; }
.stat-label { font-size: .82rem; color: rgba(230, 236, 255, .68); margin-top: .6rem; }

/* ============================ SOBRE MÍ ============================ */
.about-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 3.2rem; align-items: center; }
.about-visual { position: relative; }
.about-portrait { aspect-ratio: 4 / 5; border-radius: 24px; background: radial-gradient(120% 90% at 30% 0%, var(--navy3), var(--navy) 60%, var(--ink)); display: flex; align-items: center; justify-content: center; box-shadow: var(--sh-3); overflow: hidden; position: relative; }
.about-portrait::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 34px 34px; opacity: .5; }
.about-monogram { font-family: var(--f-head); font-weight: 800; font-size: 5.5rem; color: #fff; letter-spacing: -.04em; z-index: 1; position: relative; }
.about-portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 2; }
.about-tags { display: flex; gap: .6rem; white-space: nowrap; justify-content: center; margin-top: 1rem; }
.about-tag { background: #fff; border-radius: 30px; box-shadow: var(--sh-2); padding: .55rem 1rem; font-family: var(--f-head); font-size: .78rem; font-weight: 700; display: flex; align-items: center; gap: .4rem; }
.about-tag.acc { color: var(--orange); } .about-tag.eng { color: var(--cyan2); }
.about-tag svg { width: 16px; height: 16px; }
.about-text p { color: var(--muted); margin-bottom: 1.1rem; }
.about-text p strong { color: var(--navy); }
.about-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 1.6rem; }
.about-fact { display: flex; gap: .8rem; align-items: flex-start; background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: .95rem 1.1rem; }
.about-fact .ico { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex: none; }
.about-fact.acc .ico { background: rgba(245, 124, 0, .12); color: var(--orange); }
.about-fact.eng .ico { background: rgba(34, 211, 238, .14); color: var(--cyan2); }
.about-fact .ico svg { width: 20px; height: 20px; }
.about-fact b { display: block; color: var(--navy); font-family: var(--f-head); font-size: .92rem; }
.about-fact span { font-size: .8rem; color: var(--muted); }

/* ============================ CARRUSEL ============================ */
.carousel { position: relative; background: var(--ink); }
.carousel-viewport { overflow: hidden; }
.carousel-track { display: flex; transition: transform .6s cubic-bezier(.4, 0, .2, 1); }
.carousel-slide { min-width: 100%; padding: 4rem 1.6rem; color: #fff; }
.carousel-inner { max-width: var(--maxw); margin: 0 auto; }
.carousel-eyebrow { display: inline-block; background: rgba(255, 255, 255, .16); color: #fff; text-transform: uppercase; font-size: .68rem; font-weight: 700; letter-spacing: .14em; padding: .3rem .9rem; border-radius: 30px; }
.carousel-title { font-family: var(--f-head); font-size: clamp(1.7rem, 3.6vw, 2.4rem); font-weight: 800; margin: 1rem 0 .6rem; max-width: 760px; }
.carousel-text { font-size: 1.06rem; color: rgba(255, 255, 255, .9); max-width: 640px; margin-bottom: 1.5rem; }
.carousel-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .1); color: #fff; font-size: 1.5rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: var(--trans); z-index: 2; backdrop-filter: blur(6px); }
.carousel-arrow:hover { background: var(--orange); border-color: var(--orange); transform: translateY(-50%) scale(1.06); }
.carousel-arrow.prev { left: 1.2rem; } .carousel-arrow.next { right: 1.2rem; }
.carousel-dots { position: absolute; bottom: 1.2rem; left: 0; right: 0; display: flex; justify-content: center; gap: .5rem; z-index: 2; }
.carousel-dot { width: 9px; height: 9px; border-radius: 50%; border: none; background: rgba(255, 255, 255, .4); cursor: pointer; padding: 0; transition: var(--trans); }
.carousel-dot.active { background: var(--orange); width: 28px; border-radius: 5px; }
@media (max-width: 600px) { .carousel-arrow { display: none; } }

/* ============================ 3 LÍNEAS ============================ */
.lineas-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 1.6rem; }
.linea-card { position: relative; background: #fff; border-radius: var(--radius); padding: 2rem 1.8rem; box-shadow: var(--sh-1); border: 1px solid var(--line); overflow: hidden; transition: var(--trans); }
.linea-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--grad-fusion); transform: scaleX(0); transform-origin: left; transition: transform var(--trans); }
.linea-card:hover { transform: translateY(-6px); box-shadow: var(--sh-3); border-color: transparent; }
.linea-card:hover::before { transform: scaleX(1); }
.linea-icon { width: 58px; height: 58px; border-radius: 15px; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; margin-bottom: 1.1rem; color: #fff; }
.linea-title { font-size: 1.2rem; font-weight: 700; margin-bottom: .6rem; }
.linea-desc { color: var(--muted); font-size: .92rem; margin-bottom: 1.1rem; }
.linea-cta { display: inline-flex; align-items: center; gap: .35rem; color: var(--orange); font-family: var(--f-head); font-weight: 700; font-size: .88rem; }
.linea-cta svg { width: 16px; height: 16px; transition: transform var(--trans); }
.linea-card:hover .linea-cta svg { transform: translateX(4px); }

/* ============================ MÉTODO ============================ */
.method-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; counter-reset: step; }
.method-step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem 1.5rem; transition: var(--trans); }
.method-step:hover { box-shadow: var(--sh-2); transform: translateY(-4px); border-color: transparent; }
.method-step::after { counter-increment: step; content: counter(step, decimal-leading-zero); position: absolute; top: 1.2rem; right: 1.3rem; font-family: var(--f-head); font-weight: 800; font-size: 1.7rem; color: var(--paper2); }
.method-ico { width: 50px; height: 50px; border-radius: 13px; background: var(--navy); color: var(--amber); display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.method-ico svg { width: 24px; height: 24px; }
.method-step h4 { font-size: 1.05rem; margin-bottom: .5rem; }
.method-step p { color: var(--muted); font-size: .87rem; }
.method-step .bar { position: absolute; bottom: 0; left: 0; height: 3px; width: 100%; background: var(--grad-fusion); border-radius: 0 0 var(--radius) var(--radius); transform: scaleX(0); transform-origin: left; transition: transform .4s; }
.method-step:hover .bar { transform: scaleX(1); }

/* ============================ SERVICIOS ============================ */
.serv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.2rem; }
.serv-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1.5rem; transition: var(--trans); }
.serv-card:hover { border-color: var(--orange); box-shadow: var(--sh-2); transform: translateY(-4px); }
.serv-card .ico { width: 46px; height: 46px; border-radius: 12px; background: var(--navy); color: var(--amber); display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.serv-card .ico svg { width: 22px; height: 22px; }
.serv-card h4 { font-size: 1.05rem; margin-bottom: .5rem; }
.serv-card p { color: var(--muted); font-size: .88rem; }

/* ======================= PROTECCIÓN DE DATOS (Ley 1581) ==================== */
.privacidad { background: var(--paper); border-top: 1px solid var(--line); }
.priv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.2rem; margin-top: .5rem; }
.priv-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1.4rem; transition: var(--trans); }
.priv-card:hover { border-color: #001a77; box-shadow: var(--sh-2); transform: translateY(-4px); }
.priv-ico { width: 44px; height: 44px; border-radius: 12px; background: #001a77; color: #fff; display: flex; align-items: center; justify-content: center; margin-bottom: .9rem; }
.priv-ico svg { width: 22px; height: 22px; }
.priv-card h4 { font-size: 1.02rem; margin-bottom: .45rem; color: #001a77; }
.priv-card p { color: var(--muted); font-size: .86rem; line-height: 1.55; }
.priv-cta { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; margin-top: 1.6rem; }
.priv-note { color: var(--muted); font-size: .82rem; max-width: 520px; }

/* ============================ PESTAÑAS + SUITES ============================ */
.tabs { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 2rem; }
.tab { background: #fff; border: 1.5px solid var(--line2); color: var(--navy); padding: .55rem 1.3rem; border-radius: 30px; font-family: var(--f-head); font-weight: 600; font-size: .86rem; cursor: pointer; transition: var(--trans); }
.tab:hover { border-color: #001a77; color: #001a77; }
.tab.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.suites-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(305px, 1fr)); gap: 1.6rem; }
.suite-card { position: relative; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--sh-1); display: flex; flex-direction: column; overflow: hidden; transition: var(--trans); }
.suite-card:hover { transform: translateY(-6px); box-shadow: var(--sh-3); border-color: transparent; }
.suite-top { padding: 1.8rem 1.6rem 1.2rem; flex: 1; text-align: center; }
.suite-icon { width: 62px; height: 62px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 1.9rem; margin: 0 auto 1rem; color: #fff; box-shadow: var(--sh-1); }
.suite-name { font-size: 1.18rem; font-weight: 700; margin-bottom: .5rem; }
.suite-desc { color: var(--muted); font-size: .86rem; line-height: 1.6; }
.suite-badge { position: absolute; top: 1rem; right: 1rem; font-size: .64rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: .24rem .66rem; border-radius: 20px; }
.b-activo { background: rgba(26, 138, 72, .12); color: var(--green); }
.b-beta { background: rgba(245, 124, 0, .15); color: var(--orange); }
.b-dev { background: rgba(37, 99, 235, .12); color: var(--blue); }
.b-proximamente { background: var(--paper2); color: var(--faint); }
.suite-foot { padding: 1.1rem 1.6rem; border-top: 1px solid var(--line); text-align: center; }
.suite-cta { display: inline-flex; align-items: center; gap: .4rem; background: var(--navy); color: #fff; padding: .58rem 1.3rem; border-radius: 9px; font-family: var(--f-head); font-size: .84rem; font-weight: 700; transition: var(--trans); }
.suite-cta:hover { background: #001a77; transform: translateY(-1px); }
.suite-cta svg { width: 15px; height: 15px; }

/* ============================ EMPRESAS ============================ */
.empresas-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.6rem; }
.empresa-card { background: #fff; border-radius: var(--radius); box-shadow: var(--sh-1); border: 1px solid var(--line); overflow: hidden; transition: var(--trans); display: flex; flex-direction: column; }
.empresa-card:hover { transform: translateY(-6px); box-shadow: var(--sh-3); }
.empresa-head { padding: 1.4rem 1.3rem; color: #fff; position: relative; overflow: hidden; text-align: center; }
.empresa-head::after { content: ""; position: absolute; right: -30px; top: -30px; width: 100px; height: 100px; border-radius: 50%; background: rgba(255, 255, 255, .1); }
.empresa-logo { width: 42px; height: 42px; border-radius: 11px; background: rgba(255, 255, 255, .18); display: flex; align-items: center; justify-content: center; font-family: var(--f-head); font-weight: 800; margin: 0 auto .7rem; overflow: hidden; }
.empresa-logo.has-img { width: auto; height: auto; max-width: 260px; background: #fff; padding: 10px 16px; border-radius: 10px; }
.empresa-logo.has-img img { display: block; width: auto; height: auto; max-width: 225px; max-height: 52px; object-fit: contain; }
.empresa-head b { font-family: var(--f-head); font-size: 1.05rem; font-weight: 700; position: relative; }
.empresa-body { padding: 1.3rem; flex: 1; display: flex; flex-direction: column; }
.empresa-rol { color: var(--orange); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .5rem; }
.empresa-desc { color: var(--muted); font-size: .88rem; margin-bottom: 1.1rem; flex: 1; }
.empresa-link { display: inline-flex; align-items: center; gap: .35rem; color: var(--navy); font-family: var(--f-head); font-weight: 700; font-size: .84rem; }
.empresa-link svg { width: 15px; height: 15px; }
.empresa-link.disabled { color: var(--faint); font-weight: 500; }

/* ============================ POWER BI ============================ */
.powerbi-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 3.2rem; align-items: center; }
.powerbi-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.pbi-item { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); border-radius: 14px; padding: 1.5rem 1.2rem; transition: var(--trans); }
.pbi-item:hover { background: rgba(255, 255, 255, .09); transform: translateY(-4px); }
.pbi-item .ico { width: 40px; height: 40px; border-radius: 10px; background: rgba(34, 211, 238, .16); color: var(--cyan); display: flex; align-items: center; justify-content: center; margin-bottom: .8rem; }
.pbi-item .ico svg { width: 20px; height: 20px; }
.pbi-num { font-family: var(--f-head); font-size: 1.5rem; font-weight: 800; color: #fff; }
.pbi-label { font-size: .82rem; color: rgba(230, 236, 255, .66); }

/* ============================ HERRAMIENTAS ============================ */
.herr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.6rem; }
.herr-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--sh-1); overflow: hidden; display: flex; flex-direction: column; transition: var(--trans); }
.herr-card:hover { transform: translateY(-5px); box-shadow: var(--sh-3); }
.herr-top { padding: 1.5rem 1.5rem 1rem; flex: 1; }
.herr-cat { display: inline-block; background: rgba(0, 26, 119, .08); color: #001a77; font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: .22rem .6rem; border-radius: 20px; margin-bottom: .8rem; }
.herr-card h4 { font-size: 1.05rem; margin-bottom: .5rem; }
.herr-card p { color: var(--muted); font-size: .86rem; }
.herr-foot { padding: 1.1rem 1.5rem; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.herr-price { font-family: var(--f-head); font-weight: 800; color: var(--navy); font-size: 1.15rem; }
.herr-price.free { color: var(--green); }
.herr-free-badge { display: inline-block; background: rgba(26, 138, 72, .12); color: var(--green); font-size: .62rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; padding: .2rem .55rem; border-radius: 20px; margin-left: .5rem; vertical-align: middle; }
.herr-soon-badge { display: inline-block; background: rgba(245, 124, 0, .14); color: var(--orange2); font-size: .62rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; padding: .2rem .55rem; border-radius: 20px; margin-left: .5rem; vertical-align: middle; }
.herr-card.is-soon { opacity: .82; }
.herr-card .btn-navy svg { width: 15px; height: 15px; }
.empty-soft { grid-column: 1 / -1; text-align: center; color: var(--faint); padding: 3rem; border: 1.5px dashed var(--line2); border-radius: var(--radius); background: #fff; }

/* ============================ LÍNEA ÉTICA ============================ */
.den-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 2.6rem; align-items: start; }
.den-aside .den-shield { width: 66px; height: 66px; border-radius: 18px; background: linear-gradient(135deg, var(--navy), var(--navy3)); color: var(--amber); display: flex; align-items: center; justify-content: center; margin-bottom: 1.2rem; }
.den-aside .den-shield svg { width: 32px; height: 32px; }
.den-aside h3 { font-size: 1.4rem; margin-bottom: .8rem; }
.den-aside p { color: var(--muted); font-size: .92rem; margin-bottom: 1rem; }
.den-points { list-style: none; }
.den-points li { display: flex; gap: .6rem; align-items: flex-start; color: var(--muted); font-size: .88rem; margin-bottom: .7rem; }
.den-points li svg { width: 18px; height: 18px; color: var(--green); flex: none; margin-top: .15rem; }
.den-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--sh-1); padding: 1.8rem; display: flex; flex-direction: column; gap: 1rem; }
.den-tabs { display: flex; gap: 0; border-bottom: 2px solid var(--line2); margin-bottom: 1.5rem; }
.den-tab { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem; padding: .8rem 1rem; border: none; border-bottom: 3px solid transparent; background: none; color: var(--muted); cursor: pointer; transition: var(--trans); font-family: var(--f-head); font-weight: 500; }
.den-tab:hover { color: var(--navy); }
.den-tab.active { color: var(--navy); border-bottom-color: var(--orange); }
.den-tab b { color: inherit; font-size: .85rem; display: block; }
.den-tab small { color: inherit; font-size: .7rem; opacity: .7; display: block; }
input, textarea, select { font-family: var(--f-body); }
.den-card input[type="text"], .den-card input[type="email"], .den-card textarea { background: var(--paper); border: 1.5px solid var(--line2); border-radius: 10px; padding: .78rem .95rem; font-size: .9rem; width: 100%; transition: var(--trans); }
.den-card input:focus, .den-card textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(245, 124, 0, .14); }
.den-card textarea { resize: vertical; }
.den-anon { display: flex; align-items: center; gap: .5rem; color: var(--muted); font-size: .86rem; }
.den-anon input { accent-color: var(--orange); }
.den-ident { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .8rem; }

/* ============================ CONTACTO / CIERRE ============================ */
.cierre { background: var(--ink); position: relative; overflow: hidden; }
.cierre .sec-glow { position: absolute; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(34, 211, 238, .22), transparent 70%); bottom: -200px; left: -120px; }
.cierre-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr .95fr; gap: 3.2rem; align-items: center; }
.cierre-title { font-size: clamp(1.8rem, 3.6vw, 2.4rem); font-weight: 800; color: #fff; margin-bottom: .8rem; }
.cierre-contacts { margin-top: 1.8rem; display: flex; flex-direction: column; gap: 1rem; }
.cierre-contact { display: flex; align-items: center; gap: .9rem; color: #fff; }
.cierre-contact .ico { width: 44px; height: 44px; border-radius: 12px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); display: flex; align-items: center; justify-content: center; color: var(--amber); flex: none; }
.cierre-contact .ico svg { width: 20px; height: 20px; }
.cierre-contact b { font-family: var(--f-head); font-size: .95rem; }
.cierre-contact span { display: block; font-size: .8rem; color: rgba(230, 236, 255, .62); }
.contact-card { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .13); border-radius: var(--radius); padding: 1.8rem; display: flex; flex-direction: column; gap: .9rem; backdrop-filter: blur(6px); }
.contact-card input, .contact-card textarea { background: rgba(255, 255, 255, .95); border: 1.5px solid transparent; border-radius: 10px; padding: .8rem .95rem; font-size: .9rem; transition: var(--trans); }
.contact-card input:focus, .contact-card textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(245, 124, 0, .25); }
.contact-card textarea { resize: vertical; }
.contact-msg { font-size: .86rem; min-height: 1.2em; color: #7ff0a6; }
.cierre-map { position: relative; z-index: 1; margin-top: 2.2rem; border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(255, 255, 255, .14); box-shadow: var(--sh-2); line-height: 0; }
.cierre-map iframe { width: 100%; height: 360px; border: 0; display: block; filter: grayscale(.15); }
@media (max-width: 560px) { .cierre-map iframe { height: 280px; } }

/* ============================ FOOTER ============================ */
.footer { background: #050a1e; color: rgba(255, 255, 255, .6); padding: 3.2rem 0 1.6rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.4rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.footer-brand { display: flex; align-items: center; gap: .7rem; margin-bottom: 1rem; }
.footer-brand .nav-logo { width: 40px; height: 40px; }
.footer-brand b { color: #fff; font-family: var(--f-head); font-size: 1.05rem; }
.footer p { font-size: .88rem; max-width: 340px; }
.footer h5 { color: #fff; font-family: var(--f-head); font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1rem; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: .55rem; }
.footer-links a { font-size: .88rem; transition: var(--trans); }
.footer-links a:hover { color: var(--orange); }
.footer-social { display: flex; gap: .7rem; margin-top: 1.1rem; }
.footer-social a { width: 38px; height: 38px; border-radius: 10px; background: rgba(255, 255, 255, .07); display: flex; align-items: center; justify-content: center; color: #fff; transition: var(--trans); }
.footer-social a:hover { background: var(--orange); transform: translateY(-2px); }
.footer-social svg { width: 18px; height: 18px; }
.footer-bottom { padding-top: 1.4rem; text-align: center; font-size: .78rem; color: rgba(255, 255, 255, .4); }

/* ============================ MODAL COMPRA ============================ */
.modal-bg { position: fixed; inset: 0; background: rgba(7, 13, 36, .62); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; z-index: 120; padding: 1rem; animation: fade .2s ease; }
.modal-bg[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } }
.modal-box { background: #fff; border-radius: var(--radius); padding: 2rem; max-width: 440px; width: 100%; position: relative; box-shadow: var(--sh-3); animation: pop .25s cubic-bezier(.2, .8, .2, 1); }
@keyframes pop { from { transform: scale(.94) translateY(10px); opacity: 0; } }
.modal-x { position: absolute; top: .9rem; right: 1rem; background: none; border: none; font-size: 1.7rem; color: var(--faint); cursor: pointer; line-height: 1; }
.modal-box h3 { margin-bottom: .3rem; }
.buy-price { color: var(--orange); font-family: var(--f-head); font-weight: 800; font-size: 1.5rem; margin-bottom: 1.2rem; }
#buy-form { display: flex; flex-direction: column; gap: .8rem; }
#buy-form input { background: var(--paper); border: 1.5px solid var(--line2); border-radius: 10px; padding: .78rem .95rem; font-size: .9rem; }
#buy-form input:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(245, 124, 0, .14); }
#dl-form { display: flex; flex-direction: column; gap: .8rem; }
#dl-form input, #dl-form textarea { background: var(--paper); border: 1.5px solid var(--line2); border-radius: 10px; padding: .78rem .95rem; font-size: .9rem; resize: vertical; }
#dl-form input:focus, #dl-form textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(245, 124, 0, .14); }
#dl-form .btn-navy svg { width: 16px; height: 16px; }
.dl-tool { font-family: var(--f-head); font-weight: 700; color: var(--orange); margin-bottom: .4rem; }
.dl-hint { font-size: .82rem; color: var(--muted); margin-bottom: 1.1rem; }
.buy-note { font-size: .74rem; color: var(--faint); margin-top: 1rem; text-align: center; display: flex; align-items: center; justify-content: center; gap: .4rem; }
.buy-note svg { width: 14px; height: 14px; }

/* ============================ BACK TO TOP ============================ */
.to-top { position: fixed; right: 1.4rem; bottom: 1.4rem; width: 48px; height: 48px; border-radius: 50%; background: var(--orange); color: #fff; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: var(--sh-orange); opacity: 0; visibility: hidden; transform: translateY(12px); transition: var(--trans); z-index: 90; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top svg { width: 22px; height: 22px; }

/* ============================ TRAYECTORIA (timeline) ============================ */
.timeline { position: relative; max-width: 860px; margin: 0 auto; padding-left: 2rem; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(180deg, var(--orange), var(--amber) 45%, var(--cyan)); border-radius: 2px; }
.tl-item { position: relative; padding: 0 0 1.6rem 1.6rem; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before { content: ""; position: absolute; left: -1.6rem; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--orange); box-shadow: 0 0 0 4px var(--paper); transform: translateX(-6px); }
.tl-item.eng::before { border-color: #001a77; }
.tl-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1.2rem 1.4rem; box-shadow: var(--sh-1); transition: var(--trans); }
.tl-card:hover { box-shadow: var(--sh-2); transform: translateY(-2px); border-color: transparent; }
.tl-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.tl-emp { font-family: var(--f-head); font-weight: 800; color: var(--navy); font-size: 1.02rem; }
.tl-date { font-family: var(--f-mono); font-size: .74rem; color: var(--muted); white-space: nowrap; }
.tl-date .now { color: var(--green); font-weight: 700; }
.tl-rol { color: var(--orange); font-weight: 700; font-size: .82rem; margin: .15rem 0 .5rem; }
.tl-item.eng .tl-rol { color: #001a77; }
.tl-desc { color: var(--muted); font-size: .88rem; }
.exp-more { max-width: 860px; margin: 2.2rem auto 0; }
.exp-more-label { font-family: var(--f-head); font-weight: 700; font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; color: var(--faint); margin-bottom: .9rem; }
.exp-chips { display: flex; flex-wrap: wrap; gap: .7rem; }
.exp-chip { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: .6rem .9rem; font-size: .82rem; color: var(--text); box-shadow: var(--sh-1); }
.exp-chip b { display: block; font-family: var(--f-head); color: var(--navy); font-size: .84rem; }
.exp-chip span { color: var(--muted); font-family: var(--f-mono); font-size: .72rem; }

/* ============================ FORMACIÓN ============================ */
.edu-block { margin-bottom: 2.6rem; }
.edu-block:last-child { margin-bottom: 0; }
.edu-h { font-size: 1.15rem; color: var(--navy); margin-bottom: 1.2rem; padding-bottom: .5rem; border-bottom: 2px solid var(--line2); }
.edu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.edu-card { background: #fff; border: 1px solid var(--line); border-left: 3px solid #001a77; border-radius: 12px; padding: 1.1rem 1.3rem; transition: var(--trans); }
.edu-card:hover { box-shadow: var(--sh-2); transform: translateY(-3px); }
.edu-card.acc { border-left-color: var(--orange); }
.edu-titulo { font-family: var(--f-head); font-weight: 700; color: var(--navy); font-size: .96rem; margin-bottom: .3rem; }
.edu-inst { color: var(--muted); font-size: .84rem; }
.edu-year { display: inline-block; margin-top: .5rem; font-family: var(--f-mono); font-size: .72rem; color: #001a77; background: rgba(0, 26, 119, .08); padding: .12rem .55rem; border-radius: 20px; }
.edu-card.acc .edu-year { color: var(--orange); background: rgba(245, 124, 0, .1); }
.cert-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.2rem; }
.cert-card { display: flex; gap: 1rem; align-items: center; background: linear-gradient(135deg, var(--navy), var(--navy3)); color: #fff; border-radius: 14px; padding: 1.3rem 1.5rem; box-shadow: var(--sh-2); }
.cert-ico { width: 46px; height: 46px; border-radius: 12px; background: rgba(255, 255, 255, .12); color: var(--amber); display: flex; align-items: center; justify-content: center; flex: none; }
.cert-ico svg { width: 24px; height: 24px; }
.cert-card b { font-family: var(--f-head); font-size: .98rem; display: block; }
.cert-card span { font-size: .82rem; color: rgba(230, 236, 255, .75); }
.comp-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.4rem; }
.comp-group h4 { font-family: var(--f-head); font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--orange); margin-bottom: .8rem; display: flex; align-items: center; gap: .5rem; }
.comp-group h4::before { content: ""; width: 16px; height: 2px; background: var(--orange); }
.comp-tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.comp-tag { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: .4rem .75rem; font-size: .78rem; color: var(--text); }
.skills-row { display: flex; flex-wrap: wrap; gap: 1.6rem; }
.skills-col { flex: 1; min-width: 240px; }
.skills-col h4 { font-family: var(--f-head); font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: #001a77; margin-bottom: .8rem; }
.skills-tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.skill-tag { display: inline-flex; align-items: center; gap: .4rem; background: #fff; border: 1px solid var(--line2); border-radius: 30px; padding: .4rem .9rem; font-size: .8rem; font-family: var(--f-head); font-weight: 600; color: var(--navy); }
.skill-tag small { color: var(--muted); font-weight: 500; }

/* ============================ CARRITO ============================ */
.cart-btn { position: relative; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); color: #fff; width: 38px; height: 34px; border-radius: 8px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: var(--trans); }
.cart-btn:hover { background: rgba(255, 255, 255, .2); }
.cart-btn svg { width: 19px; height: 19px; }
.cart-count { position: absolute; top: -7px; right: -7px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 20px; background: var(--orange); color: #fff; font-family: var(--f-head); font-weight: 800; font-size: .66rem; display: flex; align-items: center; justify-content: center; box-shadow: var(--sh-orange); }
.cart-count[hidden] { display: none; }

.cart-overlay { position: fixed; inset: 0; background: rgba(7, 13, 36, .55); backdrop-filter: blur(3px); z-index: 130; opacity: 0; visibility: hidden; transition: opacity var(--trans), visibility var(--trans); }
.cart-overlay.open { opacity: 1; visibility: visible; }
.cart-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 400px; max-width: 92vw; background: #fff; z-index: 131; box-shadow: -10px 0 40px rgba(11, 21, 64, .25); display: flex; flex-direction: column; transform: translateX(100%); transition: transform var(--trans); }
.cart-drawer.open { transform: none; }
.cart-head { display: flex; align-items: center; justify-content: space-between; padding: 1.3rem 1.5rem; border-bottom: 1px solid var(--line); }
.cart-head h3 { font-size: 1.2rem; }
.cart-x { background: none; border: none; font-size: 1.8rem; line-height: 1; color: var(--faint); cursor: pointer; }
.cart-items { flex: 1; overflow-y: auto; padding: 1rem 1.5rem; }
.cart-empty-msg { text-align: center; color: var(--faint); padding: 2.5rem 1rem; }
.cart-item { display: flex; gap: .9rem; align-items: flex-start; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-family: var(--f-head); font-weight: 700; color: var(--navy); font-size: .9rem; }
.cart-item-price { color: var(--muted); font-size: .82rem; margin-top: .15rem; }
.cart-item-ctrl { display: flex; align-items: center; gap: .5rem; margin-top: .5rem; }
.cart-qty { display: inline-flex; align-items: center; border: 1px solid var(--line2); border-radius: 8px; overflow: hidden; }
.cart-qty button { width: 26px; height: 26px; border: none; background: var(--paper); color: var(--navy); font-size: 1rem; font-weight: 700; cursor: pointer; }
.cart-qty button:hover { background: var(--paper2); }
.cart-qty span { min-width: 28px; text-align: center; font-size: .85rem; font-weight: 600; }
.cart-item-del { background: none; border: none; color: var(--red); font-size: .74rem; cursor: pointer; font-weight: 600; }
.cart-item-total { font-family: var(--f-head); font-weight: 800; color: var(--navy); font-size: .92rem; white-space: nowrap; }
.cart-foot { border-top: 1px solid var(--line); padding: 1.2rem 1.5rem 1.4rem; background: var(--paper); }
.cart-total-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 1rem; }
.cart-total-row span { color: var(--muted); font-weight: 600; }
.cart-total-row b { font-family: var(--f-head); font-size: 1.5rem; font-weight: 800; color: var(--orange); }
.cart-hint { font-size: .78rem; color: var(--muted); margin-bottom: .7rem; }
#cart-form { display: flex; flex-direction: column; gap: .7rem; }
#cart-form input { background: #fff; border: 1.5px solid var(--line2); border-radius: 10px; padding: .72rem .9rem; font-size: .88rem; }
#cart-form input:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(245, 124, 0, .14); }
.cart-clear { background: none; border: none; color: var(--muted); font-size: .8rem; cursor: pointer; text-decoration: underline; padding: .2rem; }
.cart-foot.empty { display: none; }

.toast { position: fixed; bottom: 1.6rem; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--navy); color: #fff; padding: .75rem 1.3rem; border-radius: 40px; font-family: var(--f-head); font-weight: 600; font-size: .86rem; box-shadow: var(--sh-3); z-index: 140; opacity: 0; transition: opacity .3s, transform .3s; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast[hidden] { display: block; }

/* ============================ RESPONSIVE ============================ */
@media (max-width: 1024px) {
  .fusion-cols { grid-template-columns: 1fr; }
  .fusion-op { padding: .2rem 0; transform: rotate(90deg); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .method-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 980px) {
  .hero-inner, .about-grid, .powerbi-grid, .cierre-grid, .den-wrap { grid-template-columns: 1fr; }
  .hero-visual { max-width: 460px; }
  .about-visual { max-width: 360px; margin: 0 auto 2.4rem; }
  .powerbi-stats { max-width: 460px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; background: #070d24; flex-direction: column; align-items: stretch; padding: 1rem; gap: .3rem; border-top: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 18px 34px rgba(0, 0, 0, .45); max-height: calc(100vh - 64px); overflow-y: auto; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .75rem 1rem; }
  .nav-toggle { display: block; }
  .hero-metrics { gap: 1.6rem; }
}
@media (max-width: 560px) {
  .section { padding: 3.8rem 0; }
  .stats-grid, .method-grid, .about-facts, .footer-grid { grid-template-columns: 1fr; }
  .den-tab { flex-direction: row; justify-content: flex-start; gap: .5rem; }
  .hero { padding: 4rem 0 6rem; }
  .about-tags { position: static; transform: none; justify-content: center; margin-top: 1.2rem; }
  .timeline { padding-left: 1.4rem; }
  .tl-item { padding-left: 1.2rem; }
  .tl-head { flex-direction: column; gap: .2rem; }
  .cart-drawer { width: 100%; max-width: 100%; }
  .cart-head { padding: 1.1rem 1.2rem; }
  .cart-items { padding: .8rem 1.2rem; }
  .cart-foot { padding: 1rem 1.2rem 1.2rem; }
}
