/* ==============================> BOTONES DE WSP */

@media (min-width: 768px) {
  form.cart > * {
  }
}

/* ==============================> CONTENEDOR BOTONES PRODUCTO */

.contenedor-botones-producto {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
    width: 100%;
}

/* ==============================> BOTON WHATSAPP PRODUCTO */

.btn-wsp-product {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 8px 16px;
    background-color: #25D366;
    color: #ffffff !important;
    text-decoration: none !important;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    width: fit-content;
    max-width: fit-content;
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.2);
    -webkit-tap-highlight-color: transparent;
}

.btn-wsp-product:hover {
    background-color: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.btn-wsp-product:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(37, 211, 102, 0.2);
}

/* -> Icono WhatsApp */

.btn-wsp-product .huge-whatsapp {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.btn-wsp-product:hover .huge-whatsapp {
    transform: scale(1.1) rotate(5deg);
}

/* -> Texto del botón */

.btn-wsp-product span {
    transition: opacity 0.3s ease;
}

/* ==============================> BOTON SHORTCODE WHATSAPP */

.btn-wsp-shortcode {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 42px;
    padding: 4px 28px;
    color: #fff !important;
    text-decoration: none !important;
    background: #25d366 !important;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #25d366;
    width: 100%;
    max-width: 100%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    -webkit-tap-highlight-color: transparent;
}

.btn-wsp-shortcode:hover {
    background-color: #25d366 !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-wsp-shortcode:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* -> Icono WhatsApp Shortcode */

.btn-wsp-shortcode .huge-whatsapp {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.btn-wsp-shortcode:hover .huge-whatsapp {
    transform: scale(1.1) rotate(-5deg);
}

/* -> Contenedor Shortcode */

.shortcode-sin-precio {
    width: 100%;
    animation: fadeInUp 0.4s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==============================> RESPONSIVE MOVILES */

@media screen and (max-width: 768px) {
    
    .contenedor-botones-producto {
        gap: 10px;
        margin-top: 15px;
    }
    
    .btn-wsp-product,
    .btn-wsp-shortcode {
        padding: 12px 20px;
        font-size: 15px;
        border-radius: 5px;
    }
    
    .btn-wsp-product .huge-whatsapp,
    .btn-wsp-shortcode .huge-whatsapp {
        font-size: 18px;
    }
    
    /* -> Mejor experiencia táctil en móviles */
    
    .btn-wsp-product:active,
    .btn-wsp-shortcode:active {
        opacity: 0.8;
    }
}

/* ==============================> TABLETS */

@media screen and (min-width: 769px) and (max-width: 1024px) {
    
    .contenedor-botones-producto {
        gap: 12px;
    }
    
    .btn-wsp-product,
    .btn-wsp-shortcode {
        padding: 13px 24px;
        font-size: 15px;
    }
}

/* ==============================> SOPORTE iOS */

@supports (-webkit-overflow-scrolling: touch) {
    
    .btn-wsp-product,
    .btn-wsp-shortcode {
        -webkit-appearance: none;
        -webkit-touch-callout: none;
        -webkit-user-select: none;
    }
    
    /* -> Suavizado de fuentes en iOS */
    
    .btn-wsp-product span,
    .btn-wsp-shortcode span {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
    
    /* -> Prevenir zoom en iOS al hacer tap */
    
    .btn-wsp-product:focus,
    .btn-wsp-shortcode:focus {
        outline: none;
    }
}

/* ==============================> ANIMACIONES ADICIONALES */

/* -> Fade In al cargar */

.btn-wsp-product {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* -> Pulse sutil para llamar atención */

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

.btn-wsp-product:not(:hover) {
    animation: pulse 2s infinite ease-in-out;
}

/* ==============================> ESTADOS ESPECIALES */

/* -> Estado deshabilitado */

.btn-wsp-product:disabled,
.btn-wsp-shortcode:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* -> Estado de carga */

.btn-wsp-product.loading,
.btn-wsp-shortcode.loading {
    pointer-events: none;
    opacity: 0.7;
}

/* ==============================> ACCESIBILIDAD */

.btn-wsp-product:focus-visible,
.btn-wsp-shortcode:focus-visible {
    outline: 2px solid var(--e-global-color-primary);
    outline-offset: 2px;
}



/* ==============================> "FICHA TECNICA - MODAL" */

body.ft-overflow {
    overflow: hidden;
}

/* -> Botón de apertura */

.ft-abrir {
 	display: flex;
    width: 175px;
    height: 60px;
    background: url(https://thermoboxperu.com/wp-content/uploads/2025/01/b2.png);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 12px;
    cursor: pointer;
    transition: .4s all ease-in-out;
}


.ft-abrir:hover {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
    transform: translateY(-1px);
	color: #fff;
}

.ft-abrir:active {
    transform: translateY(0);
    box-shadow: none;
}

/* -> Overlay */

.ft-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
}

.ft-overlay.ft-visible {
    opacity: 1;
    visibility: visible;
}

/* -> Modal */

.ft-modal {
    background: #fff;
    border-radius: 8px;
    width: 90%;
    max-width: 860px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.22);
    transform: translateY(24px) scale(0.97);
    opacity: 0;
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
                opacity 0.32s ease;
    overflow: hidden;
    -webkit-transform: translateY(24px) scale(0.97);
}

.ft-overlay.ft-visible .ft-modal {
    transform: translateY(0) scale(1);
    opacity: 1;
    -webkit-transform: translateY(0) scale(1);
}

/* -> Header del modal */

.ft-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid #e8e8e8;
    flex-shrink: 0;
}

.ft-modal-titulo {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
}

.ft-modal-acciones {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* -> Botones de acción (imprimir / descargar) */

.ft-imprimir,
.ft-descargar {
    display: flex;
    padding: 8px 16px;
    font-size: 15px;
    font-weight: 600;
    text-transform: math-auto;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.ft-imprimir {
    background: transparent;
    border: 1px solid var(--e-global-color-primary);
    color: var(--e-global-color-primary);
}

.ft-imprimir:hover {
    background-color: var(--e-global-color-primary);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.ft-descargar {
    background-color: var(--e-global-color-primary);
    border: 1px solid var(--e-global-color-primary);
    color: #fff;
}

.ft-descargar:hover {
    background-color: var(--e-global-color-accent);
	color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* -> Botón cerrar */

.ft-cerrar {
    background: transparent;
    border: none;
    font-size: 22px;
    line-height: 1;
    color: #666;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: color 0.2s ease, background-color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.ft-cerrar:hover {
    color: #111;
    background-color: #f0f0f0;
}

/* -> Cuerpo del modal */

.ft-modal-cuerpo {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.ft-iframe {
    width: 100%;
    height: 100%;
    min-height: 500px;
    border: none;
    display: block;
}

/* -> Sin preview */

.ft-no-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 48px 24px;
    text-align: center;
    color: #555;
    font-size: 14px;
}

.ft-descargar-alt {
    display: inline-block;
    margin-top: 4px;
}

/* -> Responsive 768px (tablets y móviles) */

@media (max-width: 768px) {
    .ft-modal {
        width: 96%;
        max-height: 92vh;
        border-radius: 6px;
        transform: translateY(30px);
        -webkit-transform: translateY(30px);
    }

    .ft-overlay.ft-visible .ft-modal {
        transform: translateY(0);
        -webkit-transform: translateY(0);
    }

    .ft-modal-header {
        flex-wrap: wrap;
        gap: 10px;
        padding: 12px 14px;
    }

    .ft-modal-titulo {
        font-size: 14px;
    }

    .ft-modal-acciones {
        gap: 8px;
    }

    .ft-imprimir,
    .ft-descargar {
        font-size: 12px;
        padding: 6px 12px;
    }

    .ft-iframe {
        min-height: 380px;
    }
}



/* ==============================> "VIDEO DE PRODUCTO" */

/* -> Contenedor */
.vdp-contenedor {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

/* -> Wrapper */
.vdp-wrapper {
    position: relative;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
    transition: box-shadow 0.3s ease;
}

.vdp-wrapper:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.38);
}

/* -> Video MP4 */
.vdp-contenedor .vdp-video-nativo {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

/* -> iFrame */
.vdp-contenedor .vdp-iframe-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
}

.vdp-contenedor .vdp-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* -> Overlay */
.vdp-contenedor .vdp-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 55%);
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.35s ease;
}

.vdp-contenedor.vdp-activo:hover .vdp-overlay {
    opacity: 0.5;
}

/* -> Play central */
.vdp-contenedor .vdp-play-central {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--e-global-color-primary);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: transform 0.25s ease, opacity 0.25s ease;
    z-index: 10;
    -webkit-tap-highlight-color: transparent;
}

.vdp-contenedor .vdp-play-central:hover {
    transform: translate(-50%, -50%) scale(1.12);
    opacity: 0.88;
}

.vdp-contenedor .vdp-play-central:active {
    transform: translate(-50%, -50%) scale(0.96);
}

.vdp-contenedor .vdp-play-central svg {
    width: 24px;
    height: 24px;
    fill: #fff;
    stroke: none;
    margin-left: 4px;
}

/* -> Barra de controles */
.vdp-contenedor .vdp-controles {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 20;
}

.vdp-contenedor .vdp-wrapper:hover .vdp-controles,
.vdp-contenedor .vdp-wrapper:focus-within .vdp-controles {
    opacity: 1;
    transform: translateY(0);
}

/* -> Botones */
.vdp-contenedor .vdp-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.vdp-contenedor .vdp-btn:hover {
    background: var(--e-global-color-primary);
    border-color: var(--e-global-color-primary);
    transform: scale(1.1);
}

.vdp-contenedor .vdp-btn:active {
    transform: scale(0.93);
}

.vdp-contenedor .vdp-btn svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: #fff;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
}

/* -> Pantalla completa empujado a la derecha */
.vdp-contenedor .vdp-controles .vdp-fullscreen,
.vdp-contenedor .vdp-controles .vdp-exit-fullscreen {
    margin-left: auto;
}

/* -> Estados condicionales */
.vdp-contenedor .vdp-pause,
.vdp-contenedor .vdp-unmute,
.vdp-contenedor .vdp-exit-fullscreen {
    display: none;
}

.vdp-contenedor.vdp-activo .vdp-play       { display: none; }
.vdp-contenedor.vdp-activo .vdp-pause      { display: flex; }

.vdp-contenedor.vdp-silenciado .vdp-mute   { display: none; }
.vdp-contenedor.vdp-silenciado .vdp-unmute { display: flex; }

.vdp-contenedor.vdp-fullscreen-activo .vdp-fullscreen      { display: none; }
.vdp-contenedor.vdp-fullscreen-activo .vdp-exit-fullscreen { display: flex; }

/* -> Fullscreen nativo */
.vdp-wrapper:-webkit-full-screen,
.vdp-wrapper:-moz-full-screen,
.vdp-wrapper:fullscreen {
    width: 100vw;
    height: 100vh;
    max-width: none;
    border-radius: 0;
}

.vdp-wrapper:-webkit-full-screen .vdp-video-nativo,
.vdp-wrapper:fullscreen .vdp-video-nativo {
    width: 100vw;
    height: 100vh;
    object-fit: contain;
}

/* -> Responsive 768px */
@media ( max-width: 768px ) {

    .vdp-contenedor .vdp-play-central {
        width: 52px;
        height: 52px;
    }

    .vdp-contenedor .vdp-play-central svg {
        width: 20px;
        height: 20px;
    }

    .vdp-contenedor .vdp-btn {
        width: 30px;
        height: 30px;
    }

    .vdp-contenedor .vdp-btn svg {
        width: 13px;
        height: 13px;
    }

    .vdp-contenedor .vdp-controles {
        gap: 4px;
        padding: 8px 10px;
        opacity: 1;
        transform: translateY(0);
    }
}