﻿/* ====== LaPalmaOnline /dowloadpdfxml (CSS Isolation) ====== */
/* Prefijo único: lpo-dlpx */

.lpo-dlpx, .lpo-dlpx * {
    box-sizing: border-box;
}

.lpo-dlpx {
    --dlpx-ink: #0b1220;
    --dlpx-muted: rgba(11, 18, 32, .62);
    --dlpx-line: rgba(11, 18, 32, .10);
    --dlpx-bg: #f6f8fc;
    --dlpx-card: #fff;
    --dlpx-hero-0: #050b16;
    --dlpx-hero-1: #0b1b34;
    --dlpx-hero-2: #0b2a4a;
    --dlpx-a: #3b82f6;
    --dlpx-b: #22c55e;
    background: var(--dlpx-bg);
    color: var(--dlpx-ink);
    min-height: 100dvh;
}

.lpo-dlpx__hero {
    position: relative;
    color: #fff;
    padding: clamp(22px, 3.6vw, 40px) clamp(18px, 3.6vw, 36px);
    background: linear-gradient(135deg, var(--dlpx-hero-0), var(--dlpx-hero-1) 45%, var(--dlpx-hero-2));
    overflow: hidden;
}

    .lpo-dlpx__hero::before {
        content: "";
        position: absolute;
        inset: -60px;
        background: radial-gradient(640px 240px at 18% 18%, rgba(59,130,246,.38), transparent 60%), radial-gradient(560px 240px at 80% 28%, rgba(34,197,94,.20), transparent 60%), radial-gradient(560px 260px at 55% 115%, rgba(255,255,255,.08), transparent 60%);
        pointer-events: none;
    }

.lpo-dlpx__heroInner {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
}

.lpo-dlpx__kicker {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.08);
    font-weight: 900;
    letter-spacing: .6px;
    font-size: .78rem;
}

.lpo-dlpx__title {
    margin: 10px 0 6px;
    font-weight: 950;
    letter-spacing: -0.6px;
    font-size: clamp(26px, 3.4vw, 44px);
    line-height: 1.05;
}

.lpo-dlpx__subtitle {
    margin: 0 0 14px;
    max-width: 760px;
    color: rgba(255,255,255,.84);
    line-height: 1.55;
}

.lpo-dlpx__form {
    margin-top: 10px;
}

.lpo-dlpx__row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: end;
}

.lpo-dlpx__field {
    min-width: 0;
}

.lpo-dlpx__label {
    display: block;
    font-weight: 850;
    margin-bottom: 6px;
    color: rgba(255,255,255,.92);
}

.lpo-dlpx__input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.16);
    background: rgba(255,255,255,.08);
    color: #fff;
    outline: none;
    font: inherit;
    font-weight: 750;
    letter-spacing: .2px;
}

    .lpo-dlpx__input::placeholder {
        color: rgba(255,255,255,.55);
    }

    .lpo-dlpx__input:focus {
        border-color: rgba(59,130,246,.55);
        box-shadow: 0 0 0 3px rgba(59,130,246,.25);
    }

.lpo-dlpx__hint {
    margin-top: 6px;
    color: rgba(255,255,255,.72);
    font-size: .86rem;
    font-weight: 650;
}

.lpo-dlpx__btn {
    appearance: none;
    border: 0;
    cursor: pointer;
    border-radius: 14px;
    padding: 12px 16px;
    font: inherit;
    font-weight: 900;
    letter-spacing: .2px;
    color: #0b1220;
    background: linear-gradient(135deg, rgba(59,130,246,.98), rgba(99,102,241,.98));
    box-shadow: 0 16px 45px rgba(0,0,0,.20);
    display: inline-flex;
    gap: 10px;
    align-items: center;
}

    .lpo-dlpx__btn:disabled {
        opacity: .65;
        cursor: not-allowed;
    }

.lpo-dlpx__spinner {
    width: 16px;
    height: 16px;
    border-radius: 999px;
    border: 2px solid rgba(255,255,255,.55);
    border-top-color: rgba(255,255,255,0);
    animation: lpoDlpxSpin 900ms linear infinite;
}

@keyframes lpoDlpxSpin {
    to {
        transform: rotate(360deg);
    }
}

.lpo-dlpx__validation {
    margin: 10px 0 0;
    color: rgba(255,255,255,.86);
}

.lpo-dlpx__main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 18px clamp(18px, 3.6vw, 36px) 34px;
}

.lpo-dlpx__alert {
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(220,53,69,.25);
    background: rgba(220,53,69,.08);
    color: #7a1220;
    font-weight: 750;
    margin-bottom: 12px;
}

.lpo-dlpx__empty {
    padding: 16px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid var(--dlpx-line);
    box-shadow: 0 18px 55px rgba(2,8,23,.06);
    color: rgba(11,18,32,.75);
    font-weight: 750;
}

.lpo-dlpx__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.lpo-dlpx__card {
    appearance: none;
    border: 1px solid var(--dlpx-line);
    background: linear-gradient(180deg, #ffffff, #fbfcff);
    border-radius: 18px;
    padding: 16px;
    cursor: pointer;
    text-align: left;
    box-shadow: 0 18px 55px rgba(2,8,23,.08);
    transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
    font: inherit;
    color: inherit;
    position: relative;
    overflow: hidden;
}

    .lpo-dlpx__card::before {
        content: "";
        position: absolute;
        inset: -60px;
        background: radial-gradient(520px 240px at 18% 10%, rgba(59,130,246,.12), transparent 55%), radial-gradient(520px 240px at 85% 30%, rgba(34,197,94,.10), transparent 55%);
        pointer-events: none;
    }

    .lpo-dlpx__card:hover {
        transform: translateY(-2px);
        border-color: rgba(59,130,246,.22);
        box-shadow: 0 26px 80px rgba(2,8,23,.12);
    }

    .lpo-dlpx__card:focus-visible {
        outline: 3px solid rgba(59,130,246,.40);
        outline-offset: 3px;
    }

.lpo-dlpx__cardTop {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.lpo-dlpx__pill {
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(59,130,246,.10);
    border: 1px solid rgba(59,130,246,.16);
    color: #1d4ed8;
    font-weight: 950;
    letter-spacing: .6px;
    font-size: .78rem;
    text-transform: uppercase;
}

.lpo-dlpx__arrow {
    position: relative;
    font-weight: 950;
    color: rgba(11,18,32,.55);
}

.lpo-dlpx__cardTitle {
    position: relative;
    font-weight: 950;
    letter-spacing: -0.2px;
    font-size: 1.35rem;
    margin-bottom: 10px;
}

.lpo-dlpx__meta {
    position: relative;
    display: grid;
    gap: 8px;
}

.lpo-dlpx__metaRow {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px dashed rgba(11,18,32,.14);
    background: #fbfcff;
}

.lpo-dlpx__k {
    color: rgba(11,18,32,.62);
    font-weight: 800;
}

.lpo-dlpx__v {
    color: rgba(11,18,32,.86);
    font-weight: 900;
}

.lpo-dlpx__cta {
    position: relative;
    margin-top: 12px;
    font-weight: 900;
    color: rgba(11,18,32,.70);
}

@media (max-width: 900px) {
    .lpo-dlpx__row {
        grid-template-columns: 1fr;
    }

    .lpo-dlpx__btn {
        width: 100%;
        justify-content: center;
    }

    .lpo-dlpx__grid {
        grid-template-columns: 1fr;
    }
}



/* ====== Nuevas cards ====== */

/* ================================
   Cotizaciones - Cards (FIX CLICK)
   Prefijo: lpo-dlpx__q*
================================ */

/* grid específico para cotizaciones */
.lpo-dlpx__qGrid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 14px;
}

@media (max-width:900px) {
    .lpo-dlpx__qGrid {
        grid-template-columns: 1fr;
    }
}

/* wrapper */
.lpo-dlpx__qWrap {
    display: grid;
    gap: 10px;
}

/* card base */
.lpo-dlpx__qCard {
    --q-bg: #0b1220;
    --q-text: #fff;
    position: relative;
    width: 100%;
    height: 360px;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.10);
    background: var(--q-bg);
    box-shadow: 0 18px 60px rgba(2,8,23,.14);
    cursor: pointer;
    text-align: left;
    padding: 0;
    font: inherit;
    color: inherit;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
}

    /* blob */
    .lpo-dlpx__qCard::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(135deg, rgba(59,130,246,.98) 0%, rgba(59,130,246,.90) 55%, rgba(34,197,94,.22) 100%);
        clip-path: circle(150px at 80% 20%);
        transition: .55s ease-in-out;
        opacity: .95;
        /* CLAVE: no bloquear clicks */
        pointer-events: none;
        /* capa */
        z-index: 1;
    }

/* aura */
.lpo-dlpx__qPhoto {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    height: 220px;
    transition: .55s ease-in-out;
    pointer-events: none;
    z-index: 2;
}

/* contenido (SIEMPRE arriba y clickeable) */
.lpo-dlpx__qContent {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 112px;
    padding: 14px 14px 16px;
    transition: .9s ease;
    z-index: 3;
    pointer-events: auto;
}

/* título */
.lpo-dlpx__qTitleRow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.lpo-dlpx__qTitle {
    font-weight: 900;
    letter-spacing: .2px;
    color: var(--q-text);
}

.lpo-dlpx__qId {
    margin-left: 10px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.14);
    font-weight: 950;
}

.lpo-dlpx__qArrow {
    color: rgba(255,255,255,.78);
    font-weight: 950;
}

/* bg title gigante */
.lpo-dlpx__qBgTitle {
    position: absolute;
    top: -160%;
    left: -6%;
    font-size: 9.5em;
    font-weight: 950;
    font-style: italic;
    color: rgba(255,255,255,.05);
    max-width: 120%;
    transition: .65s ease;
    pointer-events: none;
}

/* features: ocultas por defecto */
.lpo-dlpx__qFeature {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    visibility: hidden;
    opacity: 0;
    transition: .5s ease;
}

    .lpo-dlpx__qFeature div {
        color: rgba(255,255,255,.72);
        font-weight: 800;
        font-size: .82rem;
        letter-spacing: .8px;
        text-transform: uppercase;
    }

.lpo-dlpx__qChip {
    max-width: 62%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 6px 10px;
    border-radius: 10px;
    background: rgba(255,255,255,.92);
    color: #0b1220;
    font-weight: 950;
}

/* botón descargar dentro: oculto por defecto */
.lpo-dlpx__qDownload {
    position: relative;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 10px;
    padding: 10px 14px;
    border-radius: 12px;
    border: 0;
    background: rgba(255,255,255,.92);
    color: #0b1220;
    font-weight: 950;
    letter-spacing: .2px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(22px);
    pointer-events: none;
    transition: .5s ease;
}

/* PC: aparece en hover */
@media (hover:hover) and (pointer:fine) {
    .lpo-dlpx__qCard:hover .lpo-dlpx__qDownload {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto !important;
        transition-delay: .40s;
    }
}

/* Móvil y también PC (si queda seleccionada): aparece en selected */
.lpo-dlpx__qCard--sel .lpo-dlpx__qDownload {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto !important;
    transition-delay: .40s;
}

/* =========================
   Desktop: hover expande
   (solo donde existe hover real)
========================= */
@media (hover:hover) and (pointer:fine) {

    .lpo-dlpx__qCard:hover::before {
        clip-path: circle(320px at 80% -20%);
    }

    .lpo-dlpx__qCard:hover .lpo-dlpx__qPhoto {
        top: 0%;
        transform: translateY(0%);
    }

    .lpo-dlpx__qCard:hover .lpo-dlpx__qContent {
        height: 245px;
    }

    .lpo-dlpx__qCard:hover .lpo-dlpx__qBgTitle {
        transform: translateY(62%);
    }

    .lpo-dlpx__qCard:hover .lpo-dlpx__qFeature {
        visibility: visible;
        opacity: 1;
        transition-delay: .35s;
    }

    .lpo-dlpx__qCard:hover .lpo-dlpx__qDownload {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
        transition-delay: .40s;
    }
}

/* =========================
   Móvil: selected expande
========================= */
.lpo-dlpx__qCard--sel {
    border-color: rgba(59,130,246,.35);
    box-shadow: 0 22px 80px rgba(2,8,23,.22);
}

    .lpo-dlpx__qCard--sel::before {
        clip-path: circle(320px at 80% -20%);
    }

    .lpo-dlpx__qCard--sel .lpo-dlpx__qPhoto {
        top: 0%;
        transform: translateY(0%);
    }

    .lpo-dlpx__qCard--sel .lpo-dlpx__qContent {
        height: 245px;
    }

    .lpo-dlpx__qCard--sel .lpo-dlpx__qBgTitle {
        transform: translateY(62%);
    }

    .lpo-dlpx__qCard--sel .lpo-dlpx__qFeature {
        visibility: visible;
        opacity: 1;
        transition-delay: .35s;
    }

    .lpo-dlpx__qCard--sel .lpo-dlpx__qDownload {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
        transition-delay: .40s;
    }


/* ===== Tip superior ===== */
.lpo-dlpx__tip {
    margin-top: 12px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.16);
    background: rgba(255,255,255,.08);
    color: rgba(255,255,255,.88);
    font-weight: 750;
    line-height: 1.35;
    max-width: 760px;
}

.lpo-dlpx__tipDot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(34,197,94,.95);
    box-shadow: 0 0 0 6px rgba(34,197,94,.18);
    flex: 0 0 auto;
}

/* ===== Hint dentro de card ===== */
.lpo-dlpx__qHint {
    margin-top: 10px;
    padding: 8px 10px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.08);
    color: rgba(255,255,255,.88);
    font-size: .82rem;
    font-weight: 850;
    letter-spacing: .2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 6px 10px;
    margin-top: 8px;
}

.lpo-dlpx__qHint--step1 {
    opacity: .85;
}

.lpo-dlpx__qHint--step2 {
    border-color: rgba(34,197,94,.28);
    background: rgba(34,197,94,.14);
}

/* ===== Pulso suave para guiar al botón (solo cuando seleccionada) ===== */
@keyframes lpoDlpxGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(59,130,246,0);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(59,130,246,.18);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(59,130,246,0);
    }
}

.lpo-dlpx__qCard--sel .lpo-dlpx__qDownload {
    animation: lpoDlpxGlow 1.15s ease-in-out 2;
}