
/* =========================================================
   PT CARTeles · ESTILOS PÚBLICOS
   ========================================================= */

.ptc-analysis {
    --ptc-red: #e32619;
    --ptc-ink: #242321;

    max-width: 1500px;
    margin: 45px auto 44px;
    color: var(--ptc-ink);
    font-family: Georgia, 'Times New Roman', serif;
}

/* ---------------------------------------------------------
   INTRODUCCIÓN
   --------------------------------------------------------- */

.ptc-intro {
    max-width: 850px;
    margin: 0 auto 25px;
    text-align: center;
    font-size: 15px;
    line-height: 1.5;
    color: #555;
}

/* ---------------------------------------------------------
   ESTRUCTURA PRINCIPAL
   --------------------------------------------------------- */

.ptc-stage {
    position: relative;
    display: grid;
    grid-template-columns:
        minmax(240px, 1.2fr)
        minmax(300px, min(40vw, 540px))
        minmax(240px, 1.2fr);
    column-gap: clamp(20px, 3vw, 44px);
    align-items: stretch;

    width: calc(100% + 80px);
    max-width: none;
    margin: 0 -40px;
    box-sizing: border-box;
}

.ptc-poster-wrap {
    grid-column: 2;
    position: relative;
    z-index: 1;
    width: 100%;
    line-height: 0;
}

.ptc-poster {
    display: block;
    width: 100%;
    height: auto;
    box-shadow: 4px 4px 10px rgb(0 0 0 / 52%);
}

/* Mensaje informativo sobre el cartel */

.ptc-poster-hint {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;

    width: max-content;
    max-width: 90%;
    padding: 6px 10px;

    background: rgba(245, 245, 245, .88);
    color: #333;
    font-size: 11px;
    line-height: 1.3;
    text-align: center;
    border-radius: 4px;
    pointer-events: none;
}

/* ---------------------------------------------------------
   COMENTARIOS
   --------------------------------------------------------- */

.ptc-notes {
    position: relative;
    min-height: 100%;
    width: 100%;
    max-width: 460px;
    font-size: 14px;
    line-height: 1.24;
    z-index: 2;
}

.ptc-note {
    position: absolute;
    top: var(--note-top);
    width: 100%;
    max-width: 390px;
    max-height: calc(100% - 18px);
    overflow: visible;

    opacity: .22;
    filter: blur(2.8px);
    pointer-events: none;
    color: #393735;

    transition: opacity .3s ease, filter .3s ease, color .3s ease;
}

.ptc-left .ptc-note {
    right: 0;
    text-align: left;
}

.ptc-right .ptc-note {
    left: 0;
    text-align: left;
}

.ptc-note.is-active {
    opacity: 1;
    filter: blur(0);
    pointer-events: auto;
    color: #111;
}

/* Título del comentario */

.ptc-tag {
    display: block;
    margin: 0 0 0;
    color: var(--ptc-red);

    font: 700 14px Gotham, sans-serif;
    letter-spacing: .05em;
    line-height: 1;
    text-transform: uppercase;
}

/* Texto del comentario */

.ptc-note-text {
    font-family: 'Tiempos Text', serif !important;
    font-size: 18px !important;
    font-weight: 500 !important;
    line-height: 1.25 !important;
    letter-spacing: -.05em !important;
}

.ptc-note-text p,
.ptc-note p {
    margin: 0 0 8px;
    white-space: normal;
}

.ptc-note-text {
    white-space: pre-wrap !important;
}

.ptc-note-text br {
    display: block;
    content: "";
    margin-bottom: 0.5em;
}

/* ---------------------------------------------------------
   PUNTOS INTERACTIVOS
   --------------------------------------------------------- */

.ptc-hotspots {
    position: absolute;
    inset: 0;
    z-index: 6;
    pointer-events: none;
}

.ptc-hotspot {
    position: absolute;
    left: var(--x);
    top: var(--y);
    z-index: 6;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 32px;
    height: 32px;
    padding: 0;

    transform: translate(-50%, -50%);
    border: 0;
    border-radius: 50%;
    background: var(--ptc-red);
    color: #fff;

    font-family: Gotham, sans-serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;

    cursor: pointer;
    pointer-events: auto;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;

    opacity: 0;
    box-shadow: 0 0 0 0 #e3261970;
    animation: ptc-pulse 1.8s infinite;
    transition: opacity .25s ease;
}

/* Mostrar los puntos al pasar el ratón por el cartel */

.ptc-stage:has(.ptc-poster-wrap:hover) .ptc-hotspot {
    opacity: 1;
}

/* Anillo exterior */

.ptc-hotspot::after {
    content: "";
    position: absolute;
    inset: -7px;

    border: 2px solid var(--ptc-red);
    border-radius: 50%;

    animation: ptc-ring 1.8s infinite;
}

/* Punto seleccionado */

.ptc-hotspot[aria-pressed="true"] {
    animation: none;
    background: rgba(227, 38, 25, .55);
    border: 2px solid rgba(227, 38, 25, .48);
    box-shadow: 0 0 0 5px rgba(227, 38, 25, .12);
    backdrop-filter: blur(1px);
    color: transparent;
}

.ptc-hotspot:hover {
    color: transparent;
    background: rgba(227, 38, 25, .55);
}

.ptc-hotspot:focus-visible {
    outline: 2px solid #222;
    outline-offset: 7px;
}

/* ---------------------------------------------------------
   ANIMACIONES
   --------------------------------------------------------- */

@keyframes ptc-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 #e3261960;
    }

    50% {
        box-shadow: 0 0 0 5px #e3261900;
    }
}

@keyframes ptc-ring {
    0% {
        transform: scale(.72);
        opacity: .95;
    }

    100% {
        transform: scale(2.25);
        opacity: 0;
    }
}

/* ---------------------------------------------------------
   CONECTORES
   Se mantienen ocultos según el diseño actual.
   --------------------------------------------------------- */

.ptc-connectors {
    display: none !important;
}

.ptc-left .ptc-note.is-active::after,
.ptc-right .ptc-note.is-active::after {
    display: none !important;
}

/* Pie de cartel */

.ptc-caption {
    margin-top: 14px;
    color: #888;
    font: 11px Arial, sans-serif;
    text-align: center;
}

/* =========================================================
   TABLET Y MÓVIL
   ========================================================= */

@media (max-width: 850px) {

    .ptc-stage {
        display: flex;
        flex-direction: column;
        align-items: center;
        min-height: 0;
        gap: 12px;
        position: relative;
        width: 100%;
        margin: 0;
    }

    .ptc-poster-wrap {
        width: min(78vw, 520px);
        order: 0;
    }

    .ptc-notes {
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);

        display: block;
        width: min(72vw, 390px);
        min-height: 0;
        height: calc(100% - 26px);
        z-index: 6;
        pointer-events: none;
    }

    .ptc-note,
    .ptc-left .ptc-note,
    .ptc-right .ptc-note {
        display: none;
        position: absolute;
        top: 50%;
        left: 0;
        right: auto;
        transform: translateY(-50%);

        width: 100%;
        max-width: none;
        max-height: 68vh;
        overflow: visible;
        padding: 17px 19px;

        background: rgba(255, 255, 255, .94);
        border: 1px solid rgba(255, 255, 255, .9);
        border-radius: 13px;
        box-shadow: 0 8px 30px rgba(0, 0, 0, .22);

        color: #242321;
        text-align: left;
        opacity: 0;
        filter: none;
        pointer-events: none;

        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);

        transition: opacity .22s ease;
    }

    .ptc-note.is-active {
        display: block;
        opacity: 1;
        filter: none;
        pointer-events: auto;
    }

    .ptc-note.is-active::after {
        display: none;
    }

    .ptc-note-text {
        font-size: 12.5px !important;
        line-height: 1.32 !important;
    }

    .ptc-note-text p,
    .ptc-note p {
        font-size: 12.5px !important;
        line-height: 1.32 !important;
        margin: 0 0 7px;
    }

    .ptc-hotspots {
        inset: 0 auto auto;
        left: 50%;
        transform: translateX(-50%);

        width: min(78vw, 520px);
        height: auto;
        aspect-ratio: 700 / 1012;

        pointer-events: none;
        z-index: 8;
    }

    .ptc-hotspot {
        width: 22px;
        height: 22px;
        min-width: 22px;
        min-height: 22px;
    }

    .ptc-connectors {
        display: none;
    }

    .ptc-poster-hint {
        font-size: 10px;
        bottom: 8px;
    }
}

/* ---------------------------------------------------------
   MENSAJE SOBRE EL CARTEL (INSTRUCCIONES)
   --------------------------------------------------------- */

.ptc-poster-wrap::before {
    content: "Pasa el ratón sobre el cartel para ver los detalles de algunos elementos.";
    position: absolute;
    bottom: 100%;
    left: 0;
    width: 100%;
    padding-bottom: 8px;
    color: #555;
    font-family: "Tiempos Text", serif;
    font-size: 15px !important;
    line-height: 1.3 !important;
    text-align: center;
    white-space: normal;
    pointer-events: none;
    letter-spacing: -0.06em;
    font-style: italic;
}

/* ---------------------------------------------------------
   MÓVILES PEQUEÑOS
   --------------------------------------------------------- */

@media (max-width: 480px) {

    .ptc-intro {
        text-align: left;
        font-size: 14px;
    }

    .ptc-poster-wrap {
        width: min(88vw, 440px);
    }

    .ptc-hotspots {
        width: min(88vw, 440px);
    }

    .ptc-notes {
        width: min(80vw, 360px);
    }

    .ptc-note,
    .ptc-left .ptc-note,
    .ptc-right .ptc-note {
        padding: 14px 16px;
        border-radius: 12px;
    }
}

@media (max-width: 850px) {

    .ptc-stage .ptc-hotspot {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity .2s ease, visibility .2s ease;
    }

    .ptc-stage.ptc-mobile-spots-visible .ptc-hotspot {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

}