/**
 * Home — Qué entregamos al concretar tu proyecto
 */

body.page-home .cw-home-deliver {
    --deliver-accent: #00f3ff;
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
}

body.page-home .cw-home-deliver__head {
    text-align: center;
    max-width: min(100%, 58rem);
    margin: 0 auto clamp(1.5rem, 3vw, 2.25rem);
}

/* Misma jerarquía que servicios: eyebrow → título → subtítulo */
body.page-home .cw-home-deliver__eyebrow {
    display: block;
    width: fit-content;
    margin: 0 auto 0.65rem;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(0, 243, 255, 0.9);
}

body.page-home .cw-home-deliver__tagline {
    display: none;
}

body.page-home .cw-home-deliver__title {
    font-family: 'Poiret One', sans-serif;
    font-size: clamp(1.55rem, 3.2vw, 2.55rem);
    font-weight: 400;
    line-height: 1.28;
    letter-spacing: 1.5px;
    text-align: center;
    margin: 0 auto 0.85rem;
    padding-block: 0.05em 0.15em;
    padding-inline: 0.35rem;
    max-width: 100%;
    box-sizing: border-box;
    overflow: visible;
    white-space: normal;
    text-wrap: balance;
    overflow-wrap: anywhere;
    word-break: normal;
    background: linear-gradient(135deg, var(--neon-blue, #00f3ff), var(--neon-purple, #b967ff), var(--matrix-green, #00ff9d));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Desktop: permitir 2 líneas si el título EN es largo (antes nowrap lo cortaba) */
@media (min-width: 900px) {
    body.page-home .cw-home-deliver__head {
        max-width: min(100%, 64rem);
    }

    body.page-home .cw-home-deliver__title {
        white-space: normal;
        text-wrap: balance;
        letter-spacing: 1.25px;
        font-size: clamp(1.75rem, 2.35vw, 2.45rem);
        line-height: 1.3;
    }
}

body.page-home .cw-home-deliver__lead {
    margin: 0 auto 1.35rem;
    max-width: 42rem;
    font-size: clamp(1rem, 1.25vw, 1.12rem);
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.72);
    text-align: center;
}

body.page-home .cw-home-deliver__summary {
    list-style: none;
    margin: 0 auto;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.55rem;
    max-width: 52rem;
}

body.page-home .cw-home-deliver__summary li {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 72px;
    padding: 0.65rem 0.5rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.045) 0%, rgba(255, 255, 255, 0.015) 100%);
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
    color: rgba(255, 255, 255, 0.88);
    transition: border-color 0.22s ease, background 0.22s ease;
}

body.page-home .cw-home-deliver__summary li i {
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border-radius: 10px;
    font-size: 0.82rem;
    color: var(--neon-blue, #00f3ff);
    border: 1px solid rgba(0, 243, 255, 0.22);
    background: rgba(0, 243, 255, 0.08);
}

body.page-home .cw-home-deliver__summary li:nth-child(2) i {
    color: var(--matrix-green, #00ff9d);
    border-color: rgba(0, 255, 157, 0.24);
    background: rgba(0, 255, 157, 0.08);
}

body.page-home .cw-home-deliver__summary li:nth-child(3) i {
    color: var(--neon-purple, #b967ff);
    border-color: rgba(185, 103, 255, 0.28);
    background: rgba(185, 103, 255, 0.09);
}

body.page-home .cw-home-deliver__summary li:nth-child(4) i {
    color: var(--neon-blue, #00f3ff);
    border-color: rgba(0, 243, 255, 0.22);
    background: rgba(0, 243, 255, 0.08);
}

@media (prefers-reduced-motion: no-preference) {
    body.page-home .cw-home-deliver__summary li:hover {
        border-color: rgba(0, 243, 255, 0.28);
        background: linear-gradient(160deg, rgba(0, 243, 255, 0.07) 0%, rgba(255, 255, 255, 0.02) 100%);
    }
}

body.page-home .cw-home-deliver__grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(0.75rem, 1.5vw, 1.1rem);
}

body.page-home .cw-home-deliver__item {
    --deliver-accent: #00f3ff;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.055) 0%, rgba(255, 255, 255, 0.018) 100%);
    box-shadow:
        0 10px 28px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    overflow: hidden;
    isolation: isolate;
    transition: border-color 0.28s ease, box-shadow 0.28s ease, transform 0.28s ease;
}

body.page-home .cw-home-deliver__item--keys { --deliver-accent: #00f3ff; }
body.page-home .cw-home-deliver__item--code { --deliver-accent: #00ff9d; }
body.page-home .cw-home-deliver__item--ip { --deliver-accent: #b967ff; }
body.page-home .cw-home-deliver__item--shield { --deliver-accent: #6c8cff; }

body.page-home .cw-home-deliver__item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--deliver-accent),
        color-mix(in srgb, var(--deliver-accent) 55%, #ffffff)
    );
    opacity: 0.92;
    z-index: 2;
}

body.page-home .cw-home-deliver__glow {
    position: absolute;
    top: -38%;
    right: -16%;
    width: 9rem;
    height: 9rem;
    border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--deliver-accent) 26%, transparent) 0%, transparent 68%);
    pointer-events: none;
    z-index: 0;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

body.page-home .cw-home-deliver__body {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7rem;
    flex: 1 1 auto;
    min-height: 0;
    padding: 1.2rem 1.15rem 1.15rem;
}

@media (prefers-reduced-motion: no-preference) {
    body.page-home .cw-home-deliver__item:hover {
        transform: translateY(-4px);
        border-color: color-mix(in srgb, var(--deliver-accent) 38%, rgba(255, 255, 255, 0.14));
        box-shadow:
            0 18px 42px color-mix(in srgb, var(--deliver-accent) 12%, rgba(0, 0, 0, 0.35)),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }

    body.page-home .cw-home-deliver__item:hover .cw-home-deliver__glow {
        transform: scale(1.12);
    }

    body.page-home .cw-home-deliver__item:hover .cw-home-deliver__icon {
        transform: scale(1.06);
        box-shadow: 0 0 26px color-mix(in srgb, var(--deliver-accent) 32%, transparent);
    }
}

body.page-home .cw-home-deliver__title-row {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    width: 100%;
    min-width: 0;
}

body.page-home .cw-home-deliver__index {
    font-family: 'Poiret One', sans-serif;
    font-size: 1.1rem;
    letter-spacing: 0.06em;
    color: color-mix(in srgb, var(--deliver-accent) 78%, #ffffff);
    line-height: 1;
    min-width: 1.55rem;
    flex-shrink: 0;
}

body.page-home .cw-home-deliver__icon {
    width: clamp(2.35rem, 4vw, 2.75rem);
    height: clamp(2.35rem, 4vw, 2.75rem);
    display: grid;
    place-items: center;
    border-radius: 14px;
    border: 1px solid color-mix(in srgb, var(--deliver-accent) 32%, rgba(255, 255, 255, 0.1));
    background: color-mix(in srgb, var(--deliver-accent) 14%, rgba(255, 255, 255, 0.04));
    color: var(--deliver-accent);
    font-size: 0.95rem;
    flex-shrink: 0;
    box-shadow: 0 0 20px color-mix(in srgb, var(--deliver-accent) 18%, transparent);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

body.page-home .cw-home-deliver__heading {
    min-width: 0;
    flex: 1 1 auto;
}

body.page-home .cw-home-deliver__label {
    display: inline-flex;
    margin-bottom: 0.22rem;
    padding: 0.18rem 0.45rem;
    border-radius: 999px;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--deliver-accent) 82%, #ffffff);
    border: 1px solid color-mix(in srgb, var(--deliver-accent) 28%, transparent);
    background: color-mix(in srgb, var(--deliver-accent) 10%, rgba(255, 255, 255, 0.03));
}

body.page-home .cw-home-deliver__title-row h3 {
    margin: 0;
    font-size: clamp(1rem, 1.1vw, 1.12rem);
    font-weight: 700;
    line-height: 1.28;
    color: rgba(255, 255, 255, 0.96);
}

body.page-home .cw-home-deliver__body > p {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.58;
    color: rgba(255, 255, 255, 0.72);
}

body.page-home .cw-home-deliver .cw-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: auto;
    padding: 0.55rem 0.9rem;
    min-height: 44px;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--deliver-accent) 30%, rgba(255, 255, 255, 0.12));
    background: color-mix(in srgb, var(--deliver-accent) 10%, rgba(255, 255, 255, 0.03));
    font-size: 0.8125rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none !important;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

body.page-home .cw-home-deliver .cw-chip i {
    color: var(--deliver-accent);
}

body.page-home .cw-home-deliver .cw-chip:hover {
    color: #fff;
    border-color: color-mix(in srgb, var(--deliver-accent) 48%, rgba(255, 255, 255, 0.16));
    background: color-mix(in srgb, var(--deliver-accent) 18%, rgba(255, 255, 255, 0.05));
    box-shadow: 0 8px 22px color-mix(in srgb, var(--deliver-accent) 16%, transparent);
}

body.page-home .cw-home-deliver .cw-chip:focus-visible {
    outline: 2px solid var(--deliver-accent);
    outline-offset: 3px;
}

body.page-home .cw-home-deliver__actions {
    display: flex;
    justify-content: center;
    margin-top: clamp(1.35rem, 2.5vw, 2rem);
    padding-top: 0.25rem;
}

body.page-home .cw-home-deliver__cta.modern-button {
    width: auto;
    min-width: min(100%, 300px);
    min-height: 48px;
    padding: 0.85rem 1.35rem;
    border-radius: 14px;
    border: 1px solid rgba(0, 243, 255, 0.32);
    background: linear-gradient(135deg, rgba(0, 243, 255, 0.14) 0%, rgba(185, 103, 255, 0.1) 100%);
    box-shadow: 0 10px 28px rgba(0, 243, 255, 0.12);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

body.page-home .cw-home-deliver__cta.modern-button:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 243, 255, 0.48);
    box-shadow: 0 14px 34px rgba(0, 243, 255, 0.18);
}

body.page-home .cw-home-deliver__cta.modern-button:focus-visible {
    outline: 2px solid var(--neon-blue, #00f3ff);
    outline-offset: 3px;
}

@media (prefers-contrast: more) {
    body.page-home .cw-home-deliver__title {
        color: #fff;
        background: none;
        -webkit-background-clip: unset;
        background-clip: unset;
    }

    body.page-home .cw-home-deliver__item,
    body.page-home .cw-home-deliver__summary li {
        border-color: rgba(255, 255, 255, 0.35);
    }
}

@media (max-width: 900px) {
    body.page-home .cw-home-deliver__summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    body.page-home .cw-home-deliver {
        padding: 0;
    }

    body.page-home .cw-home-deliver__head {
        max-width: none;
        margin: 0 0 1.35rem;
    }

    body.page-home .cw-home-deliver__eyebrow {
        margin-bottom: 0.55rem;
        font-size: 0.64rem;
    }

    body.page-home .cw-home-deliver__tagline {
        margin-bottom: 0.65rem;
        font-size: 0.84rem;
        max-width: none;
    }

    body.page-home .cw-home-deliver__title {
        font-size: var(--cw-title-section);
        letter-spacing: 1px;
        line-height: 1.24;
        margin-bottom: 0.65rem;
    }

    body.page-home .cw-home-deliver__lead {
        font-size: 0.9375rem;
        line-height: 1.6;
        max-width: none;
        color: rgba(255, 255, 255, 0.78);
        margin-bottom: 1rem;
    }

    body.page-home .cw-home-deliver__summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.5rem;
        max-width: none;
    }

    body.page-home .cw-home-deliver__summary li {
        min-height: 68px;
        padding: 0.55rem 0.45rem;
        font-size: 0.72rem;
        border-radius: 12px;
    }

    body.page-home .cw-home-deliver__summary li i {
        width: 1.75rem;
        height: 1.75rem;
        font-size: 0.76rem;
        border-radius: 9px;
    }

    body.page-home .cw-home-deliver__grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    body.page-home .cw-home-deliver__item {
        border-radius: 16px;
        transform: none;
    }

    body.page-home .cw-home-deliver__item:hover {
        transform: none;
    }

    body.page-home .cw-home-deliver__body {
        padding: 1rem 0.95rem 0.95rem;
        gap: 0.55rem;
    }

    body.page-home .cw-home-deliver__title-row {
        gap: 0.55rem;
    }

    body.page-home .cw-home-deliver__index {
        font-size: 1rem;
        min-width: 1.4rem;
    }

    body.page-home .cw-home-deliver__icon {
        width: 2.25rem;
        height: 2.25rem;
        border-radius: 12px;
        font-size: 0.88rem;
    }

    body.page-home .cw-home-deliver__title-row h3 {
        font-size: 1.02rem;
    }

    body.page-home .cw-home-deliver__body > p {
        font-size: 0.875rem;
        line-height: 1.52;
    }

    body.page-home .cw-home-deliver .cw-chip {
        width: 100%;
        justify-content: center;
        padding: 0.5rem 0.75rem;
        font-size: 0.78rem;
    }

    body.page-home .cw-home-deliver__actions {
        margin-top: 1.25rem;
    }

    body.page-home .cw-home-deliver__cta.modern-button {
        width: 100%;
        min-width: 0;
        justify-content: center;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    body.page-home .cw-home-deliver__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1025px) {
    body.page-home .cw-home-deliver__grid {
        gap: 1.1rem;
    }

    body.page-home .cw-home-deliver__body {
        padding: 1.35rem 1.25rem 1.2rem;
    }
}
