.ps-wrapper-9677683d {
    width: 100%;
    display: flex;
    justify-content: center;
    position: relative;
}
.ps-grid-9677683d {
    max-width: 1290px;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    box-sizing: border-box;
    margin: 0 auto;
}
.ps-card-9677683d {
    border: 1px solid #eaeaea;
    border-radius: 0;
    overflow: hidden;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.ps-image-slider-9677683d {
    width: 100%;
    height: 300px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}
.ps-image-slider-9677683d img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}
.ps-image-slider-9677683d img.active {
    opacity: 1;
}
.ps-content-9677683d {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.ps-title-9677683d {
    margin: 0 0 12px;
    font-size: 1.5rem;
    font-weight: 600;
    color: #02086A;
    cursor: pointer;
}
.ps-desc-9677683d {
    margin: 0 0 24px;
    color: #666;
    flex-grow: 1;
    line-height: 1.6;
}
.ps-btn-9677683d {
    display: inline-block;
    background: #00c2f3;
    color: #041768;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 50px;
    text-align: center;
    align-self: flex-start;
    font-weight: 500;
    transition: background 0.2s ease, opacity 0.2s ease;
}
.ps-btn-9677683d:hover {
    background: #00c2f3;
    opacity: 0.8;
    color: #041768;
}

/* Modal Styles */
.ps-modal-overlay-9677683d {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}
.ps-modal-content-9677683d {
    background: #fff;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    border-radius: 0;
    position: relative;
    overflow-y: auto;
    padding: 40px;
    padding-top: 60px;
    box-sizing: border-box;
}
.ps-modal-close-9677683d {
    position: absolute;
    top: 15px;
    right: 20px;
    width: 40px;
    height: 40px;
    min-width: 40px;
    padding: 0;
    margin: 0;
    border-radius: 50%;
    box-sizing: border-box;
    font-size: 30px;
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.2s ease, border-radius 0.2s ease;
}
.ps-modal-close-9677683d:hover {
    background: #f0f0f0;
    border-radius: 50%;
}
.ps-modal-layout-9677683d {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}
.ps-modal-main-image-9677683d img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    border: 1px solid #eaeaea;
    border-radius: 0;
}
.ps-modal-thumbnails-9677683d {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}
.ps-modal-thumbnails-9677683d img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: 0;
    opacity: 0.6;
    transition: opacity 0.2s ease, border-color 0.2s ease;
}
.ps-modal-thumbnails-9677683d img:hover {
    opacity: 1;
}
.ps-modal-thumbnails-9677683d img.active {
    opacity: 1;
    border-color: #02086A;
}
.ps-modal-title-9677683d {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 2rem;
}

/* PDF Button Styles inside Modal (Copied from Downloads snippet) */
.ps-modal-pdf-container-9677683d {
    margin-top: 30px;
    border-top: 1px solid #eaeaea;
    padding-top: 20px;
}
.dl-item-ceaa32b5 {
    display: block;
    border-radius: 8px;
    padding: 16px 20px;
    text-decoration: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
}
.dl-item-ceaa32b5:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.dl-item-red-ceaa32b5 {
    border: 1px solid #c91f37;
    background: #fff;
}
.dl-item-top-ceaa32b5 {
    display: flex;
    align-items: center;
    gap: 12px;
}
.dl-item-icon-ceaa32b5 {
    color: #c91f37;
    display: flex;
    align-items: center;
    justify-content: center;
}
.dl-item-title-ceaa32b5 {
    font-size: 16px;
    font-weight: 600;
    color: #c91f37;
    margin: 0;
    line-height: 1.3;
}
.dl-item-meta-ceaa32b5 {
    font-size: 12px;
    color: #888;
    margin-top: 4px;
    margin-left: 28px;
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .ps-grid-9677683d, .ps-modal-layout-9677683d {
        grid-template-columns: 1fr;
    }
}

/* =====================================================================
   Ajustes posteriores (antes vivían en CSS adicional de WordPress)
   Icono PDF: Font Awesome Free, licencia CC BY 4.0
   ===================================================================== */

/* Botón de ficha técnica del pop up: compacto, pastilla, sin etiqueta PDF */
.ps-modal-pdf-container-9677683d {
    margin-top: 24px;
    padding-top: 16px;
}
.ps-modal-pdf-btn-9677683d.dl-item-ceaa32b5 {
    display: inline-flex !important;
    align-items: center;
    width: auto !important;
    padding: 12px 24px !important;
    border-radius: 50px !important;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}
.ps-modal-pdf-btn-9677683d .dl-item-meta-ceaa32b5 {
    display: none !important;
}
.ps-modal-pdf-btn-9677683d .dl-item-icon-ceaa32b5 svg {
    display: none !important;
}
.ps-modal-pdf-btn-9677683d .dl-item-icon-ceaa32b5::before {
    content: "";
    display: block;
    width: 20px;
    height: 26px;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512'%3E%3Cpath d='M64 0C28.7 0 0 28.7 0 64V448c0 35.3 28.7 64 64 64H320c35.3 0 64-28.7 64-64V160H256c-17.7 0-32-14.3-32-32V0H64zM256 0V128H384L256 0zM64 224H88c30.9 0 56 25.1 56 56s-25.1 56-56 56H80v32c0 8.8-7.2 16-16 16s-16-7.2-16-16V320 240c0-8.8 7.2-16 16-16zm24 80c13.3 0 24-10.7 24-24s-10.7-24-24-24H80v48h8zm72-64c0-8.8 7.2-16 16-16h24c26.5 0 48 21.5 48 48v64c0 26.5-21.5 48-48 48H176c-8.8 0-16-7.2-16-16V240zm32 112h8c8.8 0 16-7.2 16-16V272c0-8.8-7.2-16-16-16h-8v96zm96-128h48c8.8 0 16 7.2 16 16s-7.2 16-16 16H304v32h32c8.8 0 16 7.2 16 16s-7.2 16-16 16H304v48c0 8.8-7.2 16-16 16s-16-7.2-16-16V304 240c0-8.8 7.2-16 16-16z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512'%3E%3Cpath d='M64 0C28.7 0 0 28.7 0 64V448c0 35.3 28.7 64 64 64H320c35.3 0 64-28.7 64-64V160H256c-17.7 0-32-14.3-32-32V0H64zM256 0V128H384L256 0zM64 224H88c30.9 0 56 25.1 56 56s-25.1 56-56 56H80v32c0 8.8-7.2 16-16 16s-16-7.2-16-16V320 240c0-8.8 7.2-16 16-16zm24 80c13.3 0 24-10.7 24-24s-10.7-24-24-24H80v48h8zm72-64c0-8.8 7.2-16 16-16h24c26.5 0 48 21.5 48 48v64c0 26.5-21.5 48-48 48H176c-8.8 0-16-7.2-16-16V240zm32 112h8c8.8 0 16-7.2 16-16V272c0-8.8-7.2-16-16-16h-8v96zm96-128h48c8.8 0 16 7.2 16 16s-7.2 16-16 16H304v32h32c8.8 0 16 7.2 16 16s-7.2 16-16 16H304v48c0 8.8-7.2 16-16 16s-16-7.2-16-16V304 240c0-8.8 7.2-16 16-16z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.ps-modal-pdf-btn-9677683d .dl-item-title-ceaa32b5 {
    font-size: 15px;
    transition: color 0.2s ease;
}
.ps-modal-pdf-btn-9677683d .dl-item-icon-ceaa32b5 {
    transition: color 0.2s ease;
}
.ps-modal-pdf-btn-9677683d.dl-item-ceaa32b5:hover {
    transform: none !important;
    box-shadow: none !important;
    background: #c91f37 !important;
    border-color: #c91f37 !important;
}
.ps-modal-pdf-btn-9677683d.dl-item-ceaa32b5:hover .dl-item-title-ceaa32b5,
.ps-modal-pdf-btn-9677683d.dl-item-ceaa32b5:hover .dl-item-icon-ceaa32b5 {
    color: #fff !important;
}

/* Botones de la card: Cotizar + Ficha técnica en la misma fila */
.ps-actions-9677683d {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 12px;
}
.ps-actions-9677683d .ps-btn-9677683d {
    align-self: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.ps-pdf-btn-9677683d {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    box-sizing: border-box;
    border: 1px solid #c91f37;
    border-radius: 50px !important;
    background: #fff;
    color: #c91f37 !important;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none !important;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.ps-pdf-btn-9677683d:hover,
.ps-pdf-btn-9677683d:focus {
    background: #c91f37;
    color: #fff !important;
    transform: none;
    box-shadow: none;
}
.ps-pdf-icon-9677683d {
    flex: 0 0 auto;
    display: block;
    width: 16px;
    height: 21px;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512'%3E%3Cpath d='M64 0C28.7 0 0 28.7 0 64V448c0 35.3 28.7 64 64 64H320c35.3 0 64-28.7 64-64V160H256c-17.7 0-32-14.3-32-32V0H64zM256 0V128H384L256 0zM64 224H88c30.9 0 56 25.1 56 56s-25.1 56-56 56H80v32c0 8.8-7.2 16-16 16s-16-7.2-16-16V320 240c0-8.8 7.2-16 16-16zm24 80c13.3 0 24-10.7 24-24s-10.7-24-24-24H80v48h8zm72-64c0-8.8 7.2-16 16-16h24c26.5 0 48 21.5 48 48v64c0 26.5-21.5 48-48 48H176c-8.8 0-16-7.2-16-16V240zm32 112h8c8.8 0 16-7.2 16-16V272c0-8.8-7.2-16-16-16h-8v96zm96-128h48c8.8 0 16 7.2 16 16s-7.2 16-16 16H304v32h32c8.8 0 16 7.2 16 16s-7.2 16-16 16H304v48c0 8.8-7.2 16-16 16s-16-7.2-16-16V304 240c0-8.8 7.2-16 16-16z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512'%3E%3Cpath d='M64 0C28.7 0 0 28.7 0 64V448c0 35.3 28.7 64 64 64H320c35.3 0 64-28.7 64-64V160H256c-17.7 0-32-14.3-32-32V0H64zM256 0V128H384L256 0zM64 224H88c30.9 0 56 25.1 56 56s-25.1 56-56 56H80v32c0 8.8-7.2 16-16 16s-16-7.2-16-16V320 240c0-8.8 7.2-16 16-16zm24 80c13.3 0 24-10.7 24-24s-10.7-24-24-24H80v48h8zm72-64c0-8.8 7.2-16 16-16h24c26.5 0 48 21.5 48 48v64c0 26.5-21.5 48-48 48H176c-8.8 0-16-7.2-16-16V240zm32 112h8c8.8 0 16-7.2 16-16V272c0-8.8-7.2-16-16-16h-8v96zm96-128h48c8.8 0 16 7.2 16 16s-7.2 16-16 16H304v32h32c8.8 0 16 7.2 16 16s-7.2 16-16 16H304v48c0 8.8-7.2 16-16 16s-16-7.2-16-16V304 240c0-8.8 7.2-16 16-16z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Un solo producto: imagen a la izquierda, texto y botones a la derecha */
.ps-card-9677683d:only-child {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
}
.ps-card-9677683d:only-child:hover {
    transform: none;
}
.ps-card-9677683d:only-child .ps-image-slider-9677683d {
    height: auto;
    min-height: 440px;
}
.ps-card-9677683d:only-child .ps-image-slider-9677683d img {
    top: 24px;
    left: 24px;
    width: calc(100% - 48px);
    height: calc(100% - 48px);
}
.ps-card-9677683d:only-child .ps-content-9677683d {
    padding: 48px;
    justify-content: center;
}
.ps-card-9677683d:only-child .ps-title-9677683d {
    font-size: 2rem;
}
.ps-card-9677683d:only-child .ps-desc-9677683d {
    flex-grow: 0;
    margin-bottom: 28px;
}

@media (max-width: 768px) {
    .ps-card-9677683d:only-child {
        display: flex;
        flex-direction: column;
    }
    .ps-card-9677683d:only-child .ps-image-slider-9677683d {
        min-height: 300px;
    }
    .ps-card-9677683d:only-child .ps-content-9677683d {
        padding: 24px;
    }
}

/* =====================================================================
   Modal: fondo suave, imagen 4:3 y alto estable
   - Fondo del modal #f4f4f4; el marco de la imagen y el botón PDF quedan
     blancos, así se separan del fondo.
   - La imagen principal es siempre 4:3 (como las fotos de 1200 x 900).
     Como el marco no cambia, el modal tampoco cambia de alto entre productos.
   - Escritorio: imágenes a la izquierda; a la derecha título, texto con
     scroll (termina donde termina la imagen) y ficha técnica a la altura
     de las miniaturas.
   - Celular: imagen arriba, luego título, ficha técnica y texto con scroll.
   ===================================================================== */
.ps-modal-overlay-9677683d {
    padding: 20px;
}
.ps-modal-content-9677683d {
    max-width: 1000px;
    height: auto;
    max-height: 88vh;
    overflow: hidden;
    padding: 28px 32px 32px;
    background: #f4f4f4;
}
.ps-modal-close-9677683d:hover {
    background: #e4e4e4;
}
.ps-modal-layout-9677683d {
    display: grid;
    /* Columna de imágenes: 55% del ancho, pero nunca tan alta que el modal
       pase del 88% de la pantalla (135px = márgenes + fila de miniaturas). */
    grid-template-columns: min(55%, calc((88vh - 135px) * 4 / 3)) minmax(0, 1fr);
    gap: 32px;
    height: auto;
    align-items: stretch;
}

/* Columna de imágenes */
.ps-modal-gallery-area {
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: auto;
}
.ps-modal-main-image-9677683d {
    position: relative;
    flex: none;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    box-sizing: border-box;
    border: 1px solid #eaeaea;
    background: #fff;
}
.ps-modal-main-image-9677683d img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-height: none;
    padding: 0;
    object-fit: contain;
    border: 0;
}
.ps-modal-thumbnails-9677683d {
    flex: none;
    flex-wrap: nowrap;
    gap: 8px;
    height: 60px;
    margin-top: 15px;
    overflow-x: auto;
    overflow-y: hidden;
}
.ps-modal-thumbnails-9677683d img {
    flex: 0 1 80px;
    width: 80px;
    height: 60px;
    min-width: 0;
    object-fit: cover;
}

/* Columna de texto: no aporta altura, toma la de la columna de imágenes */
.ps-modal-info-9677683d {
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 0;
    min-height: 100%;
}
.ps-modal-title-9677683d {
    order: 1;
    flex: none;
    margin: 0 0 14px;
    padding-right: 48px;
    font-size: clamp(1.4rem, 2.2vw, 1.8rem);
    line-height: 1.2;
}
.ps-modal-desc-9677683d {
    order: 2;
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto;
    padding-right: 8px;
    overscroll-behavior: contain;
    scrollbar-width: thin;
}
/* Fila de la ficha técnica = misma altura y margen que la fila de miniaturas */
.ps-modal-pdf-container-9677683d {
    order: 3;
    flex: none;
    display: flex;
    align-items: center;
    height: 60px;
    margin: 15px 0 0;
    padding: 0;
    border-top: 0;
}

/* Celular y tablet vertical */
@media (max-width: 768px) {
    .ps-modal-overlay-9677683d {
        padding: 12px;
    }
    .ps-modal-content-9677683d {
        height: 92vh;
        height: 92dvh;
        max-height: 760px;
        padding: 56px 16px 16px;
    }
    .ps-modal-layout-9677683d {
        display: flex;
        flex-direction: column;
        gap: 14px;
        height: 100%;
    }
    /* El ancho se limita para que la imagen nunca ocupe más del 36% del alto */
    .ps-modal-gallery-area {
        flex: none;
        width: min(100%, calc(36vh * 4 / 3));
        margin: 0 auto;
    }
    .ps-modal-thumbnails-9677683d {
        height: 40px;
        margin-top: 10px;
        gap: 6px;
    }
    .ps-modal-thumbnails-9677683d img {
        flex: 0 1 54px;
        width: 54px;
        height: 40px;
    }
    .ps-modal-info-9677683d {
        flex: 1 1 0;
        height: auto;
        min-height: 0;
    }
    .ps-modal-title-9677683d {
        padding-right: 0;
        margin-bottom: 10px;
        font-size: 1.35rem;
    }
    .ps-modal-pdf-container-9677683d {
        order: 2;
        height: auto;
        margin: 0 0 12px;
    }
    .ps-modal-desc-9677683d {
        order: 3;
    }
}

/* =====================================================================
   Hover de tarjeta: la tarjeta no se mueve; la imagen se oscurece y
   aparece un ojo con la etiqueta "Ver producto".
   Icono de ojo: Lucide (licencia ISC).
   Solo en dispositivos con mouse, para que no quede fijo al tocar en celular.
   ===================================================================== */
.ps-card-9677683d,
.ps-card-9677683d:hover {
    transform: none;
}
.ps-image-slider-9677683d::before,
.ps-image-slider-9677683d::after {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}
.ps-image-slider-9677683d::before {
    content: "";
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1;
}
.ps-image-slider-9677683d::after {
    content: "Ver producto";
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    padding-top: 40px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7-10-7-10-7Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") no-repeat center top / 32px 32px;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.02em;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
}
@media (hover: hover) {
    .ps-image-slider-9677683d:hover::before,
    .ps-image-slider-9677683d:hover::after,
    .ps-card-9677683d:has(.ps-title-9677683d:hover) .ps-image-slider-9677683d::before,
    .ps-card-9677683d:has(.ps-title-9677683d:hover) .ps-image-slider-9677683d::after {
        opacity: 1;
    }
}