/* AsterWeb — propuesta de rediseño, versión 7

   Base de la versión 6 (corte diagonal del logo, cinta métrica, Barlow,
   papel crema) más la esencia de la página original:
   - el cielo estrellado de la portada (Aster = estrella),
   - los círculos punteados que giran alrededor de los iconos,
   - los logos de tecnologías en sus colores.
   La computadora y el celular se ven como dispositivos reales. */

:root{
    --oscuro: #17181b;
    --oscuro-2: #0f1012;
    --papel: #f3efe6;
    --blanco: #fffdf8;
    --tinta: #17181b;
    --gris: #5a5d63;
    --gris-claro: #b7bbc2;
    --cian: #42c9ff;
    --cian-tinta: #052a3a;
    --azul: #0a6ea8;
    --raya: rgba(23, 24, 27, 0.2);
    --raya-clara: rgba(255, 255, 255, 0.2);
    --error: #b42318;

    --corte: 22px;
    --alto-cabecera: 66px;
    --titulos: 'Barlow Semi Condensed', 'Barlow', system-ui, sans-serif;
    --rotulo: 'Barlow Condensed', 'Barlow', system-ui, sans-serif;
}

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

html{ scroll-behavior: smooth; scroll-padding-top: calc(var(--alto-cabecera) + 28px); -webkit-text-size-adjust: 100%; }
body{
    margin: 0;
    background: var(--papel);
    color: var(--tinta);
    font-family: 'Barlow', system-ui, sans-serif;
    font-size: 1.0625rem;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}
img{ display: block; max-width: 100%; height: auto; }
a{ color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol, figure{ margin: 0; }
ul, ol{ padding: 0; list-style: none; }
h1, h2, h3{ font-family: var(--titulos); font-weight: 700; line-height: 1.05; letter-spacing: -0.01em; }

:focus-visible{ outline: 3px solid var(--azul); outline-offset: 3px; }
.inicio :focus-visible, .seccion--oscura :focus-visible, .cabecera :focus-visible, .pie :focus-visible{ outline-color: var(--cian); }

.ancho{ width: min(1180px, 100% - 2.5rem); margin-inline: auto; }

.saltar{ position: absolute; left: 1rem; top: -5rem; z-index: 100; padding: 0.6rem 1rem; background: var(--cian); color: var(--cian-tinta); font-weight: 600; }
.saltar:focus{ top: 1rem; }

.pendiente{ padding: 0 0.4rem; background: #ffe7ad; color: #6b4300; font-size: 0.9em; font-weight: 500; }


/* ---------- Botón y enlaces ---------- */

.btn{
    --c: 11px;
    position: relative; isolation: isolate;
    display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
    min-height: 52px;
    padding: 0.75rem 1.6rem;
    background: none; border: 0;
    color: var(--cian-tinta);
    font-family: var(--titulos); font-size: 1.12rem; font-weight: 600; line-height: 1.1;
    cursor: pointer;
}
.btn::before{
    content: "";
    position: absolute; inset: 0; z-index: -1;
    background: var(--cian);
    clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c));
    transition: background-color 160ms;
}
.btn span::after{ content: "→"; display: inline-block; margin-left: 0.55rem; transition: transform 160ms; }
.btn:hover span::after{ transform: translateX(4px); }
.btn:hover::before{ background: #8adfff; }
.btn--oscuro{ color: var(--blanco); }
.btn--oscuro::before{ background: var(--oscuro); }
.btn--oscuro:hover::before{ background: #303238; }
.btn--chico{ --c: 9px; min-height: 44px; padding: 0.5rem 1.15rem; font-size: 1.02rem; }

.enlace{
    display: inline-flex; align-items: center; gap: 0.4rem;
    min-height: 44px;
    font-family: var(--titulos); font-size: 1.12rem; font-weight: 600;
    border-bottom: 2px solid currentColor;
    padding-top: 2px;
    transition: color 160ms;
}
.enlace:hover{ color: var(--azul); }
.enlace--claro:hover{ color: var(--cian); }
.enlace--fuera::after{ content: "↗"; }


/* ---------- Menú, con cinta métrica debajo ---------- */

.cabecera{ position: sticky; top: 0; z-index: 50; background: var(--oscuro-2); color: var(--blanco); }
.cabecera__fila{ position: relative; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: var(--alto-cabecera); }
.cabecera::after{
    content: "";
    display: block; height: 10px;
    background:
        repeating-linear-gradient(90deg, var(--cian) 0 1px, transparent 1px 50px) left top / 100% 10px no-repeat,
        repeating-linear-gradient(90deg, rgba(66, 201, 255, 0.55) 0 1px, transparent 1px 10px) left top / 100% 5px no-repeat;
    background-color: var(--oscuro-2);
}
.marca img{ width: 78px; }
.menu{ display: flex; gap: clamp(1.1rem, 2.4vw, 2.2rem); }
.menu a{ display: inline-flex; align-items: center; min-height: 44px; font-family: var(--titulos); font-size: 1.08rem; font-weight: 600; transition: color 160ms; }
.menu a:hover{ color: var(--cian); }
.cabecera__acciones{ display: flex; align-items: center; gap: 0.75rem; }
.menu__boton{ display: none; min-height: 44px; padding: 0 0.25rem; background: none; border: 0; border-bottom: 2px solid currentColor; color: var(--blanco); font-family: var(--titulos); font-size: 1.05rem; font-weight: 600; cursor: pointer; }

@media (max-width: 900px){
    .menu__boton{ display: inline-flex; align-items: center; }
    .menu{
        position: absolute; left: -1.25rem; right: -1.25rem; top: 100%;
        flex-direction: column; gap: 0;
        padding: 0.5rem 1.25rem 1.25rem;
        background: var(--oscuro-2);
        border-top: 1px solid var(--raya-clara);
        visibility: hidden;
    }
    .menu.abierto{ visibility: visible; }
    .menu a{ min-height: 54px; font-size: 1.3rem; border-bottom: 1px solid var(--raya-clara); }
}


/* ---------- Inicio: el cielo de la página original ---------- */

.inicio{
    background:
        linear-gradient(90deg, rgba(15, 16, 18, 0.95) 0%, rgba(15, 16, 18, 0.82) 42%, rgba(15, 16, 18, 0.5) 100%),
        linear-gradient(0deg, rgba(15, 16, 18, 0.85) 0%, rgba(15, 16, 18, 0) 45%),
        url("../img/img1.webp") 60% 30% / cover no-repeat,
        var(--oscuro);
    color: var(--blanco);
    padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(5.5rem, 11vw, 8.5rem);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 4vw), 0 100%);
}
.inicio__rejilla{ display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; gap: clamp(2.5rem, 5vw, 4.5rem); }
.sobre{ font-family: var(--rotulo); font-size: 1rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cian); }
h1{ margin-top: 0.9rem; font-size: clamp(2.6rem, 5.4vw, 4.4rem); line-height: 0.98; }
h1 em{ display: block; color: var(--cian); font-style: italic; }
.inicio__bajada{ max-width: 28rem; margin-top: 1.4rem; color: #d3d6db; font-size: clamp(1.1rem, 1.5vw, 1.25rem); }
.inicio__botones{ display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-top: 2rem; }

@media (max-width: 900px){
    .inicio{ background-position: 0 0, 0 0, 70% 20%, 0 0; }
    .inicio__rejilla{ grid-template-columns: 1fr; }
}


/* ---------- Dispositivos: computadora y celular como lo que son ---------- */

.laptop{ display: block; }
.laptop__pantalla{
    padding: 2.4% 2.4% 3%;
    background: #0b0c0e;
    border: 1px solid #34373d;
    border-bottom: 0;
    border-radius: 14px 14px 0 0;
}
.laptop__pantalla img{ width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: 2px; }
.laptop__base{
    position: relative;
    height: 13px;
    margin-inline: -6%;
    background: linear-gradient(#e4e6ea, #a7acb4);
    border-radius: 2px 2px 12px 12px / 2px 2px 8px 8px;
}
.laptop__base::after{ content: ""; position: absolute; left: 50%; top: 0; width: 15%; height: 4px; background: #9198a2; border-radius: 0 0 6px 6px; transform: translateX(-50%); }

.equipos{ position: relative; padding: 0 9% 2.5rem 4%; }
.equipos .laptop{ filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.55)); }
.telefono{
    position: absolute; right: 0; bottom: 3.6rem;
    width: 24%;
    padding: 2.1%;
    background: #0b0c0e;
    border: 1px solid #3a3e45;
    border-radius: 16% / 7.5%;
    box-shadow: 0 24px 40px -10px rgba(0, 0, 0, 0.7);
}
/* la cámara */
.telefono::before{ content: ""; position: absolute; left: 50%; top: 3.2%; width: 26%; height: 2.6%; background: #0b0c0e; border-radius: 99px; transform: translateX(-50%); z-index: 1; }
.telefono img{ width: 100%; aspect-ratio: 9 / 19; object-fit: cover; object-position: top; border-radius: 13% / 6%; }
.equipos figcaption{ position: absolute; left: 4%; bottom: 0; color: var(--gris-claro); font-size: 0.92rem; }

@media (max-width: 900px){
    .equipos{ max-width: 34rem; }
}


/* ---------- Secciones ---------- */

.seccion{ padding-block: clamp(4rem, 8vw, 6.5rem); }
.seccion--oscura{
    background: var(--oscuro); color: var(--blanco);
    padding-block: clamp(6rem, 12vw, 9.5rem);
    clip-path: polygon(0 4vw, 100% 0, 100% calc(100% - 4vw), 0 100%);
}
.seccion--linea{ padding-top: 0; }
.seccion--linea .ancho{ padding-top: clamp(3.5rem, 7vw, 5.5rem); border-top: 2px solid var(--tinta); }

.titulo{ display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; gap: 1rem 3rem; margin-bottom: clamp(2rem, 4.5vw, 3.25rem); }
.titulo h2, .contacto h2{ font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
.titulo p{ max-width: 27rem; justify-self: end; color: var(--gris); font-size: 1.12rem; }
.seccion--oscura .titulo p{ color: var(--gris-claro); }
@media (max-width: 760px){
    .titulo{ grid-template-columns: 1fr; }
    .titulo p{ justify-self: start; }
}


/* ---------- Servicios ---------- */

.servicio{
    display: grid;
    grid-template-columns: 5.5rem minmax(0, 1.1fr) minmax(0, 1.2fr) auto;
    align-items: center;
    gap: 1rem clamp(1.25rem, 3vw, 2.75rem);
    padding-block: 1.6rem;
    border-top: 2px solid var(--tinta);
}
.servicio:last-child{ border-bottom: 2px solid var(--tinta); }
.servicio__icono{
    --corte: 14px;
    display: flex; align-items: center; justify-content: center;
    aspect-ratio: 1;
    background: var(--oscuro); color: var(--cian);
    clip-path: polygon(var(--corte) 0, 100% 0, 100% calc(100% - var(--corte)), calc(100% - var(--corte)) 100%, 0 100%, 0 var(--corte));
}
.servicio h3{ font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.servicio__pregunta{ margin-top: 0.3rem; color: var(--azul); font-weight: 600; }
.servicio__desc{ color: var(--gris); }
.servicio__cierre{ display: grid; justify-items: end; gap: 0.6rem; }
.servicio__cierre p{ color: var(--gris); }

@media (max-width: 900px){
    .servicio{ grid-template-columns: 4.25rem minmax(0, 1fr); align-items: start; }
    .servicio__icono svg{ width: 32px; height: 32px; }
    .servicio__que{ align-self: center; }
    .servicio__desc, .servicio__cierre{ grid-column: 1 / -1; }
    .servicio__cierre{ justify-items: start; grid-template-columns: 1fr auto; align-items: center; }
}


/* ---------- En todas: los anillos de la página original ---------- */

.pilares{ display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem clamp(1.5rem, 4vw, 3.5rem); }
.pilares li{ display: grid; justify-items: start; }
.anillo{ position: relative; display: flex; align-items: center; justify-content: center; width: 104px; height: 104px; color: var(--blanco); }
.anillo::before{
    content: "";
    position: absolute; inset: 0;
    border: 3px dotted var(--cian);
    border-radius: 50%;
    box-shadow: 0 0 18px -2px rgba(66, 201, 255, 0.55), inset 0 0 18px -6px rgba(66, 201, 255, 0.45);
    animation: girar 22s linear infinite;
}
.pilares li:hover .anillo::before{ animation-duration: 6s; }
@keyframes girar{ to{ transform: rotate(1turn); } }
.pilares h3{ margin-top: 1.4rem; font-size: 1.6rem; }
.pilares p{ margin-top: 0.5rem; color: var(--gris-claro); }

@media (max-width: 760px){ .pilares{ grid-template-columns: 1fr; } }

.tecnologias{
    display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2.5rem;
    margin-top: clamp(3rem, 6vw, 4.5rem);
    padding-top: 1.75rem;
    border-top: 1px solid var(--raya-clara);
}
.tecnologias p{ font-family: var(--rotulo); font-size: 0.9rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gris-claro); }
.tecnologias ul{ display: flex; flex-wrap: wrap; gap: 1rem 2rem; }
.tecnologias li{ display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--titulos); font-size: 1.1rem; font-weight: 600; }


/* ---------- Trabajos ---------- */

.trabajos{ display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem clamp(1.5rem, 3.5vw, 3rem); }
.trabajo > .laptop{ padding-inline: 6%; transition: transform 220ms; }
.trabajo > .laptop:hover{ transform: translateY(-5px); }
.trabajo h3{ margin-top: 1.4rem; font-size: 1.6rem; }
.trabajo p{ margin-top: 0.35rem; color: var(--gris); }
.trabajo .enlace{ margin-top: 0.5rem; }

@media (max-width: 900px){ .trabajos{ grid-template-columns: 1fr; max-width: 32rem; } }


/* ---------- Cómo trabajamos: cuatro marcas sobre una regla ---------- */

.cinta{
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    padding-top: 22px;
    background:
        repeating-linear-gradient(90deg, var(--tinta) 0 1px, transparent 1px 50px) left top / 100% 14px no-repeat,
        repeating-linear-gradient(90deg, rgba(23, 24, 27, 0.45) 0 1px, transparent 1px 10px) left top / 100% 7px no-repeat,
        linear-gradient(var(--tinta), var(--tinta)) left top / 100% 2px no-repeat;
}
.cinta li{ position: relative; padding: 0.4rem 1.5rem 0 0.9rem; }
.cinta li::before{ content: ""; position: absolute; left: 0; top: -22px; width: 2px; height: calc(22px + 3.4rem); background: var(--azul); }
.cinta span{ display: block; font-family: var(--titulos); font-size: 3.4rem; font-weight: 700; line-height: 1; color: var(--azul); }
.cinta h3{ margin-top: 0.9rem; font-size: 1.45rem; }
.cinta p{ margin-top: 0.35rem; color: var(--gris); }

@media (max-width: 900px){ .cinta{ grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.25rem; } }
@media (max-width: 480px){ .cinta{ grid-template-columns: 1fr; } }


/* ---------- Contacto ---------- */

.seccion--contacto{ padding-top: 0; }
.contacto{
    --corte: 44px;
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(1.75rem, 5vw, 4rem);
    padding: clamp(1.75rem, 5vw, 4rem);
    background: var(--cian); color: var(--cian-tinta);
    clip-path: polygon(var(--corte) 0, 100% 0, 100% calc(100% - var(--corte)), calc(100% - var(--corte)) 100%, 0 100%, 0 var(--corte));
}
.contacto__texto p{ margin-top: 0.9rem; font-size: 1.15rem; }
.contacto__botones{ display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem 1.75rem; margin-top: 1.75rem; }
.contacto .enlace:hover{ color: var(--oscuro); }
.redes{ display: flex; flex-wrap: wrap; align-items: center; gap: 0 0.75rem; margin-top: 1.5rem !important; font-family: var(--titulos); font-size: 1.08rem; font-weight: 600; }
.redes a{ display: inline-flex; align-items: center; min-height: 44px; }
.redes a:hover{ text-decoration: underline; text-underline-offset: 0.25em; }
.redes i{ font-style: normal; opacity: 0.55; }

.formulario{
    --corte: 22px;
    display: grid; gap: 1.1rem;
    padding: clamp(1.25rem, 3vw, 2rem);
    background: var(--blanco); color: var(--tinta);
    clip-path: polygon(var(--corte) 0, 100% 0, 100% calc(100% - var(--corte)), calc(100% - var(--corte)) 100%, 0 100%, 0 var(--corte));
}
.trampa{ position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.campo label{ display: block; font-family: var(--rotulo); font-size: 0.9rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gris); }
.campo label span{ letter-spacing: 0.04em; text-transform: none; font-weight: 400; }
.campo input, .campo select, .campo textarea{
    display: block; width: 100%;
    min-height: 46px;
    padding: 0.45rem 0;
    background: transparent;
    border: 0; border-bottom: 2px solid var(--tinta); border-radius: 0;
    color: var(--tinta);
    font: inherit; font-size: 1.1rem;
    transition: border-color 160ms;
}
.campo textarea{ min-height: 5.5rem; resize: vertical; }
.campo select{ -webkit-appearance: none; appearance: none; padding-right: 2rem; cursor: pointer;
    background: linear-gradient(45deg, transparent 50%, var(--tinta) 50%) right 8px center / 7px 7px no-repeat,
                linear-gradient(-45deg, transparent 50%, var(--tinta) 50%) right 1px center / 7px 7px no-repeat; }
.campo input:focus, .campo select:focus, .campo textarea:focus{ outline: 0; border-bottom-color: var(--azul); box-shadow: 0 2px 0 var(--azul); }
.campo [aria-invalid="true"]{ border-bottom-color: var(--error); }
.formulario__error{ color: var(--error); font-size: 0.95rem; font-weight: 500; }
.formulario__error:empty{ display: none; }
.formulario .btn{ justify-self: start; }
.formulario__nota{ color: var(--gris); font-size: 0.88rem; }

@media (max-width: 900px){ .contacto{ grid-template-columns: 1fr; --corte: 28px; } }


/* ---------- Pie ---------- */

.pie{ padding-block: 2.5rem 6.5rem; background: var(--oscuro-2); color: var(--gris-claro); }
.pie__fila{ display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 2.5rem; }
.pie img{ width: 124px; }
.pie nav{ display: flex; flex-wrap: wrap; gap: 0.25rem 1.6rem; font-family: var(--titulos); font-size: 1.05rem; font-weight: 600; }
.pie nav a{ display: inline-flex; align-items: center; min-height: 44px; transition: color 160ms; }
.pie nav a:hover{ color: var(--blanco); }


/* ---------- WhatsApp ---------- */

.whats{
    --corte: 13px;
    position: fixed; right: clamp(1rem, 3vw, 1.75rem); bottom: clamp(1rem, 3vw, 1.75rem); z-index: 40;
    display: inline-flex; align-items: center; justify-content: center;
    width: 58px; height: 58px;
    background: #25d366; color: #04200f;
    clip-path: polygon(var(--corte) 0, 100% 0, 100% calc(100% - var(--corte)), calc(100% - var(--corte)) 100%, 0 100%, 0 var(--corte));
    transition: background-color 160ms;
}
.whats:hover{ background: #4be386; }
.whats:focus-visible{ outline: 0; background: var(--blanco); }

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


/* ---------- Ajustes tras revisarla ---------- */

/* Que el cielo estrellado se vea: velo fuerte solo detrás del texto. */
.inicio{
    background:
        linear-gradient(90deg, rgba(15, 16, 18, 0.94) 0%, rgba(15, 16, 18, 0.7) 40%, rgba(15, 16, 18, 0.15) 75%, rgba(15, 16, 18, 0.05) 100%),
        linear-gradient(0deg, rgba(15, 16, 18, 0.7) 0%, rgba(15, 16, 18, 0) 35%),
        url("../img/img1.webp") 50% 35% / cover no-repeat,
        var(--oscuro);
}
@media (max-width: 900px){
    .inicio{
        background:
            linear-gradient(180deg, rgba(15, 16, 18, 0.55) 0%, rgba(15, 16, 18, 0.88) 45%, rgba(15, 16, 18, 0.6) 100%),
            url("../img/img1.webp") 65% 0 / auto 100% no-repeat,
            var(--oscuro);
    }
}

/* Titular en dos líneas fijas. */
h1{ font-size: clamp(2.5rem, 4.9vw, 4.1rem); }
h1 > span{ display: block; }
@media (min-width: 560px){ h1 > span{ white-space: nowrap; } }

/* Los tres pilares alineados arriba aunque sus textos midan distinto. */
.pilares li{ align-content: start; }

/* Portada como la original: el logo grande sobre el cielo y una frase
   normal debajo. Sin etiqueta en mayúsculas, sin titular gigante y sin
   palabras en otro color. */
.inicio__logo{ width: clamp(220px, 27vw, 340px); }
h1.inicio__titulo{
    max-width: 28rem;
    margin-top: clamp(1.75rem, 3vw, 2.5rem);
    font-family: 'Barlow', system-ui, sans-serif;
    font-size: clamp(1.4rem, 2.2vw, 1.85rem);
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: 0;
    white-space: normal;
}
.inicio__bajada{ margin-top: 0.85rem; color: var(--gris-claro); font-size: 1.1rem; }

/* ---------- Servicio: opciones propias en vez del selector del sistema ---------- */

.opciones{ min-width: 0; margin: 0; padding: 0; border: 0; }
.opciones legend{ padding: 0; margin-bottom: 0.6rem; font-family: var(--rotulo); font-size: 0.9rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gris); }
.opciones legend span{ letter-spacing: 0.04em; text-transform: none; font-weight: 400; }
.opciones__lista{ display: grid; grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr)); gap: 0.5rem; }

/* Cada opción lleva el corte del logo: una capa da el borde y otra el relleno. */
.opcion{
    --c: 9px;
    position: relative; isolation: isolate;
    display: flex; align-items: center;
    min-height: 48px;
    padding: 0.55rem 0.9rem;
    font-family: var(--titulos); font-size: 1.04rem; font-weight: 600; line-height: 1.15;
    color: var(--tinta);
    cursor: pointer;
    transition: color 160ms;
}
.opcion::before, .opcion::after{
    content: "";
    position: absolute; z-index: -1;
    clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c));
    transition: background-color 160ms;
}
.opcion::before{ inset: 0; background: rgba(23, 24, 27, 0.3); }
.opcion::after{ inset: 2px; background: var(--blanco); }
.opcion input{ position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; }
/* el marcador inclinado del logo */
.opcion span::before{
    content: "";
    display: inline-block; vertical-align: 0.12em;
    width: 0.95rem; height: 0.45rem; margin-right: 0.55rem;
    background: rgba(23, 24, 27, 0.25);
    clip-path: polygon(34% 0, 100% 0, 66% 100%, 0 100%);
    transition: background-color 160ms;
}
.opcion:hover::before{ background: var(--tinta); }
.opcion:has(input:checked){ color: var(--blanco); }
.opcion:has(input:checked)::before, .opcion:has(input:checked)::after{ background: var(--oscuro); }
.opcion:has(input:checked) span::before{ background: var(--cian); }
.opcion:has(input:focus-visible){ outline: 3px solid var(--azul); outline-offset: 3px; }


/* =========================================================
   PORTADA — computadora y celular con movimiento
   - Las pantallas recorren el sitio real de Alto Valle, de arriba
     abajo, como si alguien lo estuviera viendo.
   - Los equipos están inclinados en 3D y se acomodan siguiendo el mouse.
   - El celular flota un poco por delante de la computadora.
   ========================================================= */

.equipos{
    position: relative;
    padding: 1.5rem 0 3rem;
    perspective: 1700px;
    animation: llegar 1100ms cubic-bezier(.2, .7, .2, 1) both;
}
@keyframes llegar{ from{ opacity: 0; translate: 0 36px; } }

.equipos__escena{
    position: relative;
    padding: 0 11% 0 3%;
    transform-style: preserve-3d;
    transform: rotateX(var(--rx, 5deg)) rotateY(var(--ry, -12deg));
    transition: transform 700ms cubic-bezier(.2, .7, .2, 1);
}
/* sombra sobre el "piso" */
.equipos__escena::after{
    content: "";
    position: absolute; left: 2%; right: 8%; bottom: -7%; height: 12%;
    background: radial-gradient(closest-side, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0));
    filter: blur(10px);
    transform: translateZ(-60px);
    pointer-events: none;
}

/* Pantalla: muestra una parte del sitio y la va recorriendo. */
.pantalla{ position: relative; overflow: hidden; background: #000; }
.pantalla::after{
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(118deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.04) 30%, rgba(255, 255, 255, 0) 46%);
    pointer-events: none;
}
.recorre{
    width: 100%; height: 100%;
    object-fit: cover; object-position: 50% 0%;
    animation: recorrer 24s cubic-bezier(.45, 0, .25, 1) infinite;
}
.recorre--cel{ animation-duration: 20s; animation-delay: -7s; }
@keyframes recorrer{
    0%, 7%    { object-position: 50% 0%; }
    17%, 25%  { object-position: 50% 24%; }
    35%, 43%  { object-position: 50% 50%; }
    53%, 61%  { object-position: 50% 76%; }
    71%, 80%  { object-position: 50% 100%; }
    92%, 100% { object-position: 50% 0%; }
}

/* La computadora */
.compu{ position: relative; filter: drop-shadow(0 34px 40px rgba(0, 0, 0, 0.55)); }
.compu__tapa{
    position: relative;
    padding: 2.3% 2.3% 3.4%;
    background: linear-gradient(180deg, #24262b 0%, #0b0c0e 60%);
    border-radius: 18px 18px 6px 6px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14), 0 0 0 1px #050506;
}
/* cámara */
.compu__tapa::before{ content: ""; position: absolute; left: 50%; top: 1%; width: 6px; height: 6px; border-radius: 50%; background: #2c3038; box-shadow: inset 0 0 0 1.5px #15171a; transform: translateX(-50%); }
.pantalla--compu{ aspect-ratio: 16 / 10; border-radius: 3px; }
.compu__base{
    position: relative;
    height: 0; padding-bottom: 3.2%;
    margin: 0 -8%;
    background: linear-gradient(180deg, #f1f2f4 0%, #c9cdd3 42%, #959ba4 100%);
    border-radius: 3px 3px 16px 16px / 3px 3px 12px 12px;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset;
}
/* bisagra y ranura para abrirla */
.compu__base::before{ content: ""; position: absolute; left: 8%; right: 8%; top: 0; height: 3px; background: linear-gradient(#5d636c, #9ea4ad); border-radius: 0 0 3px 3px; }
.compu__base::after{ content: ""; position: absolute; left: 50%; top: 0; width: 14%; height: 38%; background: linear-gradient(#a8adb5, #c4c8ce); border-radius: 0 0 10px 10px; transform: translateX(-50%); }

/* El celular, por delante y flotando */
.cel{
    position: absolute; right: 0; bottom: -5%;
    width: 25%;
    transform: translateZ(90px);
    animation: flotar 6.5s ease-in-out infinite;
}
@keyframes flotar{ 50%{ translate: 0 -12px; } }
.cel__cuerpo{
    position: relative;
    padding: 3.4%;
    background: linear-gradient(150deg, #3a3e45 0%, #121316 28%, #0a0b0d 100%);
    border-radius: 17% / 8%;
    box-shadow:
        inset 0 0 0 1.5px #5a5f68,
        inset 0 0 0 3.5px #0a0b0d,
        0 34px 50px -14px rgba(0, 0, 0, 0.8);
}
/* botones laterales */
.cel__cuerpo::before{ content: ""; position: absolute; right: -2px; top: 24%; width: 3px; height: 13%; background: #4a4f57; border-radius: 0 2px 2px 0; }
.cel__cuerpo::after{ content: ""; position: absolute; left: -2px; top: 20%; width: 3px; height: 8%; background: #4a4f57; border-radius: 2px 0 0 2px; box-shadow: 0 160% 0 #4a4f57; }
.pantalla--cel{ aspect-ratio: 9 / 19.5; border-radius: 14% / 6.5%; }
/* isla de la cámara */
.pantalla--cel::before{ content: ""; position: absolute; left: 50%; top: 2.2%; z-index: 2; width: 32%; height: 3.6%; background: #000; border-radius: 99px; transform: translateX(-50%); }

.equipos figcaption{ position: absolute; left: 3%; bottom: 0; color: var(--gris-claro); font-size: 0.92rem; }

@media (max-width: 900px){
    .equipos{ max-width: 34rem; }
    .equipos__escena{ transform: rotateX(4deg) rotateY(-9deg); }
}

@media (prefers-reduced-motion: reduce){
    .equipos, .cel, .recorre{ animation: none; }
    .equipos__escena{ transition: none; }
}


/* =========================================================
   FORMULARIO — menú desplegable propio para "Servicio"
   ========================================================= */

.campo__etiqueta{ display: block; font-family: var(--rotulo); font-size: 0.9rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gris); }
.campo__etiqueta span{ letter-spacing: 0.04em; text-transform: none; font-weight: 400; }

.selector{ position: relative; }
.selector__boton{
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    width: 100%; min-height: 46px;
    padding: 0.45rem 0;
    background: none;
    border: 0; border-bottom: 2px solid var(--tinta); border-radius: 0;
    color: var(--tinta);
    font: inherit; font-size: 1.1rem; text-align: left;
    cursor: pointer;
}
.selector__boton::after{
    content: "";
    flex-shrink: 0;
    width: 9px; height: 9px; margin-right: 5px;
    border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
    transform: translateY(-3px) rotate(45deg);
    transition: transform 200ms;
}
.selector.abierto .selector__boton::after{ transform: translateY(2px) rotate(-135deg); }
.selector__boton:focus-visible{ outline: 0; border-bottom-color: var(--azul); box-shadow: 0 2px 0 var(--azul); }

.selector__lista{
    --c: 14px;
    position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 10;
    margin: 0; padding: 0.45rem;
    list-style: none;
    background: var(--oscuro);
    color: var(--blanco);
    clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c));
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity 160ms, transform 160ms, visibility 0s 160ms;
}
.selector.abierto .selector__lista{ opacity: 1; visibility: visible; transform: none; transition: opacity 160ms, transform 160ms, visibility 0s; }
.selector__lista:focus{ outline: 0; }
.selector__lista li{
    display: flex; align-items: baseline; gap: 0.6rem;
    min-height: 44px;
    padding: 0.65rem 0.8rem;
    font-family: var(--titulos); font-size: 1.08rem; font-weight: 600;
    cursor: pointer;
}
/* el marcador inclinado del logo */
.selector__lista li::before{
    content: "";
    flex-shrink: 0; align-self: center;
    width: 0.95rem; height: 0.45rem;
    background: rgba(255, 255, 255, 0.22);
    clip-path: polygon(34% 0, 100% 0, 66% 100%, 0 100%);
}
.selector__lista li small{ margin-left: auto; color: var(--gris-claro); font-family: 'Barlow', system-ui, sans-serif; font-size: 0.9rem; font-weight: 400; }
.selector__lista li.activa{ background: rgba(255, 255, 255, 0.09); }
.selector__lista li[aria-selected="true"]{ color: var(--cian); }
.selector__lista li[aria-selected="true"]::before{ background: var(--cian); }


/* En celular la lista se abre dentro del formulario (empuja lo de abajo)
   para que el corte del panel no la recorte, y la descripción de cada
   opción va debajo de su nombre. */
@media (max-width: 600px){
    .selector__lista{ position: static; display: none; margin-top: 8px; transform: none; }
    .selector.abierto .selector__lista{ display: block; }
    .selector__lista li{ flex-wrap: wrap; row-gap: 0.1rem; }
    .selector__lista li small{ flex-basis: 100%; margin-left: 1.55rem; }
}


/* =========================================================
   LAPTOP EN 3D
   La tapa queda de pie y el cuerpo (teclado y touchpad) se acuesta
   hacia el frente; la escena se ve un poco desde arriba, así se lee
   como laptop y no como un marco plano.
   ========================================================= */

.equipos{ padding-bottom: calc(3rem + 15%); }
.equipos__escena{ transform: rotateX(var(--rx, 14deg)) rotateY(var(--ry, -18deg)); }
.equipos__escena::after{ display: none; }

.compu{ transform-style: preserve-3d; filter: none; }

/* La tapa: vidrio negro con un canto de aluminio alrededor. */
.compu__tapa{
    padding: 1.6% 1.6% 3.4%;
    background: #0b0c0e;
    border-radius: 14px 14px 4px 4px;
    box-shadow: 0 0 0 1.5px #b6bbc2, 0 0 0 3px #6f757e;
}
.compu__tapa::before{ top: 0.55%; width: 5px; height: 5px; }
/* bisagra */
.compu__tapa::after{
    content: "";
    position: absolute; left: 4%; right: 4%; bottom: -3px;
    height: 5px;
    background: linear-gradient(#3b3f45, #17181b);
    border-radius: 0 0 4px 4px;
}
.pantalla--compu{ border-radius: 2px; }

/* El cuerpo, acostado hacia el frente desde la bisagra. */
.compu__cuerpo{
    position: absolute; left: -9%; right: -9%; top: 100%;
    aspect-ratio: 1 / 0.6;
    background: linear-gradient(180deg, #b9bec5 0%, #d9dce0 18%, #e4e6e9 100%);
    border-radius: 6px 6px 18px 18px;
    transform-origin: top center;
    transform: rotateX(90deg);
    transform-style: preserve-3d;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}
/* sombra sobre la mesa */
.compu__cuerpo::before{
    content: "";
    position: absolute; inset: 6% 0 -6%;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 30px;
    filter: blur(22px);
    transform: translateZ(-4px);
}
/* el canto frontal, que mira hacia quien ve la página */
.compu__cuerpo::after{
    content: "";
    position: absolute; left: 0; right: 0; top: 100%;
    height: 0; padding-bottom: 2.4%;
    background:
        linear-gradient(#9da3ac, #9da3ac) center top / 13% 45% no-repeat,
        linear-gradient(180deg, #cfd3d8 0%, #a3a9b1 100%);
    border-radius: 0 0 12px 12px;
    transform-origin: top center;
    transform: rotateX(-90deg);
}

/* Teclado: teclas oscuras con su separación de aluminio. */
.compu__teclado{
    position: absolute; left: 8%; right: 8%; top: 7%; height: 43%;
    background-color: #17181b;
    background-image:
        linear-gradient(90deg, #cdd1d6 2px, transparent 2px),
        linear-gradient(0deg, #cdd1d6 2px, transparent 2px);
    background-size: calc(100% / 15) calc(100% / 6);
    border: 2px solid #cdd1d6;
    border-radius: 4px;
}
.compu__touchpad{
    position: absolute; left: 32%; right: 32%; top: 56%; height: 34%;
    background: linear-gradient(180deg, #d0d4d9, #dadde1);
    border-radius: 8px;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.14);
}

/* El celular flota un poco arriba del teclado, sin atravesarlo. */
.cel{ bottom: 6%; }

@media (max-width: 900px){
    .equipos__escena{ transform: rotateX(13deg) rotateY(-14deg); }
}
@media (prefers-reduced-motion: reduce){
    .equipos__escena{ transform: rotateX(13deg) rotateY(-14deg); }
}

/* Vista un poco más desde arriba, para que se vea el teclado. */
.equipos__escena{ transform: rotateX(var(--rx, 24deg)) rotateY(var(--ry, -20deg)); }
@media (max-width: 900px){ .equipos__escena{ transform: rotateX(22deg) rotateY(-16deg); } }
@media (prefers-reduced-motion: reduce){ .equipos__escena{ transform: rotateX(22deg) rotateY(-16deg); } }


/* ---------- Laptop: versión final ----------
   El cuerpo (teclado y touchpad) se dibuja con su propia perspectiva,
   como un trapecio que se abre hacia el frente bajo la pantalla. Así se
   lee como laptop sin depender de la escena 3D completa. */

.equipos__escena{ transform: rotateX(var(--rx, 6deg)) rotateY(var(--ry, -16deg)); }
.compu{ transform-style: flat; }
.compu__cuerpo{
    transform: perspective(520px) rotateX(-64deg);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08), 0 16px 0 -3px #9aa0a9, 0 34px 40px -8px rgba(0, 0, 0, 0.6);
}
.compu__cuerpo::before, .compu__cuerpo::after{ display: none; }

@media (max-width: 900px){
    .equipos__escena{ transform: rotateX(5deg) rotateY(-12deg); }
}
@media (prefers-reduced-motion: reduce){
    .equipos__escena{ transform: rotateX(5deg) rotateY(-12deg); }
}

/* En celular, más espacio bajo la laptop para que el pie de foto no quede encima del teclado. */
@media (max-width: 900px){ .equipos{ padding-bottom: calc(3.5rem + 22%); } }


/* =========================================================
   LAPTOP DE FRENTE (reemplaza la versión en 3D)
   El marco es un dibujo SVG con proporciones de laptop real; la
   pantalla es un hueco encima donde corre el sitio. Sin inclinaciones:
   el movimiento es el recorrido de las pantallas, el celular que flota
   y un desplazamiento suave de los dos equipos con el mouse.
   ========================================================= */

.equipos{ padding: 1rem 0 3rem; perspective: none; }
.equipos__escena{
    transform: none;
    transform-style: flat;
    padding: 0 9% 0 0;
}

.laptop2{
    position: relative;
    aspect-ratio: 1000 / 640;
    transform: translate(calc(var(--mx, 0) * -7px), calc(var(--my, 0) * -5px));
    transition: transform 700ms cubic-bezier(.2, .7, .2, 1);
}
.laptop2__marco{ position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
/* hueco de la pantalla: x 118–882, y 36–520 dentro del dibujo de 1000×640 */
.laptop2__pantalla{
    position: absolute;
    left: 11.8%; top: 5.625%;
    width: 76.4%; height: 75.625%;
    border-radius: 3px;
}

/* El celular, de pie junto a la laptop, flotando y desplazándose al revés. */
.cel{
    right: 0; bottom: 6%;
    width: 24%;
    transform: translate(calc(var(--mx, 0) * 12px), calc(var(--my, 0) * 9px));
    transition: transform 700ms cubic-bezier(.2, .7, .2, 1);
}

.equipos figcaption{ left: 0; }

@media (max-width: 900px){
    .equipos{ padding-bottom: 3rem; }
    .equipos__escena{ transform: none; padding-right: 8%; }
}
@media (prefers-reduced-motion: reduce){
    .equipos__escena{ transform: none; }
    .laptop2, .cel{ transform: none; transition: none; }
}


/* =========================================================
   ACABADO DE LOS EQUIPOS
   ========================================================= */

/* Laptop: biseles delgados como en los equipos actuales.
   Hueco de la pantalla en el dibujo de 1000×610: x 120–880, y 22–497. */
.laptop2{ aspect-ratio: 1000 / 610; }
.laptop2__pantalla{
    left: 12%; top: 3.607%;
    width: 76%; height: 77.869%;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6);
}

/* Reflejo del vidrio: suave, en diagonal, sobre las dos pantallas. */
.pantalla::after{
    background:
        linear-gradient(112deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.03) 34%, rgba(255, 255, 255, 0) 35%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0) 30%);
}

/* Celular: biseles delgados y canto metálico. */
.cel__cuerpo{
    padding: 2.6%;
    background: linear-gradient(150deg, #5b616a 0%, #24272c 18%, #0a0b0d 60%, #1c1e22 100%);
    border-radius: 16.5% / 7.8%;
    box-shadow:
        inset 0 0 0 1.2px #8a9099,
        inset 0 0 0 3px #08090a,
        0 30px 45px -14px rgba(0, 0, 0, 0.85),
        0 0 0 1px rgba(0, 0, 0, 0.5);
}
.pantalla--cel{ border-radius: 14.5% / 6.8%; }
.pantalla--cel::before{ top: 1.8%; width: 30%; height: 3.2%; }
.cel__cuerpo::before, .cel__cuerpo::after{ background: #6a707a; }

/* Resplandor cian detrás de los equipos, para que se integren al cielo. */
.equipos__escena{ isolation: isolate; }
.equipos__escena::before{
    content: "";
    position: absolute; left: 4%; right: 2%; top: 6%; bottom: 14%;
    z-index: -1;
    background: radial-gradient(closest-side, rgba(66, 201, 255, 0.26), rgba(66, 201, 255, 0.08) 55%, rgba(66, 201, 255, 0));
    filter: blur(28px);
    pointer-events: none;
}
.cel{ bottom: 7%; }


/* =========================================================
   LAPTOP: FOTO REAL (Adobe Stock 757477558)
   La pantalla de la foto es transparente; la página corre detrás
   del vidrio y la muesca de la cámara queda encima.
   Hueco de la pantalla medido sobre la foto recortada (1577×989):
   left 7.546%, top 1.921%, ancho 84.908%, alto 87.058%.
   ========================================================= */

.laptop3{
    position: relative;
    aspect-ratio: 1400 / 878;
    transform: translate(calc(var(--mx, 0) * -7px), calc(var(--my, 0) * -5px));
    transition: transform 700ms cubic-bezier(.2, .7, .2, 1);
    filter: drop-shadow(0 28px 34px rgba(0, 0, 0, 0.6));
}
.laptop3__foto{ position: relative; z-index: 1; width: 100%; height: 100%; }
.laptop3__pantalla{
    position: absolute; z-index: 0;
    left: 7.4%; top: 1.8%;
    width: 85.2%; height: 87.3%;
    background: #000;
}
/* el reflejo va sobre la foto, no debajo */
.laptop3__pantalla::after{ display: none; }
.laptop3::after{
    content: "";
    position: absolute; z-index: 2;
    left: 7.546%; top: 1.921%; width: 84.908%; height: 87.058%;
    background: linear-gradient(112deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.025) 34%, rgba(255, 255, 255, 0) 35%);
    pointer-events: none;
}

/* El cuerpo de la laptop es negro: una luz cian detrás la separa del fondo. */
.equipos__escena::before{
    left: 0; right: 0; top: 0; bottom: 8%;
    background: radial-gradient(closest-side, rgba(66, 201, 255, 0.34), rgba(66, 201, 255, 0.1) 60%, rgba(66, 201, 255, 0));
    filter: blur(24px);
}

.cel{ bottom: 4%; }

@media (prefers-reduced-motion: reduce){
    .laptop3{ transform: none; transition: none; }
}

/* Un filo de luz en el contorno para que el cuerpo negro no se pierda en el cielo. */
.laptop3{ filter: drop-shadow(0 0 0.6px rgba(190, 225, 255, 0.55)) drop-shadow(0 0 18px rgba(66, 201, 255, 0.18)) drop-shadow(0 28px 34px rgba(0, 0, 0, 0.6)); }

@media (max-width: 900px){ .equipos{ padding-bottom: 4rem; } }

/* Sin la cinta métrica bajo el menú. */
.cabecera::after{ display: none; }

/* Fondo claro: gris neutro ligeramente frío en lugar del crema. */
:root{ --papel: #f1f3f5; --blanco: #ffffff; }


/* ---------- Trabajos: la misma laptop real que la portada ---------- */

.laptop3--trabajo{
    display: block;
    filter: drop-shadow(0 18px 22px rgba(16, 24, 40, 0.28));
    transition: transform 240ms cubic-bezier(.2, .7, .2, 1);
}
.laptop3--trabajo:hover{ transform: translateY(-6px); }
.laptop3--trabajo .laptop3__pantalla img{
    width: 100%; height: 100%;
    object-fit: cover; object-position: 50% 0%;
}
.laptop3--trabajo:focus-visible{ outline: 3px solid var(--azul); outline-offset: 6px; }
.trabajo h3{ margin-top: 1.25rem; }

@media (prefers-reduced-motion: reduce){
    .laptop3--trabajo{ transition: none; }
    .laptop3--trabajo:hover{ transform: none; }
}
