/* ============================================================================
   PORTAFOLIO DE PRODUCTOS Y SERVICIOS · KPI CERTIFICATION · Edicion 2026
   Libro interactivo 3D. Estilo derivado de la web principal (index.html):
   paleta oro #D9A017 / #FFE46A, azul #0a192f, negro #050505, Cinzel + Lato,
   glass panels, text-gold-gradient con shine, glows rgba(217,160,23,...).
   Sin dependencias: CSS puro (no requiere Tailwind).
   ========================================================================== */

:root {
    --pk-oro: #D9A017;
    --pk-oro-brillo: #FFE46A;
    --pk-navy: #0a192f;
    --pk-negro: #050505;
    --pk-gris: #4b5563;
    --pk-texto: #d1d5db;
    --pk-texto-suave: #9ca3af;
    --pk-papel-a: #0b1322;
    --pk-papel-b: #070b12;
    --pk-pw: 470px;
    /* ancho de una pagina */
    --pk-ph: 640px;
    /* alto de una pagina  */
}

/* ---------------------------------------------------------------- base */
.pk-visor,
.pk-visor *,
.pk-impresion,
.pk-impresion * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.pk-impresion {
    font-family: 'Lato', sans-serif;
    color: var(--pk-texto);
}

.pk-impresion h1,
.pk-impresion h2,
.pk-impresion h3,
.pk-impresion .pk-serif {
    font-family: 'Cinzel', serif;
    letter-spacing: 0.05em;
}

.pk-impresion .pk-portada .pk-escudo {
    animation: none;
}

/* En PDF el degradado recortado deja un halo: se sustituye por oro solido */
.pk-impresion .pk-oro-gradiente {
    animation: none;
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
    -webkit-text-fill-color: #EFCB5A;
    color: #EFCB5A;
}

.pk-visor {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(90% 70% at 50% 0%, rgba(217, 160, 23, 0.07), transparent 55%),
        linear-gradient(180deg, #081120 0%, var(--pk-negro) 62%);
    color: var(--pk-texto);
    font-family: 'Lato', sans-serif;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
}

.pk-visor h1,
.pk-visor h2,
.pk-visor h3,
.pk-visor .pk-serif {
    font-family: 'Cinzel', serif;
    letter-spacing: 0.05em;
}

/* Gradiente dorado animado — mismo de la home (.text-gold-gradient) */
.pk-oro-gradiente {
    background: linear-gradient(135deg, #D09A15 0%, #FFF384 40%, #E8CA52 60%, #B8860B 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: pk-shine 5s linear infinite;
}

@keyframes pk-shine {
    to {
        background-position: 200% center;
    }
}

/* Glows ambientales — mismo .glow-effect de la home */
.pk-glow {
    position: absolute;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(217, 160, 23, 0.16) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    filter: blur(60px);
    z-index: 0;
}

/* ---------------------------------------------------------------- barra */
.pk-barra {
    position: relative;
    z-index: 30;
    flex: 0 0 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 18px;
    background: rgba(5, 5, 5, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(217, 160, 23, 0.15);
}

.pk-marca {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.pk-marca img {
    height: 40px;
    width: auto;
    filter: drop-shadow(0 0 8px rgba(217, 160, 23, 0.5));
}

.pk-marca-texto {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    white-space: nowrap;
}

.pk-marca-texto b {
    font-family: 'Cinzel', serif;
    color: #fff;
    font-size: 13px;
    letter-spacing: 0.18em;
}

.pk-marca-texto span {
    color: var(--pk-oro);
    font-size: 8px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-top: 2px;
}

.pk-acciones {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pk-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 3px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: transparent;
    color: #fff;
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.pk-btn svg {
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
}

.pk-btn:hover {
    border-color: var(--pk-oro);
    color: var(--pk-oro);
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 18px rgba(217, 160, 23, 0.25);
}

.pk-btn-oro {
    background: var(--pk-oro);
    border-color: var(--pk-oro);
    color: var(--pk-navy);
    box-shadow: 0 0 30px rgba(217, 160, 23, 0.4);
}

.pk-btn-oro:hover {
    background: #fff;
    border-color: #fff;
    color: var(--pk-navy);
    box-shadow: 0 0 40px rgba(217, 160, 23, 0.55);
}

.pk-btn-icono {
    padding: 9px 11px;
}

/* ---------------------------------------------------------------- escena */
.pk-escena {
    position: relative;
    z-index: 10;
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 3000px;
    perspective-origin: 50% 46%;
}

.pk-escena .pk-glow.pk-g1 {
    top: -140px;
    left: 8%;
}

.pk-escena .pk-glow.pk-g2 {
    bottom: -180px;
    right: 6%;
    width: 520px;
    height: 520px;
}

/* Rejilla sutil, misma textura que usa la home en #camino-az */
.pk-escena::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('https://www.transparenttextures.com/patterns/cubes.png');
    opacity: 0.05;
    pointer-events: none;
}

.pk-zoom {
    position: relative;
    width: calc(var(--pk-pw) * 2);
    height: var(--pk-ph);
    transform-origin: center center;
    z-index: 5;
}

/* ---------------------------------------------------------------- libro */
.pk-libro {
    position: absolute;
    inset: 0;
    /* el filter aplana el contexto 3D (el apilado usa z-index, a proposito);
       esta perspective SI llega a las hojas hijas y da fuga real al giro */
    perspective: 2600px;
    perspective-origin: 50% 45%;
    transform-style: preserve-3d;
    transition: transform 0.9s cubic-bezier(0.3, 0.1, 0.2, 1);
    filter: drop-shadow(0 42px 48px rgba(0, 0, 0, 0.65)) drop-shadow(0 0 70px rgba(217, 160, 23, 0.12));
}

/* Libro cerrado: la portada queda centrada. Terminado: contraportada centrada */
.pk-libro.pk-cerrado-inicio {
    transform: translateX(calc(var(--pk-pw) / -2));
}

.pk-libro.pk-cerrado-fin {
    transform: translateX(calc(var(--pk-pw) / 2));
}

/* Lomo */
.pk-libro::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 1%;
    bottom: 1%;
    width: 44px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.55) 38%, rgba(0, 0, 0, 0.8) 50%, rgba(0, 0, 0, 0.55) 62%, transparent 100%);
    z-index: 0;
    pointer-events: none;
}

.pk-libro.pk-cerrado-inicio::before,
.pk-libro.pk-cerrado-fin::before {
    opacity: 0;
}

/* ---------------------------------------------------------------- hojas */
.pk-hoja {
    position: absolute;
    top: 0;
    left: 50%;
    width: var(--pk-pw);
    height: 100%;
    transform-origin: left center;
    transform-style: preserve-3d;
    transition: transform 1s cubic-bezier(0.35, 0.08, 0.18, 1);
    cursor: pointer;
}

.pk-hoja.pk-volteada {
    transform: rotateY(-180deg);
}

.pk-hoja.pk-animando {
    z-index: 600;
}

/* Sugerencia de apertura en la portada (detalle 3D al pasar el mouse) */
@media (hover: hover) {
    .pk-libro.pk-cerrado-inicio .pk-hoja:not(.pk-volteada):first-child:hover {
        transform: rotateY(-13deg);
    }
}

.pk-cara {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    overflow: hidden;
    background: linear-gradient(158deg, var(--pk-papel-a) 0%, var(--pk-papel-b) 100%);
    border: 1px solid rgba(217, 160, 23, 0.22);
}

.pk-frontal {
    transform: translateZ(0.4px);
    border-radius: 4px 10px 10px 4px;
}

.pk-reverso {
    transform: rotateY(180deg) translateZ(0.4px);
    border-radius: 10px 4px 4px 10px;
}

/* Pliegue hacia el lomo */
.pk-frontal::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.14) 5%, transparent 12%);
    pointer-events: none;
    z-index: 4;
}

.pk-reverso::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(-90deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.14) 5%, transparent 12%);
    pointer-events: none;
    z-index: 4;
}

/* Brillo que barre la cara mientras la hoja gira */
.pk-cara::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, transparent 30%, rgba(255, 244, 190, 0.10) 48%, rgba(255, 255, 255, 0.16) 50%, rgba(255, 244, 190, 0.10) 52%, transparent 70%);
    background-size: 300% 100%;
    background-position: 120% 0;
    opacity: 0;
    pointer-events: none;
    z-index: 5;
}

.pk-hoja.pk-animando .pk-cara::after {
    opacity: 1;
    animation: pk-barrido 1s cubic-bezier(0.35, 0.08, 0.18, 1);
}

@keyframes pk-barrido {
    from {
        background-position: 130% 0;
    }

    to {
        background-position: -30% 0;
    }
}

/* ---------------------------------------------------------------- pagina */
.pk-pagina {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 34px 30px 40px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Marco fileteado interior */
.pk-pagina::before {
    content: '';
    position: absolute;
    inset: 11px;
    border: 1px solid rgba(217, 160, 23, 0.18);
    border-radius: 4px;
    pointer-events: none;
}

.pk-pagina.pk-sin-marco {
    padding: 0;
}

.pk-pagina.pk-sin-marco::before {
    display: none;
}

.pk-etiqueta {
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--pk-oro);
    margin-bottom: 10px;
}

.pk-num {
    position: absolute;
    bottom: 16px;
    font-family: 'Cinzel', serif;
    font-size: 10px;
    color: rgba(217, 160, 23, 0.55);
    letter-spacing: 0.15em;
}

.pk-num.pk-izq {
    left: 26px;
}

.pk-num.pk-der {
    right: 26px;
}

.pk-h2 {
    font-size: 21px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 6px;
}

.pk-filete {
    width: 64px;
    height: 2px;
    background: var(--pk-oro);
    margin: 8px 0 14px;
    box-shadow: 0 0 10px rgba(217, 160, 23, 0.5);
}

.pk-bajada {
    font-size: 11px;
    color: var(--pk-texto-suave);
    line-height: 1.55;
    margin-bottom: 12px;
}

/* Tarjeta — mismo lenguaje que las cards de la home (gray-900/60 + borde) */
.pk-tarjeta {
    position: relative;
    background: rgba(17, 24, 39, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 12px 14px;
    transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
}

.pk-tarjeta:hover {
    border-color: rgba(217, 160, 23, 0.5);
    box-shadow: 0 10px 30px -10px rgba(217, 160, 23, 0.25);
}

.pk-tarjeta-oro {
    background: linear-gradient(150deg, rgba(217, 160, 23, 0.12), rgba(217, 160, 23, 0.03));
    border-color: rgba(217, 160, 23, 0.35);
}

/* ------------------------------------------------ portada / contraportada */
.pk-portada {
    background:
        radial-gradient(115% 85% at 50% -6%, rgba(217, 160, 23, 0.2), transparent 58%),
        linear-gradient(165deg, #0d1b31 0%, #081120 46%, var(--pk-negro) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 44px 34px;
    position: relative;
}

.pk-portada::after {
    content: '';
    position: absolute;
    inset: 14px;
    border: 1px solid rgba(217, 160, 23, 0.4);
    border-radius: 6px;
    box-shadow: inset 0 0 0 3px rgba(5, 5, 5, 0.5), inset 0 0 0 4px rgba(217, 160, 23, 0.16);
    pointer-events: none;
}

.pk-portada .pk-escudo {
    width: 168px;
    height: auto;
    margin-bottom: 22px;
    filter: drop-shadow(0 0 34px rgba(217, 160, 23, 0.55));
    animation: pk-latido 3s ease-in-out infinite;
}

@keyframes pk-latido {

    0%,
    100% {
        filter: drop-shadow(0 0 26px rgba(217, 160, 23, 0.45));
    }

    50% {
        filter: drop-shadow(0 0 44px rgba(217, 160, 23, 0.75));
    }
}

.pk-portada .pk-edicion {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.45em;
    text-transform: uppercase;
    color: var(--pk-oro);
    margin-bottom: 14px;
}

.pk-portada h1 {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.3;
    max-width: 100%;
}

.pk-portada .pk-lema {
    margin-top: 18px;
    font-size: 11px;
    color: var(--pk-texto-suave);
    line-height: 1.6;
    max-width: 300px;
}

.pk-portada .pk-firma {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    font-family: 'Cinzel', serif;
    font-size: 8.5px;
    letter-spacing: 0.3em;
    color: rgba(217, 160, 23, 0.75);
    text-transform: uppercase;
}

/* ---------------------------------------------------------------- indice */
.pk-indice {
    display: flex;
    flex-direction: column;
    gap: 0;
    flex: 1;
    justify-content: center;
}

.pk-indice a {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 8px 2px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    color: var(--pk-texto);
    text-decoration: none;
    font-size: 11.5px;
    transition: color 0.3s, padding-left 0.3s;
    cursor: pointer;
}

.pk-indice a:hover {
    color: var(--pk-oro-brillo);
    padding-left: 8px;
}

.pk-indice b {
    font-family: 'Cinzel', serif;
    color: var(--pk-oro);
    font-size: 12px;
    min-width: 22px;
}

.pk-indice i {
    flex: 1;
    border-bottom: 1px dotted rgba(217, 160, 23, 0.25);
    transform: translateY(-3px);
}

.pk-indice span {
    font-family: 'Cinzel', serif;
    color: var(--pk-texto-suave);
    font-size: 10px;
}

/* ---------------------------------------------------------------- listas */
.pk-lista {
    list-style: none;
}

.pk-lista li {
    position: relative;
    padding-left: 13px;
    margin-bottom: 5px;
    font-size: 10.5px;
    line-height: 1.5;
    color: var(--pk-texto);
}

.pk-lista li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 4px;
    height: 4px;
    transform: rotate(45deg);
    background: var(--pk-oro);
}

/* ---------------------------------------------------------------- producto */
.pk-producto {
    display: flex;
    gap: 12px;
    align-items: stretch;
    padding: 9px 10px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(17, 24, 39, 0.55);
    margin-bottom: 9px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.35s, transform 0.35s, box-shadow 0.35s;
    cursor: pointer;
}

.pk-producto:hover {
    border-color: rgba(217, 160, 23, 0.55);
    transform: translateY(-2px);
    box-shadow: 0 12px 26px -12px rgba(217, 160, 23, 0.35);
}

.pk-producto img {
    width: 86px;
    min-width: 86px;
    height: 62px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid rgba(217, 160, 23, 0.3);
    filter: saturate(1.05);
}

.pk-producto-cuerpo {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pk-producto h3 {
    font-size: 12px;
    color: #fff;
    line-height: 1.25;
}

.pk-producto .pk-sub {
    font-size: 7.5px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--pk-oro);
    margin: 2px 0 3px;
}

.pk-producto p {
    font-size: 9.5px;
    color: var(--pk-texto-suave);
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pk-producto .pk-dato {
    font-size: 7.5px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(217, 160, 23, 0.8);
    margin-top: 3px;
}

/* ---------------------------------------------------------------- varios */
.pk-rector-fila {
    display: flex;
    gap: 12px;
    padding: 7px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.pk-rector-fila:last-child {
    border-bottom: 0;
}

.pk-rector-letra {
    font-family: 'Cinzel', serif;
    font-size: 17px;
    font-weight: 700;
    color: var(--pk-oro);
    min-width: 20px;
    text-align: center;
    text-shadow: 0 0 14px rgba(217, 160, 23, 0.55);
}

.pk-rector-fila b {
    display: block;
    color: #fff;
    font-size: 10.5px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.pk-rector-fila p {
    font-size: 9.8px;
    color: var(--pk-texto-suave);
    line-height: 1.45;
    margin-top: 1px;
}

.pk-dif {
    padding: 8px 0 7px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.pk-dif:last-child {
    border-bottom: 0;
}

.pk-dif b {
    display: block;
    color: #fff;
    font-size: 10.8px;
    line-height: 1.3;
}

.pk-dif b i {
    font-style: normal;
    font-family: 'Cinzel', serif;
    color: var(--pk-oro);
    margin-right: 7px;
    font-size: 11px;
}

.pk-dif p {
    font-size: 9.6px;
    color: var(--pk-texto-suave);
    line-height: 1.45;
    margin-top: 2px;
    padding-left: 22px;
}

.pk-paso {
    display: flex;
    gap: 9px;
    align-items: baseline;
    padding: 4.6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 9.8px;
    line-height: 1.4;
}

.pk-paso:last-child {
    border-bottom: 0;
}

.pk-paso i {
    font-style: normal;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    color: var(--pk-oro);
    font-size: 10.5px;
    min-width: 20px;
}

.pk-paso b {
    color: #fff;
    font-weight: 700;
}

.pk-paso span {
    color: var(--pk-texto-suave);
}

.pk-cifras {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin: 12px 0;
}

.pk-cifra {
    text-align: center;
    padding: 12px 6px;
    border: 1px solid rgba(217, 160, 23, 0.25);
    border-radius: 8px;
    background: rgba(217, 160, 23, 0.05);
}

.pk-cifra b {
    display: block;
    font-family: 'Cinzel', serif;
    font-size: 22px;
    color: var(--pk-oro);
    text-shadow: 0 0 18px rgba(217, 160, 23, 0.45);
}

.pk-cifra span {
    font-size: 7.5px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--pk-texto-suave);
}

/* Matriz: linea de servicio */
.pk-linea-servicio {
    margin-bottom: 10px;
    padding-bottom: 9px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.pk-linea-servicio:last-child {
    border-bottom: 0;
}

.pk-linea-servicio h3 {
    font-size: 10.5px;
    color: #fff;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.pk-linea-servicio .pk-fila-dato {
    display: flex;
    gap: 8px;
    font-size: 9.3px;
    line-height: 1.5;
    margin-bottom: 2px;
}

.pk-fila-dato b {
    color: var(--pk-oro);
    font-weight: 700;
    font-size: 7.6px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    min-width: 86px;
    padding-top: 1.5px;
}

.pk-fila-dato span {
    color: var(--pk-texto);
    flex: 1;
}

/* Camino A-Z */
.pk-az {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    flex: 1;
    align-content: center;
}

.pk-az .pk-tarjeta {
    padding: 16px 14px;
}

.pk-az .pk-letra {
    font-family: 'Cinzel', serif;
    font-size: 34px;
    font-weight: 800;
    color: rgba(217, 160, 23, 0.22);
    -webkit-text-stroke: 1px rgba(217, 160, 23, 0.7);
    line-height: 1;
    display: block;
    margin-bottom: 8px;
}

.pk-az h3 {
    font-size: 13px;
    color: #fff;
    margin-bottom: 4px;
}

.pk-az p {
    font-size: 9.6px;
    color: var(--pk-texto-suave);
    line-height: 1.5;
}

/* Pagina clara (Garantia) */
.pk-p-clara {
    background:
        radial-gradient(100% 90% at 50% 0%, #ffffff 0%, #f2eee4 62%, #e7e0cf 100%);
    color: #1b1b1b;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.pk-p-clara::before {
    border-color: rgba(169, 118, 15, 0.35) !important;
}

.pk-p-clara .pk-etiqueta {
    color: #A9760F;
    text-align: center;
}

.pk-p-clara .pk-garantia-frase {
    font-family: 'Cinzel', serif;
    font-size: 23px;
    font-weight: 800;
    line-height: 1.35;
    color: #1b1b1b;
}

.pk-p-clara .pk-garantia-frase em {
    font-style: normal;
    color: #A9760F;
}

.pk-p-clara .pk-condicion {
    margin-top: 16px;
    font-size: 10.5px;
    color: #3b3b3b;
    line-height: 1.6;
    max-width: 320px;
}

.pk-p-clara .pk-condicion strong {
    color: #A9760F;
}

.pk-p-clara .pk-num {
    color: rgba(169, 118, 15, 0.7);
}

.pk-sello-mini {
    width: 64px;
    height: auto;
    margin: 0 auto 14px;
    display: block;
}

/* ---------------------------------------------------------------- flechas */
.pk-flecha {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1px solid rgba(217, 160, 23, 0.35);
    background: rgba(5, 5, 5, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--pk-oro);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pk-flecha svg {
    width: 22px;
    height: 22px;
}

.pk-flecha:hover {
    border-color: var(--pk-oro);
    box-shadow: 0 0 26px rgba(217, 160, 23, 0.4);
    background: rgba(217, 160, 23, 0.12);
}

.pk-flecha:disabled {
    opacity: 0.25;
    cursor: default;
    box-shadow: none;
}

.pk-flecha.pk-ant {
    left: 22px;
}

.pk-flecha.pk-sig {
    right: 22px;
}

/* ---------------------------------------------------------------- pie */
.pk-pie {
    position: relative;
    z-index: 30;
    flex: 0 0 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 0 20px;
    background: rgba(5, 5, 5, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(217, 160, 23, 0.15);
}

.pk-indicador {
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--pk-texto-suave);
    white-space: nowrap;
}

.pk-indicador b {
    color: var(--pk-oro);
}

.pk-progreso {
    position: relative;
    width: min(320px, 34vw);
    height: 3px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.12);
    overflow: hidden;
}

.pk-progreso i {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0%;
    background: linear-gradient(90deg, var(--pk-oro), var(--pk-oro-brillo));
    box-shadow: 0 0 12px rgba(217, 160, 23, 0.7);
    transition: width 0.5s ease;
}

.pk-ayuda {
    font-size: 8.5px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(156, 163, 175, 0.55);
    white-space: nowrap;
}

/* ---------------------------------------------------------------- compartir */
.pk-compartir-panel {
    position: absolute;
    top: 64px;
    right: 18px;
    z-index: 60;
    width: 230px;
    background: rgba(5, 5, 5, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(217, 160, 23, 0.3);
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(217, 160, 23, 0.12);
    opacity: 0;
    transform: translateY(-8px) scale(0.97);
    pointer-events: none;
    transition: all 0.28s ease;
}

.pk-compartir-panel.pk-abierto {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

.pk-compartir-panel a,
.pk-compartir-panel button {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 10px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--pk-texto);
    font-family: 'Lato', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s;
    text-align: left;
}

.pk-compartir-panel a:hover,
.pk-compartir-panel button:hover {
    background: rgba(217, 160, 23, 0.1);
    color: var(--pk-oro-brillo);
}

.pk-compartir-panel svg {
    width: 16px;
    height: 16px;
    color: var(--pk-oro);
    flex: 0 0 16px;
}

/* ---------------------------------------------------------------- modal (home) */
#portafolio-modal {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: none;
}

#portafolio-modal.pk-abierto {
    display: block;
}

#portafolio-modal .pk-fondo-modal {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.35s ease;
}

#portafolio-modal .pk-cuerpo-modal {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(0.96) translateY(16px);
    transition: all 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

#portafolio-modal.pk-visible .pk-fondo-modal {
    opacity: 1;
}

#portafolio-modal.pk-visible .pk-cuerpo-modal {
    opacity: 1;
    transform: none;
}

/* ---------------------------------------------------------------- movil */
@media (max-width: 900px) {
    .pk-marca-texto {
        display: none;
    }

    .pk-btn span {
        display: none;
    }

    .pk-btn {
        padding: 9px 11px;
    }

    .pk-flecha {
        width: 42px;
        height: 42px;
    }

    .pk-flecha.pk-ant {
        left: 8px;
    }

    .pk-flecha.pk-sig {
        right: 8px;
    }

    .pk-ayuda {
        display: none;
    }
}

/* Modo plano (una pagina, movil) — sin 3D, deslizamiento */
.pk-plano .pk-zoom {
    width: var(--pk-pw);
}

.pk-plano .pk-libro {
    transform: none !important;
    filter: drop-shadow(0 24px 34px rgba(0, 0, 0, 0.6));
}

.pk-plano .pk-libro::before {
    display: none;
}

.pk-plano .pk-hoja {
    display: none;
}

.pk-plano-pagina {
    position: absolute;
    inset: 0;
    border: 1px solid rgba(217, 160, 23, 0.22);
    border-radius: 10px;
    overflow: hidden;
    background: linear-gradient(158deg, var(--pk-papel-a) 0%, var(--pk-papel-b) 100%);
    opacity: 0;
    transform: translateX(26px);
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.pk-plano-pagina.pk-visible {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

.pk-plano-pagina.pk-saliendo-izq {
    transform: translateX(-26px);
}

/* ---------------------------------------------------------------- impresion */
.pk-impresion {
    background: #fff;
}

.pk-impresion .pk-hoja-impresa {
    width: var(--pk-pw);
    height: var(--pk-ph);
    overflow: hidden;
    page-break-after: always;
    break-after: page;
    position: relative;
    background: linear-gradient(158deg, var(--pk-papel-a) 0%, var(--pk-papel-b) 100%);
}

.pk-impresion .pk-hoja-impresa:last-child {
    page-break-after: auto;
    break-after: auto;
}

@media print {
    @page {
        size: 352.5pt 480pt;
        margin: 0;
    }

    body {
        margin: 0;
    }

    .pk-no-imprimir {
        display: none !important;
    }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {

    .pk-hoja,
    .pk-libro,
    .pk-oro-gradiente,
    .pk-portada .pk-escudo {
        transition: none !important;
        animation: none !important;
    }
}
