@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Montserrat:wght@500;600;700;800&display=swap');

:root {
  --navy: #0b2e67;
  --navy-soft: #061f4d;
  --red: #e61e2a;
  --ink: #061f4d;
  --muted: #526783;
  --bg: #f2f4f7;
  --card: #ffffff;
  --line: #dce5ee;
  --shadow: 0 10px 30px rgba(7, 29, 54, .08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--bg); }
h1, h2, h3, .brand-mark, .button { font-family: Montserrat, Inter, ui-sans-serif, system-ui, sans-serif; }
button, input, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
.skip-link { position: absolute; left: -999px; top: 0; z-index: 100; background: #fff; padding: .75rem; }
.skip-link:focus { left: .75rem; }
.shell { min-height: 100vh; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; min-height: 74px; padding: 0 5vw; background: #fff; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: .85rem; font-weight: 800; letter-spacing: -.04em; color: var(--navy); }
.brand-emblem { flex: 0 0 64px; width: 64px; height: 42px; background: url('assets/identidad-grafica-wakun.png') -84px -10px / 216px auto no-repeat; }
.brand-mark { position: relative; font-size: 1.65rem; letter-spacing: -.08em; }
.brand-a { color: var(--red); }
.brand-copy { border-left: 1px solid var(--line); padding-left: .85rem; font-size: .85rem; letter-spacing: 0; line-height: 1.1; }
.brand-copy small { display: block; color: var(--muted); font-weight: 500; margin-top: .25rem; }
.public-nav { display: flex; align-items: center; gap: 1.5rem; font-size: .88rem; color: #405b78; }
.public-nav a:hover, .public-nav a[aria-current="page"] { color: var(--navy); font-weight: 700; }
.top-actions { display: flex; gap: .65rem; }
.button { border: 1px solid transparent; border-radius: .45rem; padding: .72rem 1.05rem; font-weight: 700; font-size: .9rem; transition: .2s ease; }
.button:hover { transform: translateY(-1px); }
.button.primary { background: var(--red); color: #fff; box-shadow: 0 6px 14px rgba(227, 27, 35, .18); }
.button.secondary { background: #fff; border-color: #9db0c3; color: var(--navy); }
.button.dark { background: var(--navy); color: #fff; }
.page { max-width: 1440px; margin: 0 auto; padding: 0 3.5vw 2.5rem; }
.hero { min-height: 410px; margin: 0 -3.5vw 2.8rem; padding: 4.8rem 7vw 3rem; color: #fff; overflow: hidden; position: relative; isolation: isolate; background: #0b3159; }
.hero-video { position: absolute; z-index: 0; inset: -4%; width: 108%; height: 108%; object-fit: cover; animation: hero-drift 9s ease-in-out infinite alternate; }
.hero::before { content: ""; position: absolute; z-index: 1; inset: 0; background: linear-gradient(105deg, rgba(7,29,54,.97) 0%, rgba(12,47,85,.91) 45%, rgba(12,47,85,.42) 100%); }
.hero::after { content: ""; position: absolute; z-index: 1; inset: 0 0 0 55%; pointer-events: none; background: repeating-linear-gradient(120deg, transparent 0 48px, rgba(255,255,255,.07) 50px 52px, transparent 54px 105px); transform: skewX(-14deg); }
.hero-content { position: relative; z-index: 2; max-width: 760px; }
@keyframes hero-drift { from { transform: scale(1.02) translate3d(-.8%, 0, 0); } to { transform: scale(1.08) translate3d(.8%, -.4%, 0); } }
.eyebrow { text-transform: uppercase; letter-spacing: .11em; font-size: .78rem; font-weight: 800; }
.hero h1 { font-size: clamp(2.5rem, 5vw, 4.85rem); line-height: .98; letter-spacing: -.06em; margin: .7rem 0; max-width: 700px; }
.hero p { max-width: 600px; margin: 0 0 1.55rem; font-size: 1.18rem; line-height: 1.5; color: #e2eaf1; }
.hero .button.secondary { background: transparent; color: #fff; border-color: #dbe6ef; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-points { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-top: 2.5rem; font-size: .92rem; }
.hero-points span { display: flex; align-items: center; gap: .45rem; }
.hero-points b { color: #fff; }
.section { margin-top: 2.6rem; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.section-head h2 { margin: 0; font-size: 1.4rem; letter-spacing: -.04em; }
.section-head a { color: #1265c5; font-weight: 700; font-size: .9rem; }
.module-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.module, .card, .metric, .quick, .panel { background: var(--card); border: 1px solid var(--line); border-radius: .7rem; box-shadow: 0 4px 14px rgba(7,29,54,.035); }
.module { min-height: 160px; padding: 1.35rem; }
.module-icon { display: grid; place-items: center; width: 40px; height: 40px; color: var(--red); background: #fff1f2; border-radius: .5rem; font-size: 1.35rem; }
.module h3 { margin: 1rem 0 .4rem; font-size: 1.05rem; }
.module p, .card p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.45; }
.module a { display: inline-block; color: #1265c5; font-size: .87rem; font-weight: 700; margin-top: 1rem; }
.content-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.card { overflow: hidden; }
.card-image { position: relative; isolation: isolate; overflow: hidden; min-height: 126px; display: flex; align-items: end; padding: .85rem; color: #fff; font-weight: 800; background: linear-gradient(135deg, #173f68, #9bb5c7); }
.card-image > .card-visual { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-image > .card-visual + span { position: relative; z-index: 2; text-shadow: 0 2px 10px rgba(0, 0, 0, .85); }
.card-image.automation { background: linear-gradient(135deg, #10243a, #306c9b); }
.card-image.network { background: linear-gradient(135deg, #273e56, #8c6859); }
.card-image.image-event, .card-image.image-opportunity, .card-image.image-course { background-size: cover; background-repeat: no-repeat; text-shadow: 0 2px 10px rgba(0, 0, 0, .85); }
.card-image.image-event::after, .card-image.image-opportunity::after, .card-image.image-course::after { content: ""; position: absolute; z-index: 1; inset: 0; pointer-events: none; background: linear-gradient(0deg, rgba(7,29,54,.64), rgba(7,29,54,.04)); }
.card-image.image-event { background-image: linear-gradient(0deg, rgba(7,29,54,.64), rgba(7,29,54,.04)), url('assets/eventos-industriales.png'); background-position: center 44%; }
.card-image.event-1 { background-image: linear-gradient(0deg, rgba(7,29,54,.5), rgba(7,29,54,.02)), url('assets/evento-taller-automatizacion.png'); background-position: 48% 42%; }
.card-image.event-2 { background-image: linear-gradient(0deg, rgba(7,29,54,.52), rgba(7,29,54,.04)), url('assets/evento-networking.png'); background-position: 52% 48%; }
.card-image.image-opportunity { background-image: linear-gradient(0deg, rgba(7,29,54,.7), rgba(7,29,54,.06)), url('assets/oportunidades-b2b.png'); background-position: center 46%; }
.card-image.opportunity-1 { background-position: 28% 46%; }
.card-image.opportunity-2 { background-position: 74% 46%; }
.card-image.opportunity-3 { background-position: 42% 35%; }
.card-image.opportunity-4 { background-position: 88% 46%; }
.card-body { padding: 1rem; }
.card h3 { margin: .25rem 0 .55rem; font-size: 1.04rem; letter-spacing: -.025em; }
.meta { color: var(--muted); font-size: .8rem; display: flex; flex-wrap: wrap; gap: .6rem; }
.card .button { width: 100%; margin-top: 1rem; padding: .58rem; font-size: .84rem; }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.metric { padding: 1.2rem; text-align: center; }
.metric b { display: block; color: var(--navy); font-size: 1.8rem; letter-spacing: -.06em; }
.metric span { color: var(--muted); font-size: .86rem; }
.news-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 1rem; }
.news { display: flex; gap: .75rem; align-items: center; padding: .8rem; background: #fff; border: 1px solid var(--line); border-radius: .65rem; }
.news-thumb { flex: 0 0 84px; height: 64px; border-radius: .35rem; background: linear-gradient(145deg, #0c2f55, #7ba4b7); }
.news:nth-child(2) .news-thumb { background: linear-gradient(145deg, #33552c, #a2b75b); }
.news:nth-child(3) .news-thumb { background: linear-gradient(145deg, #453b36, #ad8c72); }
.news-thumb.image-news { background-image: linear-gradient(0deg, rgba(7,29,54,.18), rgba(7,29,54,.05)), url('assets/noticias-innovacion.png'); background-size: cover; background-position: 50% 50%; }
.news img.news-thumb.image-news { display: block; object-fit: cover; background: none; }
.news-thumb.news-1 { background-position: 22% 50%; }
.news-thumb.news-2 { background-position: 76% 50%; }
.news-thumb.news-3 { background-position: 38% 25%; }
.news-thumb.news-4 { background-position: 90% 55%; }
.news h3 { font-size: .85rem; line-height: 1.25; margin: 0 0 .35rem; }
.news small { color: var(--muted); }
.cta { margin-top: 2.8rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 2rem 2.5rem; color: #fff; border-radius: .7rem; background: linear-gradient(110deg, var(--navy), var(--navy-soft)); }
.cta h2 { margin: 0 0 .35rem; letter-spacing: -.04em; }
.cta p { margin: 0; color: #d8e3ed; }
.footer { max-width: 1440px; padding: 1.8rem 3.5vw; margin: 0 auto; display: flex; justify-content: space-between; color: var(--muted); font-size: .82rem; }

/* Private demo */
.private-shell { min-height: 100vh; display: grid; grid-template-columns: 220px 1fr; }
.side { background: #fff; border-right: 1px solid var(--line); padding: 1.25rem .7rem; }
.side .brand { padding: .3rem .65rem 1.25rem; }
.side-nav { display: grid; gap: .2rem; }
.side-nav button { width: 100%; border: 0; background: transparent; color: var(--ink); text-align: left; padding: .78rem .8rem; border-radius: .45rem; font-size: .9rem; }
.side-nav button:hover, .side-nav button.active { background: var(--navy); color: #fff; }
.private-main { min-width: 0; }
.private-top { height: 74px; background: #fff; border-bottom: 1px solid var(--line); padding: 0 2rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.search { width: min(360px, 42vw); border: 1px solid var(--line); border-radius: .45rem; padding: .65rem .8rem; }
.user-control { display: flex; align-items: center; gap: .65rem; font-size: .85rem; }
.avatar { display: grid; place-items: center; flex: 0 0 37px; width: 37px; height: 37px; border-radius: 50%; background: #d7e1e9; color: var(--navy); font-weight: 800; }
.private-page { padding: 1.4rem 2rem 2.5rem; max-width: 1430px; }
.private-hero { border-radius: .65rem; padding: 2.6rem 2.1rem; color: #fff; background: linear-gradient(110deg, rgba(7,29,54,.96), rgba(12,47,85,.72)), linear-gradient(135deg, #46667e, #9cafbe); }
.private-hero h1 { font-size: clamp(2rem, 3.5vw, 3.55rem); margin: .35rem 0; letter-spacing: -.06em; }
.private-hero p { max-width: 580px; margin: 0; font-size: 1.06rem; line-height: 1.45; }
.welcome { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin: 1.4rem 0 1rem; }
.welcome h2 { margin: 0; font-size: 1.8rem; letter-spacing: -.05em; }
.welcome p { color: var(--muted); margin: .25rem 0 0; }
.quick-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: .7rem; }
.quick { min-height: 86px; text-align: center; padding: .9rem .35rem; font-size: .8rem; }
.quick strong { display: block; color: var(--navy); font-size: 1.35rem; margin-bottom: .35rem; }
.dash-grid { display: grid; grid-template-columns: 1fr 310px; gap: 1rem; margin-top: 1.5rem; }
.dash-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.panel { padding: 1rem; margin-bottom: 1rem; }
.panel h3 { margin: 0 0 .8rem; font-size: 1rem; }
.notice { display: grid; grid-template-columns: 9px 1fr auto; gap: .55rem; align-items: start; padding: .55rem 0; border-bottom: 1px solid #edf1f5; font-size: .83rem; }
.notice:last-child { border-bottom: 0; }
.dot { width: 8px; height: 8px; margin-top: .3rem; border-radius: 50%; background: var(--red); }
.dot.blue { background: #1265c5; } .dot.gold { background: #e6a319; }
.notice small { color: var(--muted); }
.page-title { margin: 0 0 1rem; font-size: 2rem; letter-spacing: -.05em; }
.list-toolbar { display: flex; justify-content: space-between; gap: 1rem; margin: 0 0 1rem; }
.list-toolbar input { flex: 1; border: 1px solid var(--line); border-radius: .45rem; padding: .65rem .8rem; }
.empty { color: var(--muted); padding: 2rem; text-align: center; background: #fff; border: 1px dashed var(--line); border-radius: .6rem; }
.modal-backdrop { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 1rem; background: rgba(4, 19, 35, .58); }
.modal { width: min(480px, 100%); background: #fff; border-radius: .8rem; padding: 1.6rem; box-shadow: 0 24px 60px rgba(0,0,0,.25); }
.modal h2 { margin: 0 0 .45rem; letter-spacing: -.04em; }
.modal p { color: var(--muted); line-height: 1.45; }
.account-list { display: grid; gap: .6rem; margin: 1rem 0; }
.account { display: flex; justify-content: space-between; align-items: center; text-align: left; border: 1px solid var(--line); border-radius: .5rem; background: #fff; padding: .75rem .85rem; }
.account:hover { border-color: #7f9ab5; background: #f8fbfd; }
.account small { display: block; color: var(--muted); margin-top: .15rem; }
.ask { display: flex; gap: .6rem; margin-top: 1rem; }
.ask input { flex: 1; border: 1px solid var(--line); border-radius: .45rem; padding: .7rem; }
.answer { margin-top: 1rem; padding: 1rem; border-radius: .55rem; background: #edf5fb; color: var(--navy); line-height: 1.45; }

@media (max-width: 1040px) {
  .public-nav { display: none; }
  .module-grid { grid-template-columns: repeat(2, 1fr); }
  .quick-grid { grid-template-columns: repeat(4, 1fr); }
  .dash-grid { grid-template-columns: 1fr; }
  .dash-cards { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  .topbar { min-height: 64px; padding: 0 1rem; } .brand-copy { display: none; } .top-actions .secondary { display: none; }
  .page { padding: 0 1rem 2rem; } .hero { margin: 0 -1rem 2rem; padding: 3.4rem 1rem 2rem; min-height: 390px; }
  .content-grid, .metrics, .news-grid { grid-template-columns: 1fr; } .module-grid { grid-template-columns: 1fr 1fr; gap: .65rem; }
  .module { padding: .95rem; min-height: 145px; } .cta { display: block; padding: 1.5rem; } .cta .button { margin-top: 1rem; }
  .footer { padding: 1.3rem 1rem; flex-direction: column; gap: .4rem; }
  .private-shell { display: block; } .side { border-right: 0; padding: .7rem; } .side .brand { display: none; }
  .side-nav { display: flex; overflow: auto; } .side-nav button { white-space: nowrap; width: auto; }
  .private-top { padding: 0 1rem; height: 64px; } .search { width: 43vw; } .user-control span { display: none; }
  .private-page { padding: 1rem; } .private-hero { padding: 1.8rem 1.2rem; } .quick-grid { grid-template-columns: repeat(3, 1fr); }
  .dash-cards { grid-template-columns: 1fr; } .welcome { align-items: start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .hero { background: linear-gradient(105deg, rgba(7,29,54,.97), rgba(12,47,85,.6)), url('assets/hero-comunidad-industrial.webp') center / cover; }
  .hero-video { display: none; }
}
