/* ============================================
   SERVICIOS — extiende assets/estilos.css
   Mismos tokens: #040109, --gradient, Inter + Instrument Serif
   ============================================ */

.pagServicios {
    background-color: #040109;
    color: #f3f3f3;
}

.pagServicios ::selection {
    background: rgba(37, 163, 247, .35);
    color: #fff;
}

/* Foco visible y consistente en toda la página */
.pagServicios a:focus-visible,
.pagServicios button:focus-visible,
.pagServicios input:focus-visible,
.pagServicios select:focus-visible,
.pagServicios textarea:focus-visible,
.pagServicios .servItem:focus-within {
    outline: 2px solid #25a3f7;
    outline-offset: 3px;
}

.pagServicios .navBar a[aria-label] {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    line-height: 0;
}

.pagServicios .navBar a[aria-label] img {
    position: static;
    transform: none;
}

/* ============================================
   PORTADA
   ============================================ */
.servPortada {
    position: relative;
    overflow: hidden;
    padding: 170px 65px 100px;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.servPortada::after {
    content: "";
    position: absolute;
    z-index: 0;
    left: 18%;
    top: 20%;
    width: 55%;
    height: 420px;
    transform: translate(-50%, -50%);
    background: radial-gradient(ellipse at center, rgba(50, 73, 209, .30) 0%, transparent 70%);
    filter: blur(70px);
    pointer-events: none;
}

.servPortadaInner {
    position: relative;
    z-index: 1;
    max-width: 1250px;
    margin: 0 auto;
}

.servMigas {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    letter-spacing: .5px;
    color: rgb(140, 140, 140);
}

.servMigas a {
    color: rgb(175, 175, 175);
    text-decoration: none;
    transition: color .3s ease;
}

.servMigas a:hover {
    color: #fff;
}

.servMigas span[aria-hidden] {
    color: rgba(255, 255, 255, .25);
}

.servPortadaTitulo {
    max-width: 15ch;
    margin: 26px 0 0;
    font-size: clamp(2.6rem, 6.2vw, 6rem);
    line-height: 1.02;
    letter-spacing: -.035em;
    font-weight: 700;
    color: #f3f3f3;
    text-wrap: balance;
}

.servPortadaIntro {
    max-width: 62ch;
    margin: 28px 0 0;
    font-size: clamp(16px, 1.25vw, 19px);
    line-height: 1.65;
    color: rgb(168, 168, 168);
}

.servPortadaAcciones {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 40px;
}

.btnPrincipal,
.btnLinea {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 15px 32px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    min-height: 48px;
    transition: transform .3s ease, box-shadow .3s ease, background .3s ease, border-color .3s ease;
}

.btnPrincipal {
    color: #fff;
    border: none;
    background: linear-gradient(rgba(4, 1, 9, .32), rgba(4, 1, 9, .32)), var(--gradient);
    text-shadow: 0 1px 3px rgba(0, 0, 0, .35);
    box-shadow: 0 10px 30px rgba(37, 163, 247, .28);
}

.btnPrincipal:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 38px rgba(37, 163, 247, .42);
}

.btnLinea {
    color: #f3f3f3;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .14);
}

.btnLinea:hover {
    background: rgba(255, 255, 255, .09);
    border-color: rgba(37, 163, 247, .45);
}

/* ============================================
   CATÁLOGO — índice pegajoso + categorías
   ============================================ */
.catalogo {
    position: relative;
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 70px;
    max-width: 1250px;
    margin: 0 auto;
    padding: 90px 65px 40px;
}

.catIndice {
    position: sticky;
    top: 90px;
    align-self: start;
    display: flex;
    flex-direction: column;
    gap: 16px;
    /* sin esto el nav con scroll horizontal infla el track de grid */
    min-width: 0;
}

.catCuerpo {
    min-width: 0;
}

.catIndiceLabel {
    font-family: 'Instrument Serif', serif;
    font-style: italic;
    font-size: 17px;
    color: rgba(255, 255, 255, .55);
}

.catIndiceNav {
    display: flex;
    flex-direction: column;
    border-left: 1px solid rgba(255, 255, 255, .1);
}

.catIndiceLink {
    display: flex;
    align-items: baseline;
    gap: 12px;
    min-height: 44px;
    padding: 12px 0 12px 18px;
    margin-left: -1px;
    border-left: 1px solid transparent;
    font-size: 14.5px;
    line-height: 1.35;
    color: rgb(135, 135, 135);
    text-decoration: none;
    transition: color .3s ease, border-color .3s ease;
}

.catIndiceLink i {
    font-family: 'Instrument Serif', serif;
    font-style: italic;
    font-size: 13px;
    color: rgba(255, 255, 255, .48);
    transition: color .3s ease;
}

.catIndiceLink:hover {
    color: #f3f3f3;
}

.catIndiceLink.activo {
    color: #fff;
    border-left-color: #25a3f7;
}

.catIndiceLink.activo i {
    color: #25a3f7;
}

/* --- Bloque de categoría --- */
.categoria {
    padding: 0 0 70px;
    scroll-margin-top: 80px;
}

.categoria+.categoria {
    padding-top: 70px;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.categoriaHead {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 38px;
}

.categoriaIcono {
    flex: 0 0 auto;
    width: 54px;
    height: 54px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(37, 163, 247, .22);
}

.categoriaTexto {
    min-width: 0;
}

.categoriaNum {
    display: block;
    font-family: 'Instrument Serif', serif;
    font-style: italic;
    font-size: 15px;
    color: rgba(255, 255, 255, .55);
    margin-bottom: 2px;
}

.categoriaTitulo {
    margin: 0;
    font-size: clamp(1.75rem, 3.2vw, 2.6rem);
    line-height: 1.1;
    letter-spacing: -.025em;
    font-weight: 800;
    color: #fff;
    text-wrap: balance;
}

.categoriaIntro {
    max-width: 60ch;
    margin: 12px 0 0;
    font-size: 16.5px;
    line-height: 1.6;
    color: rgb(160, 160, 160);
}

/* --- Lista de servicios seleccionables --- */
.servLista {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 10px;
}

.servItem {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 20px 22px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 16px;
    background: rgba(255, 255, 255, .022);
    cursor: pointer;
    transition: background .3s ease, border-color .3s ease, transform .3s ease;
}

.servItem:hover {
    background: rgba(255, 255, 255, .055);
    border-color: rgba(255, 255, 255, .16);
}

.servItem.activo {
    background: rgba(37, 163, 247, .08);
    border-color: rgba(37, 163, 247, .45);
}

.servCheck {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.servMarca {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    margin-top: 2px;
    border-radius: 7px;
    border: 1.5px solid rgba(255, 255, 255, .22);
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    background: transparent;
    transition: background .25s ease, border-color .25s ease, color .25s ease;
}

.servItem:hover .servMarca {
    border-color: rgba(255, 255, 255, .4);
}

.servItem.activo .servMarca {
    background: var(--gradient);
    border-color: transparent;
    color: #fff;
}

.servCuerpo {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.servNombre {
    font-size: 16.5px;
    font-weight: 700;
    line-height: 1.3;
    color: #fff;
}

.servDesc {
    font-size: 14.5px;
    line-height: 1.55;
    color: rgb(158, 158, 158);
}

.servItem.activo .servDesc {
    color: rgb(185, 195, 205);
}

/* ============================================
   PROCESO
   ============================================ */
.proceso {
    position: relative;
    overflow: hidden;
    padding: 90px 65px 100px;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.proceso::after {
    content: "";
    position: absolute;
    z-index: 0;
    left: 50%;
    top: 60%;
    width: 60%;
    height: 300px;
    transform: translate(-50%, -50%);
    background: radial-gradient(ellipse at center, rgba(29, 210, 191, .14) 0%, transparent 70%);
    filter: blur(70px);
    pointer-events: none;
}

.procesoHead {
    position: relative;
    z-index: 1;
    max-width: 1250px;
    margin: 0 auto 50px;
}

.procesoTitulo {
    margin: 0;
    font-size: clamp(1.9rem, 3.6vw, 3rem);
    line-height: 1.05;
    letter-spacing: -.03em;
    font-weight: 800;
    color: #f3f3f3;
}

.procesoIntro {
    max-width: 58ch;
    margin: 14px 0 0;
    font-size: 16.5px;
    line-height: 1.6;
    color: rgb(160, 160, 160);
}

.procesoPasos {
    position: relative;
    z-index: 1;
    max-width: 1250px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 34px;
}

.procesoPaso {
    position: relative;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, .12);
}

.procesoPunto {
    position: absolute;
    top: -5px;
    left: 0;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--gradient);
    box-shadow: 0 0 0 4px rgba(4, 1, 9, 1);
}

.procesoNum {
    font-family: 'Instrument Serif', serif;
    font-style: italic;
    font-size: 14px;
    color: rgba(255, 255, 255, .55);
}

.procesoPasoTitulo {
    margin: 6px 0 8px;
    font-size: 21px;
    font-weight: 800;
    color: #fff;
}

.procesoPasoTexto {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: rgb(158, 158, 158);
}

/* ============================================
   COTIZAR
   ============================================ */
.cotizar {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 70px;
    align-items: start;
    max-width: 1250px;
    margin: 0 auto;
    padding: 100px 65px 110px;
    scroll-margin-top: 70px;
}

.cotizar::after {
    content: "";
    position: absolute;
    z-index: 0;
    left: 22%;
    top: 45%;
    width: 50%;
    height: 380px;
    transform: translate(-50%, -50%);
    background: radial-gradient(ellipse at center, rgba(50, 73, 209, .22) 0%, transparent 70%);
    filter: blur(60px);
    pointer-events: none;
}

.cotizarIntro {
    position: sticky;
    z-index: 1;
    top: 90px;
}

.cotizarTitulo {
    margin: 0;
    font-size: clamp(2rem, 3.8vw, 3.1rem);
    line-height: 1.05;
    letter-spacing: -.03em;
    font-weight: 800;
    color: #fff;
    text-wrap: balance;
}

.cotizarTexto {
    max-width: 46ch;
    margin: 20px 0 34px;
    font-size: 16.5px;
    line-height: 1.65;
    color: rgb(165, 165, 165);
}

.cotizarFormWrap {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, .045);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 24px;
    padding: 40px 38px;
}

.cotizarForm {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Selección elegida */
.cotizarSeleccion {
    border: none;
    padding: 0;
    margin: 0;
}

.cotizarSeleccion legend {
    padding: 0;
    margin-bottom: 12px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: rgb(150, 150, 150);
}

.chipsZona {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 46px;
    padding: 12px;
    border: 1px dashed rgba(255, 255, 255, .14);
    border-radius: 14px;
    background: rgba(255, 255, 255, .02);
}

.chipsVacio {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: rgb(140, 140, 140);
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 9px 14px;
    border: 1px solid rgba(37, 163, 247, .4);
    border-radius: 999px;
    background: rgba(37, 163, 247, .12);
    color: #eaf4ff;
    font-family: var(--inter);
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background .25s ease, border-color .25s ease;
}

.chip:hover {
    background: rgba(37, 163, 247, .22);
    border-color: rgba(37, 163, 247, .7);
}

.chip svg {
    opacity: .7;
}

/* Campos */
.campoFila {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.campo {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.campo label {
    font-size: 14.5px;
    font-weight: 600;
    color: rgb(205, 205, 205);
}

.campo .req {
    color: #25a3f7;
}

.campo input,
.campo select,
.campo textarea {
    width: 100%;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 12px;
    padding: 14px 16px;
    font-family: var(--inter);
    font-size: 16px;
    color: #fff;
    resize: vertical;
    transition: border-color .3s ease, background .3s ease;
}

.campo select {
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%239a9a9a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 44px;
}

.campo select option {
    background: #0c0812;
    color: #fff;
}

.campo input::placeholder,
.campo textarea::placeholder {
    color: rgb(125, 125, 125);
}

.campo input:focus,
.campo select:focus,
.campo textarea:focus {
    border-color: rgba(37, 163, 247, .5);
    background: rgba(255, 255, 255, .07);
}

.campo .invalido {
    border-color: rgba(255, 107, 129, .65);
}

.campoError {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13.5px;
    line-height: 1.4;
    color: #ff8a9b;
}

.cotizarEnviar {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 6px;
    border: none;
    cursor: pointer;
    padding: 16px 36px;
    border-radius: 14px;
    font-family: var(--inter);
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(rgba(4, 1, 9, .32), rgba(4, 1, 9, .32)), var(--gradient);
    text-shadow: 0 1px 3px rgba(0, 0, 0, .35);
    box-shadow: 0 10px 30px rgba(37, 163, 247, .25);
    transition: transform .3s ease, box-shadow .3s ease;
}

.cotizarEnviar:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 38px rgba(37, 163, 247, .4);
}

.cotizarNota {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.5;
    color: rgb(140, 140, 140);
}

/* ============================================
   PIE
   ============================================ */
.pie {
    border-top: 1px solid rgba(255, 255, 255, .08);
    padding: 40px 65px;
}

.pieInner {
    max-width: 1250px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
}

.pieLogo img {
    height: 28px;
    display: block;
}

.pieNav {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.pieNav a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    font-size: 14.5px;
    color: rgb(160, 160, 160);
    text-decoration: none;
    transition: color .3s ease;
}

.pieNav a:hover {
    color: #fff;
}

.pieCopy {
    font-size: 13.5px;
    color: rgb(125, 125, 125);
}

/* ============================================
   BARRA FLOTANTE DE SELECCIÓN
   ============================================ */
.barraSel {
    position: fixed;
    z-index: 1000;
    left: 50%;
    bottom: 22px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 12px 12px 22px;
    border-radius: 999px;
    background: rgba(12, 8, 20, .92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, .12);
    box-shadow: 0 18px 44px rgba(0, 0, 0, .55);
    animation: barraEntra .45s cubic-bezier(.16, 1, .3, 1);
}

@keyframes barraEntra {
    from {
        opacity: 0;
        transform: translate(-50%, 16px);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

.barraSelInfo {
    display: inline-flex;
    align-items: baseline;
    gap: 7px;
    font-size: 14.5px;
    color: rgb(190, 190, 190);
    white-space: nowrap;
}

.barraSelInfo strong {
    font-size: 17px;
    font-weight: 800;
    color: #fff;
}

.barraSelLimpiar {
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 8px 4px;
    font-family: var(--inter);
    font-size: 14px;
    color: rgb(150, 150, 150);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color .3s ease;
}

.barraSelLimpiar:hover {
    color: #fff;
}

.barraSelCta {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 12px 24px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
    background: linear-gradient(rgba(4, 1, 9, .3), rgba(4, 1, 9, .3)), var(--gradient);
    text-shadow: 0 1px 3px rgba(0, 0, 0, .35);
    transition: transform .3s ease, box-shadow .3s ease;
}

.barraSelCta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(37, 163, 247, .38);
}

/* Deja aire bajo el pie cuando la barra está visible */
.conBarra .pie {
    padding-bottom: 110px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .catalogo {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
        padding: 40px 40px 30px;
    }

    /* El índice pasa a barra horizontal pegada bajo el navbar */
    .catIndice {
        position: sticky;
        top: 50px;
        z-index: 900;
        margin: 0 -40px 40px;
        padding: 14px 40px;
        background: rgba(4, 1, 9, .92);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-bottom: 1px solid rgba(255, 255, 255, .08);
        gap: 0;
    }

    .catIndiceLabel {
        display: none;
    }

    .catIndiceNav {
        flex-direction: row;
        gap: 8px;
        border-left: none;
        min-width: 0;
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .catIndiceNav::-webkit-scrollbar {
        display: none;
    }

    .catIndiceLink {
        flex-shrink: 0;
        align-items: center;
        min-height: 40px;
        padding: 10px 16px;
        margin-left: 0;
        border: 1px solid rgba(255, 255, 255, .1);
        border-radius: 999px;
        white-space: nowrap;
        font-size: 13.5px;
    }

    .catIndiceLink i {
        display: none;
    }

    .catIndiceLink.activo {
        border-color: rgba(37, 163, 247, .55);
        background: rgba(37, 163, 247, .12);
    }

    /* El índice pegajoso tapa el ancla: se compensa aquí */
    .categoria {
        scroll-margin-top: 145px;
    }

    .servPortada {
        padding: 130px 40px 80px;
    }

    .proceso {
        padding: 70px 40px 80px;
    }

    .procesoPasos {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .cotizar {
        grid-template-columns: 1fr;
        gap: 44px;
        padding: 80px 40px 90px;
    }

    .cotizarIntro {
        position: relative;
        top: auto;
    }

    .pie {
        padding: 40px;
    }
}

@media (max-width: 768px) {
    .servPortada {
        padding: 120px 24px 70px;
    }

    .catalogo {
        padding: 30px 24px 20px;
    }

    .catIndice {
        margin: 0 -24px 34px;
        padding: 12px 24px;
    }

    .categoria {
        padding-bottom: 55px;
    }

    .categoria+.categoria {
        padding-top: 55px;
    }

    .categoriaHead {
        gap: 16px;
        margin-bottom: 28px;
    }

    .categoriaIcono {
        width: 46px;
        height: 46px;
    }

    .servLista {
        grid-template-columns: 1fr;
    }

    .proceso {
        padding: 60px 24px 70px;
    }

    .cotizar {
        padding: 70px 24px 80px;
    }

    .cotizarFormWrap {
        padding: 30px 24px;
    }

    .pie {
        padding: 34px 24px;
    }

    .pieInner {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
}

@media (max-width: 560px) {
    .servPortadaAcciones {
        flex-direction: column;
        align-items: stretch;
    }

    .btnPrincipal,
    .btnLinea {
        justify-content: center;
    }

    .procesoPasos {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .campoFila {
        grid-template-columns: 1fr;
    }

    .cotizarEnviar {
        align-self: stretch;
        justify-content: center;
    }

    /* Barra flotante ocupa el ancho en móvil */
    .barraSel {
        left: 12px;
        right: 12px;
        bottom: 12px;
        transform: none;
        gap: 10px;
        padding: 10px 10px 10px 16px;
        border-radius: 18px;
    }

    @keyframes barraEntra {
        from {
            opacity: 0;
            transform: translateY(16px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .barraSelInfo {
        flex: 1;
        min-width: 0;
        font-size: 13px;
        white-space: normal;
    }

    .barraSelLimpiar {
        display: none;
    }

    .barraSelCta {
        padding: 12px 20px;
    }

    .conBarra .pie {
        padding-bottom: 120px;
    }
}

/* ============================================
   MOVIMIENTO REDUCIDO
   ============================================ */
@media (prefers-reduced-motion: reduce) {

    .barraSel {
        animation: none;
    }

    .btnPrincipal:hover,
    .btnLinea:hover,
    .cotizarEnviar:hover,
    .barraSelCta:hover,
    .servItem:hover {
        transform: none;
    }
}
