/* Mejoras v5: recursos locales, accesibilidad y adaptación móvil. */
section[id] {
    scroll-margin-top: 110px
}

:focus-visible {
    outline: 3px solid #0877f9;
    outline-offset: 5px
}

.skipLink {
    position: fixed;
    top: -80px;
    left: 16px;
    z-index: 100;
    background: white;
    padding: 14px
}

.skipLink:focus {
    top: 8px
}

.topbar {
    gap: 18px
}

.topbar nav {
    gap: 18px
}

.topbar nav a.active {
    color: var(--blue);
    text-decoration: underline;
    text-underline-offset: 7px
}

.phone {
    display: grid !important;
    flex-shrink: 0;
    background: #eaf8ef;
    border: 1px solid #b6e7c6;
    border-radius: 10px;
    padding: 8px 12px;
    color: #126b38;
    align-items: center
}

.phone img {
    width: 28px;
    height: 28px;
    grid-row: 1/3;
    fill: currentColor
}

.phone b {
    font-size: 19px;
    white-space: nowrap
}

.phone small {
    font-size: 10px;
    color: #26683d
}

.hero {
    display: flex;
    min-height: 610px;
    background-color: #f7fbff;
    background-image: linear-gradient(90deg, #f7fbff 0%, rgba(247, 251, 255, .95) 32%, transparent 51%), url('assets/img/hero-pluscloud.jpg');
    background-size: 100% 100%, 100% auto;
    background-position: center, right center;
    padding: 34px 6vw
}

.heroCopy {
    width: 43%;
    padding: 0
}

.hero h1 {
    font-size: clamp(32px, 3.4vw, 49px)
}

.hero .lead {
    font-size: 17px
}

.heroVisual {
    display: none
}

.benefits {
    grid-template-columns: repeat(2, 1fr)
}

.moduleGrid div {
    justify-content: flex-start;
    padding: 24px 14px;
    transition: transform .2s, box-shadow .2s, border-color .2s
}

.moduleGrid div:hover,
.moduleGrid div:focus {
    transform: translateY(-7px);
    border-color: #78abfa;
    box-shadow: 0 15px 30px #1255c322
}

.moduleGrid i {
    height: 52px
}

.moduleGrid i img {
    width: 50px;
    height: 50px
}

.moduleGrid p {
    font-size: 13px;
    line-height: 1.5;
    color: var(--text);
    margin: 0;
    opacity: 0;
    transition: opacity .2s
}

.moduleGrid div:hover p,
.moduleGrid div:focus p {
    opacity: 1
}

.planCard {
    display: flex;
    flex-direction: column
}

.planCard .planTag {
    align-self: flex-start
}

.planCard ul {
    list-style: none;
    padding: 0;
    margin: 18px 0 24px;
    flex: 1
}

.planCard li {
    font-size: 14px;
    color: var(--text);
    line-height: 1.6;
    margin: 10px 0;
    padding-left: 22px;
    position: relative
}

.planCard li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--blue);
    font-weight: 800
}

.scopeLabel {
    font-size: 12px;
    font-weight: 700;
    color: var(--blue)
}

.screenOpen {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: #edf3fb;
    cursor: zoom-in;
    color: var(--blue);
    font: inherit
}

.screenOpen span {
    display: block;
    padding: 10px;
    font-size: 12px;
    font-weight: 700
}

.screenCard img,
.screenCard.wide img {
    aspect-ratio: 16/10;
    object-fit: contain;
    background: #edf3fb
}


.lightbox {
    position: fixed;
    inset: 0;
    width: 100vw;
    max-width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    border: 0;
    padding: 64px 24px 24px;
    background: transparent;
    color: white;
    overflow: auto;
    text-align: center
}

.lightbox[open] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center
}

.lightbox::backdrop {
    background: rgba(3, 13, 32, .93)
}

.lightbox img {
    max-width: 100%;
    max-height: calc(100dvh - 130px);
    object-fit: contain;
    flex-shrink: 1;
    min-height: 0
}

.lightboxClose {
    position: fixed;
    top: 12px;
    right: 22px;
    width: 44px;
    height: 44px;
    border: 1px solid #fff;
    border-radius: 50%;
    font-size: 32px;
    color: white;
    background: #153768;
    cursor: pointer
}

.modalOpen {
    overflow: hidden
}

.control {
    grid-template-columns: minmax(0, 38fr) minmax(0, 62fr)
}

.control>* {
    min-width: 0
}

.carouselPause {
    margin-top: 18px;
    border: 1px solid #b9c7dc;
    border-radius: 8px;
    padding: 10px 15px;
    background: white;
    color: var(--blue);
    cursor: pointer
}

.logoTrack.paused {
    animation-play-state: paused
}

.detailHero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    background: #f7fbff
}

.detailHero img {
    width: 100%;
    border-radius: 20px
}

.detailHero h1 {
    font-size: 48px;
    margin: 15px 0
}

.detailHero h1 span {
    color: var(--blue)
}

.backLink {
    display: inline-block;
    color: var(--blue);
    margin-bottom: 35px
}

.featureGrid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    text-align: left;
    margin-top: 35px
}

.featureGrid article {
    padding: 28px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 16px
}

.featureGrid img {
    width: 40px;
    height: 40px
}

.featureGrid p,
.detailCta p {
    color: var(--text);
    line-height: 1.7
}

.detailCta {
    text-align: center
}

.detailCta .btn {
    margin: 10px 5px
}

.integrationNote {
    max-width: 900px;
    margin: 30px auto;
    padding: 20px;
    color: var(--text);
    line-height: 1.6
}

.floatWA {
    bottom: 20px
}

.copyright {
    padding-bottom: 40px
}

@media(max-width:1200px) {
    .topbar>.compact {
        display: none
    }

    .topbar nav {
        gap: 14px
    }

    .brand img {
        width: 175px
    }
}

@media(max-width:1050px) {
    .hero {
        display: block;
        padding: 45px 6vw 40vw;
        background-image: url('assets/img/hero-pluscloud.jpg');
        background-size: 100% auto;
        background-position: center bottom
    }

    .heroCopy {
        width: 100%;
        max-width: 650px
    }

    .hero h1 {
        font-size: 42px
    }

    .control {
        grid-template-columns: 1fr
    }

    .featureGrid {
        grid-template-columns: repeat(2, 1fr)
    }
}

@media(max-width:760px) {
    .topbar {
        height: 82px;
        gap: 8px;
        padding: 8px 12px
    }

    .brand img {
        width: 125px
    }

    .phone {
        padding: 6px;
        gap: 0 4px
    }

    .phone b {
        font-size: 15px
    }

    .phone img {
        width: 23px;
        height: 23px
    }

    .phone small {
        font-size: 8px
    }

    .menuBtn {
        order: 3;
        margin-left: auto;
        min-width: 38px;
        min-height: 44px
    }

    .topbar nav {
        top: 82px
    }

    .hero {
        min-height: 0;
        padding: 40px 20px 43vw
    }

    .hero h1 {
        font-size: 36px
    }

    .hero .lead {
        font-size: 16px
    }

    .hero .actions {
        flex-wrap: wrap
    }

    .moduleGrid {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }

    .moduleGrid p {
        opacity: 1
    }

    .planCard.featured {
        transform: none
    }

    .detailHero {
        grid-template-columns: 1fr;
        gap: 28px
    }

    .detailHero h1 {
        font-size: 38px
    }

    .featureGrid {
        grid-template-columns: 1fr
    }

    .cta .whatsapp {
        justify-content: center;
        padding: 15px 10px;
        font-size: 14px
    }

    .screenCard:last-child {
        grid-column: auto
    }

    .footerTop>* {
        max-width: 100%
    }

    .integrationNote {
        margin: 20px
    }

    .control {
        gap: 24px
    }
}

@media(hover:none) {
    .moduleGrid p {
        opacity: 1
    }
}

@media(prefers-reduced-motion:reduce) {
    html {
        scroll-behavior: auto
    }

    *,
    *:before,
    *:after {
        animation: none !important;
        transition: none !important
    }

    .logoViewport {
        overflow-x: auto;
        mask-image: none
    }

    .logoTrack>div[aria-hidden] {
        display: none
    }
}

@media(max-width:360px) {
    .brand img {
        width: 100px
    }

    .phone b {
        font-size: 13px
    }

    .phone small {
        font-size: 7px
    }

    .phone img {
        width: 20px;
        height: 20px
    }

    .topbar {
        gap: 5px;
        padding: 8px
    }

    .menuBtn {
        min-width: 32px;
        padding: 0
    }
}

footer .social {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0;
}

footer .social a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid #d9e5f7;
  border-radius: 50%;
  background: #fff;
  color: #1255c3;
  transition: background .2s, color .2s, transform .2s;
}

footer .social svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

footer .social a:hover,
footer .social a:focus-visible {
  background: #1255c3;
  color: #fff;
  transform: translateY(-3px);
}