/* Vinoc — páginas de producto en tema oscuro (Mayoristas Mobile / IoT, Internet Seguro SD-WAN) */
.wh {
    --wh-bg: #120f12;
    --wh-surface: #1c181d;
    --wh-surface-2: #231f2b;
    --wh-line: rgba(255, 255, 255, .1);
    --wh-text: #ffffff;
    --wh-muted: #b9b3c4;
    --wh-accent: #a79df0;
    --wh-purple: #665da5;
    --wh-gold: #ffc400;
    background: var(--wh-bg);
    color: var(--wh-text);
    font-family: 'Noto Sans', sans-serif;
    font-size: 17px;
    line-height: 1.6;
    overflow-x: clip;
}

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

.wh h1,
.wh h2,
.wh h3 {
    margin: 0;
    color: var(--wh-text);
    font-family: inherit;
    font-weight: 700;
    letter-spacing: -.01em;
    text-wrap: balance;
}

.wh p {
    margin: 0;
    color: var(--wh-muted);
}

.wh ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.wh img {
    display: block;
    margin: 0;
    max-width: 100%;
    height: auto;
}

.wh a {
    color: inherit;
}

.wh-wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

.wh-section {
    padding: 96px 0;
}

.wh-eyebrow {
    display: block;
    margin-bottom: 14px;
    color: var(--wh-accent);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.wh h2 {
    font-size: clamp(28px, 3.4vw, 40px);
    line-height: 1.15;
}

.wh-lead {
    max-width: 62ch;
    margin-top: 16px !important;
    font-size: 18px;
}

/* Botones */
.wh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 50px;
    padding: 0 26px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: filter .15s ease, background-color .15s ease, border-color .15s ease;
}

.wh-btn--gold {
    background: var(--wh-gold);
    color: #120f12 !important;
}

.wh-btn--gold:hover {
    filter: brightness(1.08);
}

.wh-btn--ghost {
    border-color: rgba(255, 255, 255, .28);
    color: #fff !important;
}

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

.wh a:focus-visible,
.wh button:focus-visible,
.wh input:focus-visible,
.wh textarea:focus-visible {
    outline: 2px solid var(--wh-accent);
    outline-offset: 2px;
}

/* ── Hero ── */
.wh-hero {
    position: relative;
    isolation: isolate;
    min-height: min(720px, calc(100vh - 68px));
    display: flex;
    align-items: center;
    padding: 96px 0;
    background: #120f12;
}

.wh-hero__bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 78% 50%;
}

.wh-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, #120f12 0%, rgba(18, 15, 18, .86) 36%, rgba(18, 15, 18, 0) 68%),
        linear-gradient(0deg, #120f12 0%, rgba(18, 15, 18, 0) 22%);
}

.wh-hero__copy {
    max-width: 640px;
}

.wh-hero h1 {
    font-size: clamp(36px, 5.2vw, 62px);
    line-height: 1.05;
}

.wh-hero h1 em {
    font-style: normal;
    color: var(--wh-accent);
}

.wh-hero__lead {
    max-width: 54ch;
    margin-top: 22px !important;
    font-size: clamp(17px, 1.5vw, 20px);
    color: #dcd7e6 !important;
}

.wh-hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 36px;
}

/* ── Franja de credenciales ── */
.wh-creds {
    border-top: 1px solid var(--wh-line);
    border-bottom: 1px solid var(--wh-line);
    background: #151216;
}

.wh-creds ul {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.wh-creds li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 26px 20px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
}

.wh-creds li + li {
    border-left: 1px solid var(--wh-line);
}

.wh-ico {
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    color: var(--wh-accent);
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ── Tarjetas de servicios ── */
.wh-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 48px;
}

.wh-card {
    padding: 28px 24px 30px;
    background: var(--wh-surface);
    border: 1px solid var(--wh-line);
    border-radius: 14px;
}

.wh-card .wh-ico {
    width: 34px;
    height: 34px;
    margin-bottom: 20px;
}

.wh-card h3 {
    font-size: 20px;
    line-height: 1.25;
}

.wh-card p {
    margin-top: 10px;
    font-size: 15.5px;
}

/* ── Bloques imagen + texto ── */
.wh-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.wh-split--flip .wh-split__media {
    order: 2;
}

.wh-split__media img {
    width: 100%;
    border-radius: 16px;
    border: 1px solid var(--wh-line);
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: 60% 50%;
}

.wh-checks {
    margin-top: 26px !important;
    display: grid;
    gap: 14px;
}

.wh-checks li {
    position: relative;
    padding-left: 32px;
    color: #e6e2ee;
    font-size: 16.5px;
}

.wh-checks li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: .45em;
    width: 16px;
    height: 9px;
    border-left: 2px solid var(--wh-gold);
    border-bottom: 2px solid var(--wh-gold);
    transform: rotate(-45deg);
}

.wh-checks strong {
    color: #fff;
}

/* ── Ficha de red ── */
.wh-band {
    background: #151216;
    border-top: 1px solid var(--wh-line);
    border-bottom: 1px solid var(--wh-line);
}

.wh-id {
    margin-top: 30px;
    border: 1px solid var(--wh-line);
    border-radius: 14px;
    background: var(--wh-surface);
    overflow: hidden;
}

.wh-id__row {
    display: grid;
    grid-template-columns: 42% 1fr;
    gap: 16px;
    padding: 14px 20px;
    font-size: 15.5px;
}

.wh-id__row + .wh-id__row {
    border-top: 1px solid var(--wh-line);
}

.wh-id__row span:first-child {
    color: var(--wh-muted);
}

.wh-id__row span:last-child {
    font-weight: 700;
    color: #fff;
}

/* ── Diagrama: cómo se conecta ── */
.wh-flow {
    display: grid;
    grid-template-columns: 1fr auto 1.15fr auto 1fr;
    align-items: stretch;
    gap: 14px;
    margin-top: 48px;
}

.wh-node {
    padding: 24px 22px;
    border: 1px solid var(--wh-line);
    border-radius: 14px;
    background: var(--wh-surface);
}

.wh-node--core {
    background: linear-gradient(160deg, #2c2748 0%, #1c181d 70%);
    border-color: rgba(167, 157, 240, .5);
}

.wh-node__tag {
    display: block;
    margin-bottom: 10px;
    color: var(--wh-accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.wh-node h3 {
    font-size: 19px;
}

.wh-node p {
    margin-top: 8px;
    font-size: 15px;
}

.wh-node__stack {
    display: grid;
    gap: 14px;
}

.wh-arrow {
    align-self: center;
    width: 34px;
    height: 34px;
    color: var(--wh-accent);
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ── Casos de uso ── */
.wh-uses {
    position: relative;
    isolation: isolate;
    padding: 110px 0;
}

.wh-uses__bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wh-uses::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, #120f12 0%, rgba(18, 15, 18, .35) 28%, rgba(18, 15, 18, .45) 72%, #120f12 100%);
}

.wh-uses__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 44px;
}

.wh-use {
    padding: 22px 22px 24px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 14px;
    background: rgba(18, 15, 18, .72);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.wh-use h3 {
    font-size: 18px;
}

.wh-use p {
    margin-top: 6px;
    font-size: 15px;
    color: #d3cee0;
}

/* ── Pasos ── */
.wh-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 48px;
    counter-reset: wh-step;
}

.wh-step {
    counter-increment: wh-step;
    padding-top: 22px;
    border-top: 2px solid var(--wh-purple);
}

.wh-step::before {
    content: counter(wh-step, decimal-leading-zero);
    display: block;
    margin-bottom: 10px;
    color: var(--wh-accent);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .1em;
}

.wh-step h3 {
    font-size: 20px;
}

.wh-step p {
    margin-top: 8px;
    font-size: 15.5px;
}

/* ── Contacto ── */
.wh-contact {
    position: relative;
    isolation: isolate;
    padding: 110px 0;
    scroll-margin-top: 68px;
}

.wh-contact__bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 70% 60%;
    opacity: .9;
}

.wh-contact__grid {
    display: grid;
    grid-template-columns: 1fr minmax(0, 520px);
    gap: 64px;
    align-items: start;
}

.wh-contact__alt {
    margin-top: 28px !important;
    font-size: 15.5px;
}

.wh-contact__alt a {
    color: #fff;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.wh-form {
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 16px;
    background: rgba(18, 15, 18, .86);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.wh-form h3 {
    font-size: 22px;
}

.wh-form form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 22px;
}

.wh-field {
    display: grid;
    gap: 6px;
}

.wh-field--full {
    grid-column: 1 / -1;
}

.wh-field label {
    margin: 0;
    color: #dcd7e6;
    font-size: 13.5px;
    font-weight: 700;
}

.wh-field input,
.wh-field textarea {
    width: 100%;
    margin: 0;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 8px;
    background: #fff;
    color: #120f12;
    font-family: inherit;
    font-size: 16px;
    line-height: 1.4;
}

.wh-field input {
    height: 48px;
}

.wh-field textarea {
    min-height: 120px;
    resize: vertical;
}

.wh-form button[type="submit"] {
    grid-column: 1 / -1;
    width: 100%;
    margin-top: 4px;
    border: 0;
}

.wh-form button[disabled] {
    opacity: .6;
    cursor: progress;
}

.wh-form__note {
    grid-column: 1 / -1;
    font-size: 13px !important;
    line-height: 1.5;
}

.wh-form__note a {
    text-decoration: underline;
}

.wh-msg p {
    margin-top: 12px;
    font-size: 17px;
    color: #e6e2ee;
}

.wh-msg .wh-btn {
    margin-top: 24px;
}

/* ───────── Tablet ───────── */
@media (max-width: 991.98px) {
    .wh-section {
        padding: 72px 0;
    }

    .wh-hero {
        min-height: 0;
        padding: 88px 0 80px;
    }

    .wh-hero::after {
        background: linear-gradient(90deg, #120f12 0%, rgba(18, 15, 18, .8) 50%, rgba(18, 15, 18, .25) 100%),
            linear-gradient(0deg, #120f12 0%, rgba(18, 15, 18, 0) 22%);
    }

    .wh-creds ul {
        grid-template-columns: 1fr 1fr;
    }

    .wh-creds li:nth-child(3) {
        border-left: 0;
    }

    .wh-creds li:nth-child(n+3) {
        border-top: 1px solid var(--wh-line);
    }

    .wh-cards {
        grid-template-columns: 1fr 1fr;
    }

    .wh-split,
    .wh-contact__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .wh-split--flip .wh-split__media {
        order: 0;
    }

    .wh-split__media img {
        aspect-ratio: 16 / 9;
    }

    .wh-flow {
        grid-template-columns: 1fr;
    }

    .wh-arrow {
        justify-self: center;
        transform: rotate(90deg);
    }

    .wh-uses,
    .wh-contact {
        padding: 80px 0;
    }

    .wh-uses__grid {
        grid-template-columns: 1fr 1fr;
    }

    .wh-contact {
        scroll-margin-top: 60px;
    }
}

/* ───────── Móvil ───────── */
@media (max-width: 599.98px) {
    .wh {
        font-size: 16px;
    }

    .wh-wrap {
        padding: 0 16px;
    }

    .wh-section {
        padding: 56px 0;
    }

    .wh-hero {
        padding: 56px 0 64px;
    }

    .wh-hero__bg {
        object-position: 70% 50%;
        opacity: .55;
    }

    .wh-hero::after {
        background: linear-gradient(0deg, #120f12 0%, rgba(18, 15, 18, .55) 45%, rgba(18, 15, 18, .7) 100%);
    }

    .wh-hero__cta .wh-btn {
        width: 100%;
    }

    .wh-creds ul {
        grid-template-columns: 1fr;
    }

    .wh-creds li {
        padding: 18px 4px;
        border-left: 0 !important;
    }

    .wh-creds li + li {
        border-top: 1px solid var(--wh-line);
    }

    .wh-cards,
    .wh-uses__grid,
    .wh-steps {
        grid-template-columns: 1fr;
    }

    .wh-cards {
        margin-top: 32px;
    }

    .wh-id__row {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    .wh-uses,
    .wh-contact {
        padding: 60px 0;
    }

    .wh-form {
        padding: 22px 18px;
    }

    .wh-form form {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wh * {
        transition: none !important;
    }
}

/* ───────── Componentes adicionales (Internet Seguro SD-WAN) ───────── */
.wh-wrap--narrow {
    max-width: 860px;
}

.wh-cards--3 {
    grid-template-columns: repeat(3, 1fr);
}

.wh-checks--2 {
    grid-template-columns: 1fr 1fr;
    column-gap: 24px;
}

.wh-split + .wh-flow {
    margin-top: 72px;
}

/* Comparativo */
.wh-compare {
    margin-top: 44px;
    border: 1px solid var(--wh-line);
    border-radius: 14px;
    background: var(--wh-surface);
    overflow: hidden;
}

.wh-compare__row {
    display: grid;
    grid-template-columns: 24% 1fr 1fr;
}

.wh-compare__row + .wh-compare__row {
    border-top: 1px solid var(--wh-line);
}

.wh-compare__row > span {
    padding: 16px 20px;
    font-size: 16px;
    line-height: 1.4;
    color: var(--wh-muted);
}

.wh-compare__row > span:first-child {
    color: #fff;
    font-weight: 700;
}

.wh-compare__row > span:last-child {
    color: #fff;
    background: rgba(167, 157, 240, .1);
    border-left: 1px solid rgba(167, 157, 240, .35);
}

.wh-compare__head > span {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.wh-compare__head > span:last-child {
    color: var(--wh-accent);
}

/* Preguntas frecuentes */
.wh-faq {
    margin-top: 36px;
    border-top: 1px solid var(--wh-line);
}

.wh-faq details {
    border-bottom: 1px solid var(--wh-line);
}

.wh-faq summary {
    position: relative;
    padding: 20px 40px 20px 0;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    cursor: pointer;
    list-style: none;
}

.wh-faq summary::-webkit-details-marker {
    display: none;
}

.wh-faq summary::after {
    content: "";
    position: absolute;
    right: 8px;
    top: 26px;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--wh-accent);
    border-bottom: 2px solid var(--wh-accent);
    transform: rotate(45deg);
    transition: transform .2s ease;
}

.wh-faq details[open] summary::after {
    transform: rotate(-135deg);
    top: 30px;
}

.wh-faq summary:focus-visible {
    outline: 2px solid var(--wh-accent);
    outline-offset: 2px;
}

.wh-faq details p {
    max-width: 70ch;
    padding: 0 0 22px;
    font-size: 16.5px;
}

/* Select del formulario y nota legal */
.wh-field select {
    width: 100%;
    height: 48px;
    margin: 0;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 8px;
    background-color: #fff;
    color: #120f12;
    font-family: inherit;
    font-size: 16px;
}

.wh-legal {
    margin-top: 48px !important;
    font-size: 12.5px;
    color: #8e889b !important;
}

@media (max-width: 991.98px) {
    .wh-cards--3 {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 599.98px) {
    .wh-cards--3,
    .wh-checks--2 {
        grid-template-columns: 1fr;
    }

    .wh-split + .wh-flow {
        margin-top: 48px;
    }

    /* El comparativo se apila: cada fila es una tarjeta con sus dos respuestas etiquetadas */
    .wh-compare__head {
        display: none;
    }

    .wh-compare__row {
        grid-template-columns: 1fr;
    }

    .wh-compare__row > span {
        padding: 10px 16px;
    }

    .wh-compare__row > span:first-child {
        padding-top: 16px;
    }

    .wh-compare__row > span:nth-child(2)::before {
        content: "Internet común: ";
        font-weight: 700;
    }

    .wh-compare__row > span:last-child {
        border-left: 0;
        padding-bottom: 16px;
    }

    .wh-compare__row > span:last-child::before {
        content: "Internet Seguro: ";
        color: var(--wh-accent);
        font-weight: 700;
    }
}

/* Hero con la ilustración recorrida a la derecha (deja libre la columna de texto) */
@media (min-width: 992px) {
    .wh-hero--art-right .wh-hero__bg {
        inset: 0 0 0 auto;
        width: 72%;
        object-position: 50% 50%;
        /* funde los bordes izquierdo e inferior de la imagen con el fondo */
        -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 30%), linear-gradient(0deg, transparent 0%, #000 26%);
        mask-image: linear-gradient(90deg, transparent 0%, #000 30%), linear-gradient(0deg, transparent 0%, #000 26%);
        -webkit-mask-composite: source-in;
        mask-composite: intersect;
    }

    .wh-hero--art-right::after {
        background: linear-gradient(90deg, #120f12 0%, #120f12 28%, rgba(18, 15, 18, 0) 52%),
            linear-gradient(0deg, #120f12 0%, rgba(18, 15, 18, 0) 22%);
    }

    .wh-hero--art-right .wh-hero__copy {
        max-width: 500px;
    }
}

/* Las imágenes de fondo llenan siempre su sección (gana a la regla general `.wh img { height: auto }`) */
.wh .wh-hero__bg,
.wh .wh-uses__bg,
.wh .wh-contact__bg {
    height: 100%;
    max-width: none;
}
