:root {
  --bg: #020d1e;
  --bg2: #06162f;
  --panel: rgba(8, 31, 62, .84);
  --panel2: rgba(5, 23, 48, .90);
  --line: rgba(67, 151, 255, .22);
  --text: #f6f8fc;
  --muted: #afbdd1;
  --blue: #1288ff;
  --cyan: #39c7ff;
  --yellow: #ffd400;
  --green: #20dfa0;
  --radius: 20px;
  --container: 1300px;
  --shadow: 0 24px 70px rgba(0, 0, 0, .36);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 80% 8%, rgba(0, 109, 255, .18), transparent 24%),
    linear-gradient(180deg, #020a18 0%, #03152f 55%, #020b19 100%);
  font-family: "Inter", system-ui, sans-serif;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
.container { width: min(calc(100% - 42px), var(--container)); margin-inline: auto; }
.glow {
  position: fixed; width: 440px; height: 440px; border-radius: 50%;
  filter: blur(130px); pointer-events: none; opacity: .12; z-index: -1;
}
.glow-one { top: 12%; left: -220px; background: #007bff; }
.glow-two { top: 52%; right: -220px; background: #00b7ff; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid var(--line);
  background: rgba(2, 13, 30, .84);
  backdrop-filter: blur(18px);
}
.header-inner { min-height: 84px; display: flex; align-items: center; gap: 34px; }
.brand {
  width: 170px; display: inline-flex; flex-direction: column;
  font-style: italic; line-height: .82; letter-spacing: .08em;
}
.brand-small { margin-left: 12px; font-size: .8rem; font-weight: 600; letter-spacing: .23em; }
.brand-main { font-size: 2.15rem; font-weight: 800; }
.brand-wheel { color: var(--yellow); font-style: normal; }
.nav { flex: 1; display: flex; justify-content: center; gap: 24px; }
.nav a { display: inline-flex; align-items: center; gap: 8px; color: #c3cee0; font-size: .91rem; }
.nav a:hover { color: #fff; }
.nav svg { width: 17px; }

.button {
  min-height: 48px; display: inline-flex; align-items: center; justify-content: center;
  gap: 10px; padding: 0 21px; border-radius: 14px; font-weight: 700;
  transition: .25s ease;
}
.button svg { width: 18px; }
.button:hover { transform: translateY(-2px); }
.button-outline { border: 1px solid #208fff; background: rgba(7, 47, 93, .24); }
.button-primary {
  background: linear-gradient(135deg, #0d8cff, #0062e9);
  border: 1px solid #53c3ff; box-shadow: 0 13px 34px rgba(0, 107, 255, .28);
}
.button-dark { border: 1px solid var(--line); background: rgba(4, 21, 45, .82); }

.hero { position: relative; min-height: 650px; overflow: hidden; border-bottom: 1px solid var(--line); }
.grid-bg {
  position: absolute; inset: 0; opacity: .15;
  background-image:
    linear-gradient(rgba(55, 130, 220, .18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(55, 130, 220, .18) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, black, transparent 90%);
}
.hero-layout {
  position: relative; min-height: 650px; display: grid;
  grid-template-columns: 1.02fr .98fr; align-items: center; gap: 48px;
}
.eyebrow {
  margin: 0 0 14px; color: #35a9ff; font-size: .83rem;
  font-weight: 800; letter-spacing: .18em;
}
.hero h1 {
  margin: 0; max-width: 690px; font-size: clamp(3.2rem, 5.5vw, 5.7rem);
  line-height: 1.02; letter-spacing: -.05em;
}
.hero h1 span { display: block; color: #278ef9; }
.hero-text { max-width: 650px; margin: 24px 0 29px; color: var(--muted); font-size: 1.14rem; }
.hero-actions { display: flex; gap: 13px; flex-wrap: wrap; }
.trust-row { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 27px; color: #bfcde0; font-size: .83rem; }
.trust-row span { display: inline-flex; align-items: center; gap: 7px; }
.trust-row svg { width: 17px; color: var(--green); }

.hero-visual { position: relative; min-height: 520px; }
.orbit {
  position: absolute; left: 50%; top: 50%; border: 1px dashed rgba(54, 170, 255, .25);
  border-radius: 50%; transform: translate(-50%, -50%);
}
.orbit-1 { width: 470px; height: 470px; }
.orbit-2 { width: 355px; height: 355px; }
.orbit-3 { width: 250px; height: 250px; }

.device-card {
  position: absolute; left: 50%; top: 50%; width: 380px; height: 270px;
  transform: translate(-50%, -50%) rotate(-3deg);
  border: 1px solid #318fea; border-radius: 22px;
  background: linear-gradient(145deg, rgba(12, 47, 88, .96), rgba(3, 15, 35, .98));
  box-shadow: 0 30px 80px rgba(0,0,0,.52), 0 0 55px rgba(0,116,255,.20);
}
.device-top { height: 43px; display: flex; align-items: center; gap: 8px; padding: 0 18px; border-bottom: 1px solid var(--line); }
.device-top span { width: 8px; height: 8px; border-radius: 50%; background: #3c7fbe; }
.device-content { height: calc(100% - 43px); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.support-symbol {
  width: 78px; height: 78px; display: grid; place-items: center; margin-bottom: 13px;
  border-radius: 22px; color: #39c6ff; background: rgba(19, 123, 235, .12);
  border: 1px solid #1f9cff; box-shadow: 0 0 25px rgba(0,157,255,.21);
}
.support-symbol svg { width: 42px; height: 42px; }
.device-content small { letter-spacing: .2em; color: #86a4c8; }
.device-content strong { font-size: 1.7rem; margin-top: 2px; }
.status { margin-top: 16px; display: inline-flex; align-items: center; gap: 8px; color: #bccee1; font-size: .82rem; }
.status span { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px var(--green); }

.float-icon {
  position: absolute; width: 72px; height: 72px; display: grid; place-items: center;
  color: #38c5ff; background: rgba(4, 25, 54, .92); border: 1px solid #1b9ef4;
  border-radius: 20px; box-shadow: 0 0 28px rgba(0,135,255,.2);
}
.float-icon svg { width: 30px; height: 30px; }
.float-1 { top: 10%; left: 15%; }
.float-2 { top: 18%; right: 9%; }
.float-3 { bottom: 12%; right: 14%; }

.downloads-section { padding: 83px 0 90px; }
.section-heading { text-align: center; margin-bottom: 40px; }
.section-heading h2, .security-layout h2 {
  margin: 0; font-size: clamp(2rem, 3.3vw, 3.3rem); letter-spacing: -.04em;
}
.section-heading p:last-child { margin: 10px 0 0; color: var(--muted); }

.downloads-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.download-card {
  min-height: 250px; display: grid; grid-template-columns: 70px 1fr 48px; gap: 16px;
  align-items: center; padding: 29px; border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(11,38,74,.87), rgba(5,23,49,.88));
  box-shadow: var(--shadow); transition: .28s ease;
}
.download-card:hover { transform: translateY(-7px); border-color: rgba(58, 172, 255, .65); }
.platform-icon {
  width: 64px; height: 64px; display: grid; place-items: center;
  border-radius: 17px; background: rgba(25, 118, 255, .11); color: #47adff;
}
.platform-icon svg { width: 33px; height: 33px; }
.platform-android { color: #27e09a; background: rgba(25, 211, 145, .10); }
.platform-mac { color: #b9c9df; background: rgba(202, 220, 243, .09); }
.platform-label { color: #5bbaff; font-size: .72rem; font-weight: 800; letter-spacing: .16em; }
.download-info h3 { margin: 5px 0 7px; font-size: 1.32rem; }
.download-info p { margin: 0; color: var(--muted); font-size: .89rem; }
.download-info small { display: block; margin-top: 10px; color: #7392b8; }
.download-action {
  width: 46px; height: 46px; display: grid; place-items: center; justify-self: end;
  border-radius: 13px; color: #42b8ff; background: rgba(19, 122, 255, .10); border: 1px solid var(--line);
}
.download-action svg { width: 22px; }

.notice {
  margin-top: 24px; display: grid; grid-template-columns: 45px 1fr auto; gap: 16px;
  align-items: center; padding: 20px 24px; border: 1px solid var(--line); border-radius: 16px;
  background: rgba(7, 29, 58, .72);
}
.notice > svg { color: #3eaeff; }
.notice strong { display: block; }
.notice p { margin: 2px 0 0; color: var(--muted); font-size: .87rem; }
.notice a { display: inline-flex; align-items: center; gap: 8px; color: #42b7ff; font-weight: 700; }
.notice a svg { width: 17px; }

.steps-section {
  padding: 78px 0 88px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: radial-gradient(circle at 50% 50%, rgba(0,99,255,.10), transparent 37%);
}
.steps-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 19px; }
.step {
  position: relative; min-height: 240px; padding: 30px;
  border: 1px solid var(--line); border-radius: var(--radius); background: rgba(6,27,57,.77);
}
.step-number { position: absolute; top: 18px; right: 21px; color: rgba(92, 167, 255, .25); font-size: 2rem; font-weight: 800; }
.step-icon {
  width: 58px; height: 58px; display: grid; place-items: center; margin-bottom: 22px;
  border-radius: 16px; color: #3cb4ff; background: rgba(0,124,255,.11);
}
.step-icon svg { width: 28px; height: 28px; }
.step h3 { margin: 0 0 8px; font-size: 1.2rem; }
.step p { margin: 0; color: var(--muted); }

.security-section { padding: 56px 0; }
.security-layout {
  display: grid; grid-template-columns: 95px 1fr auto; gap: 28px; align-items: center;
  padding: 37px; border: 1px solid rgba(41, 211, 156, .20); border-radius: 22px;
  background: linear-gradient(100deg, rgba(6,44,61,.75), rgba(5,25,53,.86));
}
.security-icon {
  width: 82px; height: 82px; display: grid; place-items: center; border-radius: 23px;
  color: var(--green); background: rgba(28, 220, 152, .10); border: 1px solid rgba(31, 229, 159, .27);
}
.security-icon svg { width: 43px; height: 43px; }
.security-layout p:not(.eyebrow) { margin: 10px 0 0; color: var(--muted); max-width: 790px; }

.site-footer { padding: 42px 0; border-top: 1px solid var(--line); background: rgba(1,8,19,.77); }
.footer-layout { display: grid; grid-template-columns: 180px 1fr 240px; gap: 35px; align-items: start; color: #bdcadc; font-size: .86rem; }
.footer-layout p { margin: 3px 0; }
.footer-right { display: flex; flex-direction: column; gap: 5px; }

.reveal { opacity: 0; transform: translateY(19px); transition: .65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1050px) {
  .nav { display: none; }
  .header-inner { justify-content: space-between; }
  .hero-layout { grid-template-columns: 1fr; padding: 75px 0 45px; }
  .hero-visual { min-height: 480px; }
  .downloads-grid { grid-template-columns: 1fr; }
  .download-card { min-height: 170px; }
}
@media (max-width: 760px) {
  .header-inner .button { display: none; }
  .hero h1 { font-size: 3.25rem; }
  .hero-visual { transform: scale(.80); transform-origin: center top; margin-bottom: -90px; }
  .steps-grid { grid-template-columns: 1fr; }
  .notice { grid-template-columns: 40px 1fr; }
  .notice a { grid-column: 2; }
  .security-layout { grid-template-columns: 1fr; }
  .footer-layout { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .hero h1 { font-size: 2.85rem; }
  .hero-actions { flex-direction: column; }
  .button { width: 100%; }
  .download-card { grid-template-columns: 56px 1fr; padding: 22px; }
  .platform-icon { width: 54px; height: 54px; }
  .download-action { grid-column: 1 / -1; width: 100%; }
}

.logo-misol {
    display: block;
    width: auto;
    height: 58px;
    object-fit: contain;
}

.footer-logo {
    height: 65px;
}

@media (max-width: 620px) {
    .logo-misol {
        height: 45px;
    }

    .footer-logo {
        height: 52px;
    }
}

/* Mostrar botón Portal Tecnológico en móvil */
@media (max-width: 760px) {
  .header-inner .button {
    display: inline-flex;
    width: auto;
    padding: 9px 13px;
    font-size: .78rem;
    white-space: nowrap;
  }

  .header-inner {
    gap: 12px;
  }

  .brand img {
    max-width: 145px;
    height: auto;
  }
}

@media (max-width: 380px) {
  .header-inner .button {
    padding: 8px 10px;
    font-size: .72rem;
  }

  .brand img {
    max-width: 125px;
  }
}


/* =========================================================
   HEADER UNIFICADO - Portal Tecnológico
   ========================================================= */

.site-header{
    min-height:86px;
    background:rgba(2,13,30,.82);
    backdrop-filter:blur(18px);
    -webkit-backdrop-filter:blur(18px);
    border-bottom:1px solid rgba(111,168,255,.12);
}

.header-inner{
    width:min(calc(100% - 44px),1480px);
    min-height:86px;
    margin:0 auto;
    display:flex;
    align-items:center;
    gap:28px;
}

.brand{
    flex:0 0 168px;
    width:168px;
    height:86px;
    display:flex;
    align-items:center;
    justify-content:flex-start;
}

.logo-misol{
    width:auto !important;
    height:58px !important;
    max-width:168px;
    object-fit:contain;
    object-position:left center;
}

.nav{
    flex:1;
    display:flex;
    justify-content:center;
    gap:8px;
}

.nav a{
    display:flex;
    align-items:center;
    gap:8px;
    height:86px;
    padding:0 17px;
    font-size:.93rem;
    font-weight:400;
}

.button-outline{
    min-height:48px;
    height:48px;
    padding:0 20px;
    border-radius:26px;
}

@media(max-width:620px){

    .header-inner{
        min-height:72px;
    }

    .brand{
        width:138px;
        height:72px;
    }

    .logo-misol{
        height:45px !important;
        max-width:138px;
    }

}


/* Ajuste fino del logo */
.logo-misol{
    transform: translateY(11px) !important;
}

