/* ═══════════════════════════════════════════════════════════════
   /servicios/web — hero "Tu web, en primera página" (oct 2026)
   Mismo lenguaje que el hero del inicio: foto de Marbella de día con velo
   azul marino a la izquierda y texto blanco. A la derecha, la web real de
   un cliente (Fantastic Gardens) en portátil + móvil y dos tarjetas:
   resultado de Google (ilustrativo) y PageSpeed 81 → 87 (dato real de su
   ficha de portafolio). Solo se carga en esta plantilla. Base = móvil.
   ═══════════════════════════════════════════════════════════════ */
.hero.ws-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "copy" "stage";
    align-items: center;
    column-gap: clamp(32px, 4vw, 72px);
    min-height: 0;
    padding: calc(var(--header-h) + 16px) 18px 56px;
    overflow-x: clip;
    background: #0b1f45;
}

.hero.ws-hero::before { content: none; }

.hero.ws-hero::after {
    height: 100%;
    background: radial-gradient(60% 34% at 50% 82%, rgba(7, 87, 248, 0.26), transparent 70%);
}

/* Fondo: <img> responsive en capa propia (zoom lento sin salirse) */
.ws-hero-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
}

.ws-hero-bg img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: 72% 30%;
    animation: ws-kenburns 32s ease-in-out infinite alternate;
    transform-origin: 70% 40%;
    will-change: transform;
}

.ws-hero-bg::after {
    content: '';
    position: absolute;
    z-index: 1;
    inset: 0;
    background: linear-gradient(180deg, rgba(9, 26, 60, 0.88) 0%, rgba(9, 26, 60, 0.80) 48%, rgba(9, 26, 60, 0.36) 72%, rgba(9, 26, 60, 0.55) 100%);
}

@keyframes ws-kenburns {
    from { transform: scale(1); }
    to   { transform: scale(1.08); }
}

/* ── Copy ── */
.ws-hero .hero-copy {
    grid-area: copy;
    width: 100%;
    max-width: 600px;
    margin: 0;
    padding: 0;
    text-shadow: 0 2px 18px rgba(4, 14, 36, 0.35);
}

.ws-hero .eyebrow {
    min-height: 0;
    margin-bottom: 14px;
    padding: 6px 11px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
    box-shadow: none;
    color: #dbe8ff;
    font-size: 9.5px;
    letter-spacing: 0.03em;
    line-height: 1.35;
    text-shadow: none;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.ws-hero h1 {
    color: #fff;
    font-size: clamp(33px, 9.4vw, 64px);
    line-height: 1;
}

.ws-hero .h1-grad {
    background:
        linear-gradient(115deg, rgba(255,255,255,0) 42%, rgba(255,255,255,0.95) 50%, rgba(255,255,255,0) 58%) no-repeat,
        linear-gradient(100deg, #5b97ff 5%, #8dbaff 55%, #c3dbff 95%);
    background-size: 240% 100%, 100% 100%;
    background-position: -140% 0, 0 0;
    -webkit-background-clip: text;
    background-clip: text;
    text-shadow: none;
}

.ws-hero .lead {
    max-width: 540px;
    margin-top: 14px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 15.5px;
}

.ws-hero .lead strong { color: #fff; }

.ws-hero .hero-benefits {
    display: grid;
    gap: 7px;
    margin-top: 16px;
}

.ws-hero .hero-benefits li {
    color: #fff;
    font-size: 13.5px;
    font-weight: 600;
}

.ws-hero .hero-benefits svg { width: 18px; height: 18px; }

.ws-hero .hero-ctas {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    margin-top: 20px;
}

.ws-hero .hero-ctas .btn {
    width: auto;
    min-height: 50px;
    padding-inline: 11px;
    font-size: 14px;
    letter-spacing: -0.01em;
    white-space: nowrap;
    text-shadow: none;
}

.ws-hero .btn-soft {
    border-color: rgba(255, 255, 255, 0.32);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.ws-hero .btn-soft:hover { background: rgba(255, 255, 255, 0.2); }

/* Precio ancla: chip de cristal */
.ws-hero .price-anchor {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 6px;
    width: fit-content;
    margin: 14px auto 0;
    padding: 8px 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
    color: rgba(255, 255, 255, 0.86);
    font-size: 13.5px;
    font-weight: 600;
    text-shadow: none;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.ws-hero .price-anchor strong { color: #fff; font-size: 17px; font-weight: 800; }

.ws-hero .price-guide-link {
    display: block;
    margin-top: 10px;
    color: #9cc2ff;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ws-hero .price-guide-link:hover { color: #fff; }

/* ═══ Escenario: portátil + móvil + tarjetas ═══ */
.ws-stage {
    grid-area: stage;
    position: relative;
    width: 100%;
    max-width: 640px;
    margin: 34px auto 0;
    padding: 0 6% 7% 0;
}

/* Portátil */
.ws-laptop { position: relative; }

.ws-laptop-screen {
    position: relative;
    aspect-ratio: 16 / 10.4;
    overflow: hidden;
    border: 6px solid #0b0e15;
    border-bottom-width: 9px;
    border-radius: 12px 12px 4px 4px;
    background: #f6f2ea;
    box-shadow:
        0 0 0 1px #3a4152,
        0 30px 60px rgba(2, 8, 22, 0.55),
        0 0 70px rgba(7, 87, 248, 0.22);
}

/* Reflejo del cristal */
.ws-laptop-screen::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 3;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0) 38%);
    pointer-events: none;
}

.ws-browser {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 4px;
    height: 7.5%;
    min-height: 16px;
    padding: 0 8px;
    background: #eceef2;
    border-bottom: 1px solid #dde0e6;
}

.ws-browser i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ff5f57;
}

.ws-browser i:nth-child(2) { background: #febc2e; }
.ws-browser i:nth-child(3) { background: #28c840; }

.ws-browser span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 0 auto;
    padding: 2px 12px;
    border-radius: 6px;
    background: #fff;
    color: #3d4350;
    font-size: clamp(8px, 1.4vw, 11px);
    font-weight: 600;
}

.ws-browser svg { width: 9px; height: 9px; color: #8b93a3; }

.ws-page {
    position: absolute;
    top: 7.5%;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

.ws-page img,
.ws-phone-screen img {
    width: 100%;
    max-width: none;
    height: auto;
    animation: ws-scroll 16s cubic-bezier(0.45, 0, 0.25, 1) infinite;
}

/* Base del portátil */
.ws-laptop-base {
    position: relative;
    left: -7%;
    width: 114%;
    height: clamp(8px, 1.6vw, 14px);
    border-radius: 2px 2px 12px 12px;
    background: linear-gradient(180deg, #d9dde5 0%, #a9b0bd 55%, #6f7787 100%);
    box-shadow: 0 18px 30px rgba(2, 8, 22, 0.45);
}

.ws-laptop-base::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 16%;
    height: 45%;
    border-radius: 0 0 8px 8px;
    background: rgba(0, 0, 0, 0.18);
    transform: translateX(-50%);
}

/* Móvil: bisel negro fino con canto metálico oscuro. El radio interior =
   exterior − grosor, así no quedan esquinas de otro color. */
.ws-phone {
    --ph-r: clamp(16px, 3.4vw, 30px);
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 2;
    width: 25%;
    aspect-ratio: 9 / 19.2;
    padding: 4px;
    border-radius: var(--ph-r);
    background: #07090e;
    box-shadow:
        0 0 0 1.5px #4b5366,
        0 0 0 3px #1c222e,
        0 26px 50px rgba(2, 8, 22, 0.55);
}

/* Isla dinámica */
.ws-phone::before {
    content: '';
    position: absolute;
    z-index: 3;
    top: 3.6%;
    left: 50%;
    width: 28%;
    height: 2.8%;
    border-radius: 999px;
    background: #000;
    transform: translateX(-50%);
}

/* Reflejo del cristal */
.ws-phone::after {
    content: '';
    position: absolute;
    z-index: 3;
    inset: 4px;
    border-radius: calc(var(--ph-r) - 4px);
    background: linear-gradient(125deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 40%);
    pointer-events: none;
}

.ws-phone-screen {
    position: relative;
    height: 100%;
    overflow: hidden;
    border-radius: calc(var(--ph-r) - 4px);
    background: #1b1712;
}

.ws-phone-screen img { animation-delay: -4s; }

@keyframes ws-scroll {
    0%, 12%   { transform: translateY(0); }
    45%, 60%  { transform: translateY(-34%); }
    92%, 100% { transform: translateY(0); }
}

/* Tarjetas flotantes */
.ws-card {
    position: absolute;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 12px 9px 9px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 40px rgba(2, 8, 22, 0.35);
    color: #1f2329;
    line-height: 1.2;
    opacity: 0;
    animation:
        ws-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards,
        ws-float 6s ease-in-out infinite;
}

.ws-card--serp {
    top: 14%;
    left: -2%;
    animation-delay: 0.5s, 1.1s;
}

.ws-card--speed {
    bottom: 3%;
    left: 4%;
    animation-delay: 0.9s, 1.5s;
}

.ws-card-body { display: grid; gap: 2px; min-width: 0; }
.ws-card-body small { color: #6b7280; font-size: 10px; font-weight: 600; }
.ws-card-body strong { color: #0d1117; font-size: 13px; font-weight: 780; letter-spacing: -0.01em; }
.ws-card--serp .ws-card-body strong { color: #1a47c2; }
.ws-card-note { color: #6b7280; font-size: 10px; }

.ws-lead-ico {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 11px;
    background: linear-gradient(135deg, #22c55e, #12a150);
    box-shadow: 0 6px 14px rgba(18, 161, 80, 0.35);
    color: #fff;
}

.ws-lead-ico svg { width: 18px; height: 18px; }

.ws-g {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 1px #e3e6ec;
    color: #4285f4;
    font-size: 15px;
    font-weight: 800;
}

.ws-stars { color: #f5a623; font-size: 9.5px; letter-spacing: 0.05em; }
.ws-stars em { margin-left: 4px; color: #188038; font-style: normal; font-weight: 700; letter-spacing: 0; }

.ws-rank {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #4d8dff);
    box-shadow: 0 6px 14px rgba(7, 87, 248, 0.4);
    color: #fff;
    font-size: 11px;
    font-style: normal;
    font-weight: 800;
}

/* Medidor de PageSpeed: el arco sube de 81 a 87 al entrar */
.ws-gauge {
    position: relative;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 38px;
    height: 38px;
}

.ws-gauge svg { position: absolute; inset: 0; }

.ws-gauge b {
    color: #0a8a4a;
    font-size: 12.5px;
    font-weight: 800;
}

.ws-gauge-arc { animation: ws-gauge 1.4s cubic-bezier(0.45, 0, 0.25, 1) 1.2s both; }

@keyframes ws-gauge {
    from { stroke-dasharray: 81 100; }
    to   { stroke-dasharray: 87 100; }
}

@keyframes ws-pop {
    from { opacity: 0; transform: translateY(10px) scale(0.92); }
    to   { opacity: 1; transform: none; }
}

@keyframes ws-float {
    0%, 100% { translate: 0 0; }
    50%      { translate: 0 -6px; }
}

@media (prefers-reduced-motion: reduce) {
    .ws-hero-bg img,
    .ws-page img,
    .ws-phone-screen img,
    .ws-hero .h1-grad,
    .ws-gauge-arc { animation: none; }
    .ws-card { opacity: 1; animation: none; }
}

/* Teléfonos muy estrechos: los dos botones no caben en fila */
@media (max-width: 379px) {
    .ws-hero .hero-ctas { grid-template-columns: minmax(0, 1fr); }
}

/* ── Tablet ── */
@media (min-width: 641px) {
    .hero.ws-hero { padding: calc(var(--header-h) + 40px) 40px 72px; }

    .ws-hero .eyebrow { padding: 7px 14px; font-size: 11.5px; }

    .ws-hero .lead { font-size: clamp(16.5px, 1.3vw, 19px); }

    .ws-hero .hero-benefits {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        margin-top: 22px;
    }

    .ws-hero .hero-benefits li {
        gap: 8px;
        padding: 7px 14px 7px 8px;
        border: 1px solid rgba(255, 255, 255, 0.16);
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.07);
        font-size: 13.5px;
        text-shadow: none;
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }

    .ws-hero .hero-ctas { display: flex; gap: 12px; margin-top: 26px; }
    .ws-hero .hero-ctas .btn { padding-inline: 24px; font-size: 15px; }

    .ws-hero .price-anchor { margin: 18px 0 0; }
    .ws-hero .price-guide-link { text-align: left; }

    .ws-card { padding: 11px 15px 11px 11px; gap: 11px; }
    .ws-card-body small { font-size: 11px; }
    .ws-card-body strong { font-size: 15px; }
    .ws-card-note { font-size: 11px; }
    .ws-gauge { width: 46px; height: 46px; }
    .ws-gauge b { font-size: 14px; }
    .ws-g { width: 32px; height: 32px; font-size: 17px; }
    .ws-rank { width: 34px; height: 34px; font-size: 12px; }
}

/* ── Escritorio: copy | escenario ── */
@media (min-width: 1024px) {
    .hero.ws-hero {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
        grid-template-areas: "copy stage";
        min-height: 780px;
        padding: calc(var(--header-h) + 40px) max(40px, calc((100% - var(--max-content)) / 2)) 80px;
    }

    .ws-hero-bg img { object-position: center 45%; }

    .ws-hero-bg::after {
        background:
            linear-gradient(90deg, rgba(9, 26, 60, 0.93) 0%, rgba(9, 26, 60, 0.82) 36%, rgba(9, 26, 60, 0.40) 58%, rgba(9, 26, 60, 0.10) 80%, rgba(9, 26, 60, 0.16) 100%),
            linear-gradient(180deg, rgba(9, 26, 60, 0.45) 0%, rgba(9, 26, 60, 0) 22%, rgba(9, 26, 60, 0) 72%, rgba(9, 26, 60, 0.6) 100%);
    }

    .hero.ws-hero::after { background: radial-gradient(38% 50% at 76% 52%, rgba(7, 87, 248, 0.22), transparent 70%); }

    .ws-hero h1 { font-size: clamp(44px, 3.9vw, 60px); }

    .ws-stage { margin: 0 0 0 auto; }

    .ws-card--serp { top: 10%; left: -9%; }
    .ws-card--speed { bottom: 4%; left: -4%; }
}

/* Rendimiento móvil: sin Ken Burns en pantallas pequeñas. */
@media (max-width: 640px) {
    .ws-hero-bg img { animation: none; will-change: auto; }
}
