/* =========================================================
   JCDSISTEMAS · rediseño
   Colores de marca: azul #5454d4 y naranja #FF7143 (los originales)
   ========================================================= */

:root {
    --ink: #14143f;
    --ink-2: #1f1f6b;
    --indigo: #3a3ab8;
    --blue: #5454d4;
    --violet: #6b4fd8;
    --orange: #FF7143;
    --orange-soft: #ff9a5c;
    --tint: #f0eeff;
    --text: #26264f;
    --muted: #5b5b84;
    --wa: #15803d;
    --wa-dark: #166534;
    --wa-float: #25d366;
    --radius: 18px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    color: var(--text);
    background: #fff;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; }
section[id] { scroll-margin-top: 80px; }

:focus-visible {
    outline: 3px solid var(--orange-soft);
    outline-offset: 3px;
}

.container {
    width: min(1200px, calc(100% - 2.5rem));
    margin-inline: auto;
}

.ico {
    width: 1.2em;
    height: 1.2em;
    flex: none;
}

.sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.skip {
    position: absolute;
    left: -999px;
    top: 0.5rem;
    z-index: 200;
    background: #fff;
    color: var(--ink);
    padding: 0.6rem 1rem;
    border-radius: 8px;
    font-weight: 700;
}
.skip:focus { left: 0.5rem; }

/* ---------- Tipografía de títulos ---------- */

.title {
    font-size: clamp(1.8rem, 3.4vw, 2.7rem);
    font-weight: 800;
    font-stretch: 112%;
    line-height: 1.1;
    letter-spacing: -0.015em;
    color: var(--ink);
    max-width: 22ch;
}
.title--light { color: #fff; }

.lead {
    margin-top: 1.25rem;
    font-size: 1.2rem;
    line-height: 1.65;
    color: var(--muted);
    max-width: 56ch;
}

/* ---------- Botones ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    border: 2px solid transparent;
    border-radius: 999px;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s, transform 0.2s;
}
.btn--lg { padding: 0.95rem 1.6rem; font-size: 1.05rem; }
.btn--sm { padding: 0.5rem 1rem; font-size: 0.95rem; }

.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: var(--wa-dark); transform: translateY(-2px); }

.btn--ghost {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.45);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.14); border-color: #fff; }

.btn--white { background: #fff; color: var(--ink); }
.btn--white:hover { transform: translateY(-2px); background: #f6f4ff; }
.ico--wa { color: var(--wa); }

/* =========================================================
   NAVEGACIÓN
   ========================================================= */

.nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    transition: background-color 0.3s, box-shadow 0.3s, backdrop-filter 0.3s;
}
.nav.is-scrolled {
    background: rgba(20, 20, 63, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 30px -12px rgba(0, 0, 0, 0.5);
}

.nav__bar {
    height: 76px;
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.nav__brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
    color: #fff;
    margin-right: auto;
}
.nav__logo { width: 44px; height: 44px; filter: brightness(0) invert(1); }
.nav__name {
    font-weight: 800;
    font-stretch: 118%;
    letter-spacing: 0.02em;
    font-size: 1.1rem;
}

.nav__list { display: flex; gap: 1.75rem; }
.nav__link {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-weight: 500;
    padding: 0.4rem 0;
    background: linear-gradient(var(--orange), var(--orange)) no-repeat 0 100% / 0 2px;
    transition: color 0.2s, background-size 0.25s;
}
.nav__link:hover { color: #fff; background-size: 100% 2px; }

.nav__toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    cursor: pointer;
    padding: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.nav__toggle span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: #fff;
    transition: transform 0.25s, opacity 0.2s;
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */

.hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    padding-bottom: 8rem;
    background:
        radial-gradient(55% 50% at 88% 18%, rgba(255, 113, 67, 0.38), transparent 70%),
        radial-gradient(50% 60% at 8% 95%, rgba(107, 79, 216, 0.6), transparent 70%),
        linear-gradient(135deg, #12123a 0%, #2b2b9a 55%, #4b3fc9 100%);
}

.hero__main {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 3rem;
    padding-top: 9rem;
}

.hero__title {
    font-size: clamp(2.4rem, 5.2vw, 4.3rem);
    font-weight: 800;
    font-stretch: 116%;
    line-height: 1.03;
    letter-spacing: -0.025em;
    max-width: 14ch;
}

.hero__paragraph {
    margin: 1.5rem 0 2rem;
    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    max-width: 50ch;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

.hero__checks {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.75rem;
    margin-top: 2rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
}
.hero__checks li { display: flex; align-items: center; gap: 0.5rem; }
.hero__checks .ico { color: var(--orange-soft); }

.hero__figure { position: relative; }

.hero__glow {
    position: absolute;
    inset: 8% 4% 2%;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0) 100%);
}

.hero__img {
    position: relative;
    width: 100%;
    filter: drop-shadow(0 30px 40px rgba(8, 8, 40, 0.45));
    -webkit-mask-image: linear-gradient(#000 90%, transparent);
    mask-image: linear-gradient(#000 90%, transparent);
}

.hero__badge {
    position: absolute;
    width: clamp(70px, 11vw, 120px);
    height: auto;
    filter: drop-shadow(0 12px 18px rgba(8, 8, 40, 0.5));
}
.hero__badge--ssl { top: 2%; right: 0; }
.hero__badge--seg { top: 36%; left: -5%; }

/* Única animación de entrada: se ve al cargar la página */
@keyframes rise {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: none; }
}
@keyframes pop {
    from { opacity: 0; transform: scale(0.9) translateY(20px); }
    to   { opacity: 1; transform: none; }
}

.hero__texts > * { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero__texts > :nth-child(2) { animation-delay: 0.1s; }
.hero__texts > :nth-child(3) { animation-delay: 0.2s; }
.hero__texts > :nth-child(4) { animation-delay: 0.3s; }
.hero__img { animation: pop 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.15s both; }
.hero__badge--ssl { animation: pop 0.8s ease 0.7s both; }
.hero__badge--seg { animation: pop 0.8s ease 0.85s both; }

/* =========================================================
   NÚMEROS
   ========================================================= */

.stats { position: relative; z-index: 2; margin-top: -4.5rem; }

.stats__panel {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 30px 60px -28px rgba(20, 20, 63, 0.45), 0 0 0 1px rgba(84, 84, 212, 0.08);
}

.stats__item { padding: 1.8rem 2rem; }
.stats__item + .stats__item { border-left: 1px solid rgba(84, 84, 212, 0.16); }

.stats__num {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    font-stretch: 112%;
    line-height: 1;
    color: var(--indigo);
}
.stats__star { color: var(--orange); }
.stats__item p { margin-top: 0.6rem; color: var(--muted); max-width: 26ch; }

/* =========================================================
   SOBRE NOSOTROS
   ========================================================= */

.about {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    align-items: center;
    gap: 4rem;
    padding-block: 6.5rem;
}

.about__figure { display: grid; place-items: center; }

.about__disc {
    position: relative;
    width: min(380px, 82%);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--tint);
}
.about__disc::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid var(--orange);
    transform: translate(16px, 16px);
    z-index: -1;
}
.about__img { width: 76%; }

.about__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem 1.5rem;
    margin-top: 2rem;
    font-weight: 600;
    color: var(--ink);
}
.about__list li { display: flex; align-items: center; gap: 0.6rem; }
.about__list .ico {
    width: 1.7rem;
    height: 1.7rem;
    padding: 0.35rem;
    border-radius: 50%;
    background: var(--blue);
    color: #fff;
}

/* =========================================================
   QUÉ BRINDAMOS
   ========================================================= */

.services { background: var(--tint); padding-block: 6rem; }

.services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 3rem;
}

.service { padding: 0.5rem 2.5rem; }
.service:first-child { padding-left: 0; }
.service + .service { border-left: 1px solid rgba(84, 84, 212, 0.25); }

.service__img {
    width: 120px;
    height: 120px;
    padding: 14px;
    object-fit: contain;
    border-radius: 50%;
    background: var(--ink);
    box-shadow: 0 14px 28px -14px rgba(20, 20, 63, 0.6);
}
.service__title {
    margin: 1.4rem 0 0.5rem;
    font-size: 1.4rem;
    font-weight: 800;
    font-stretch: 108%;
    color: var(--ink);
}
.service p { color: var(--muted); font-size: 1.05rem; max-width: 30ch; }

/* =========================================================
   ENTRA A TU SISTEMA
   ========================================================= */

.systems {
    position: relative;
    overflow: hidden;
    padding-block: 6rem;
    color: #fff;
    background:
        radial-gradient(40% 50% at 100% 0%, rgba(255, 113, 67, 0.28), transparent 70%),
        linear-gradient(160deg, var(--ink) 0%, var(--ink-2) 100%);
}

.systems__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
}
.systems__sub { margin-top: 0.8rem; font-size: 1.1rem; color: rgba(255, 255, 255, 0.78); }

.systems__search { position: relative; display: block; }
.systems__search .ico {
    position: absolute;
    left: 1rem;
    top: 50%;
    translate: 0 -50%;
    color: rgba(255, 255, 255, 0.7);
    pointer-events: none;
}
.systems__search input {
    width: min(100%, 300px);
    padding: 0.8rem 1.1rem 0.8rem 2.8rem;
    font: inherit;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
}
.systems__search input::placeholder { color: rgba(255, 255, 255, 0.65); }
.systems__search input:focus { outline: 3px solid var(--orange-soft); outline-offset: 2px; }

.systems__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 0.9rem;
    margin-top: 2.5rem;
}

.sys {
    display: flex;
    align-items: center;
    gap: 1rem;
    height: 100%;
    padding: 1rem 1.1rem;
    text-decoration: none;
    color: #fff;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    transition: background-color 0.2s, border-color 0.2s;
}
.sys:hover { background: rgba(255, 255, 255, 0.15); border-color: var(--orange); }

.sys__icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    font-size: 1.6rem;
    border-radius: 14px;
    background: #fff;
}
.sys__text { display: grid; gap: 0.1rem; min-width: 0; }
.sys__text strong { font-size: 1.02rem; line-height: 1.25; }
.sys__text small { color: rgba(255, 255, 255, 0.68); font-size: 0.88rem; }
.sys__go { margin-left: auto; color: var(--orange); transition: translate 0.2s; }
.sys:hover .sys__go { translate: 4px 0; }

.systems__empty {
    margin-top: 2rem;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
}
.systems__empty a { color: var(--orange-soft); font-weight: 700; }

/* =========================================================
   CÓMO TRABAJAMOS
   ========================================================= */

.process { padding-block: 6.5rem 4rem; }

.process__list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 3rem;
}

.step { position: relative; }
.step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 26px;
    left: 72px;
    right: -1.5rem;
    border-top: 2px dashed rgba(84, 84, 212, 0.4);
}

.step__num {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--ink);
    color: #fff;
    font-size: 1.3rem;
    font-weight: 800;
}
.step h3 {
    margin: 1.2rem 0 0.4rem;
    font-size: 1.3rem;
    font-weight: 800;
    font-stretch: 108%;
    color: var(--ink);
}
.step p { color: var(--muted); max-width: 32ch; }

/* =========================================================
   LLAMADO FINAL
   ========================================================= */

.cta { padding-bottom: 6rem; }

.cta__panel {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.75rem;
    padding: clamp(2rem, 5vw, 3.5rem);
    border-radius: 28px;
    color: var(--ink);
    background: linear-gradient(120deg, var(--orange) 0%, var(--orange-soft) 100%);
}
.cta__panel::before {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    right: -90px;
    top: -140px;
    border-radius: 50%;
    border: 44px solid rgba(255, 255, 255, 0.22);
    pointer-events: none;
}
.cta__panel > * { position: relative; }

.cta__title {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 800;
    font-stretch: 112%;
    line-height: 1.1;
    max-width: 20ch;
}
.cta__text { margin-top: 0.7rem; font-size: 1.1rem; font-weight: 500; }

/* =========================================================
   FOOTER
   ========================================================= */

.footer {
    background: #0c0c2b;
    color: rgba(255, 255, 255, 0.82);
    padding-block: 2.5rem;
}

.footer__container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.footer__brand { display: flex; align-items: center; gap: 1rem; }
.footer__logo { width: 56px; height: 56px; filter: brightness(0) invert(1); }

.footer__social { display: flex; gap: 0.7rem; }
.footer__social a {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: background-color 0.2s;
}
.footer__social a:hover { background: var(--orange); }

/* =========================================================
   WHATSAPP FLOTANTE
   ========================================================= */

.wa-float {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 90;
    display: grid;
    place-items: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--wa-float);
    color: #fff;
    box-shadow: 0 12px 28px -8px rgba(18, 140, 74, 0.7);
    transition: transform 0.2s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float .ico { width: 32px; height: 32px; }
.wa-float::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid var(--wa-float);
    animation: ring 2s ease-out 3s 3;
    opacity: 0;
}
@keyframes ring {
    from { transform: scale(1); opacity: 0.8; }
    to   { transform: scale(1.7); opacity: 0; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {
    .nav__toggle { display: flex; }

    .nav__list {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        padding: 0.5rem 1.25rem 1.25rem;
        background: rgba(20, 20, 63, 0.97);
        box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.5);
        display: none;
    }
    .nav__list.is-open { display: flex; }
    .nav__link {
        display: block;
        padding: 0.9rem 0;
        font-size: 1.1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        background: none;
    }
    .nav__link:hover { background: none; }

    .hero { padding-bottom: 7rem; }
    .hero__main { grid-template-columns: 1fr; gap: 2.5rem; padding-top: 7.5rem; }
    .hero__figure { max-width: 520px; margin-inline: auto; width: 100%; }

    .about { grid-template-columns: 1fr; gap: 3rem; padding-block: 5rem; }

    .services__grid { grid-template-columns: 1fr; gap: 2rem; }
    .service { padding: 0; }
    .service + .service {
        border-left: 0;
        border-top: 1px solid rgba(84, 84, 212, 0.25);
        padding-top: 2rem;
    }
    .service p { max-width: 44ch; }

    .process__list { grid-template-columns: 1fr; gap: 2rem; }
    .step:not(:last-child)::after { display: none; }
}

@media (max-width: 700px) {
    .stats__panel { grid-template-columns: 1fr; }
    .stats__item + .stats__item { border-left: 0; border-top: 1px solid rgba(84, 84, 212, 0.16); }
    .stats__item { padding: 1.4rem 1.5rem; }
    .stats__item p { max-width: none; }
    .about__list { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
    .nav__cta { display: none; }
    .hero__actions .btn { width: 100%; }
    .systems__search, .systems__search input { width: 100%; }
    .cta__panel .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
}
