/* Product Tabs Widget Styles */
.zhenvo-product-tabs {
    width: 100%;
    font-family: 'Instrument Sans', sans-serif;
}

.zhenvo-product-tabs .tab-bar {
    display: flex;
    gap: 0;
    width: 100%;
    position: relative;
    border-radius: 40px;
    background-color: #fff;
    height: 67px;
    padding: 0;
    margin: 0;
    justify-content: space-between;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.zhenvo-product-tabs .tab-button {
    flex: 1;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0 20px;
    font-size: 19.59px;
    letter-spacing: -0.03em;
    line-height: 19.76px;
    font-family: 'Instrument Sans', sans-serif;
    color: #000;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, color 0.3s ease;
    height: 100%;
    position: relative;
    z-index: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    border-radius: 0;
}

.zhenvo-product-tabs .tab-button.active {
    background-color: #000;
    color: #fff;
    border-radius: 50px;
    font-weight: 600;
    z-index: 2;
}

.zhenvo-product-tabs .tab-button:hover:not(.active) {
    background-color: #f5f5f5;
    opacity: 0.8;
    border-radius: 50px;
}

.zhenvo-product-tabs .tab-contents {
    margin-top: 20px;
}

.zhenvo-product-tabs .tab-content {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.zhenvo-product-tabs .tab-content.active {
    display: block;
}

.zhenvo-product-tabs .tab-content-inner {
    max-width: 350px;
    margin: 0 auto;
    text-align: center;
}

/* Excepción para el videotutorial - más ancho (ahora controlado desde Elementor) */

.zhenvo-product-tabs .tab-content-inner p {
    margin: 0 0 1em 0;
    line-height: 1.6;
}

.zhenvo-product-tabs .tab-content-inner p:last-child {
    margin-bottom: 0;
}

.zhenvo-product-tabs .tab-content-inner h1,
.zhenvo-product-tabs .tab-content-inner h2,
.zhenvo-product-tabs .tab-content-inner h3,
.zhenvo-product-tabs .tab-content-inner h4,
.zhenvo-product-tabs .tab-content-inner h5,
.zhenvo-product-tabs .tab-content-inner h6 {
    margin: 0 0 0.5em 0;
}

.zhenvo-product-tabs .tab-content-inner ul,
.zhenvo-product-tabs .tab-content-inner ol {
    margin: 0 0 1em 0;
    padding-left: 1.5em;
    text-align: left;
    display: inline-block;
}

.zhenvo-product-tabs .tab-content-inner li {
    margin-bottom: 0.5em;
}

.zhenvo-product-tabs .tab-content-inner a {
    color: #0073aa;
    text-decoration: none;
}

.zhenvo-product-tabs .tab-content-inner a:hover {
    text-decoration: underline;
}

.zhenvo-product-tabs .tab-content-inner strong {
    font-weight: 600;
}

.zhenvo-product-tabs .tab-content-inner em {
    font-style: italic;
}

.zhenvo-product-tabs .tab-content-inner blockquote {
    border-left: 4px solid #ddd;
    margin: 1em 0;
    padding-left: 1em;
    font-style: italic;
    color: #666;
    text-align: left;
}

.zhenvo-product-tabs .tab-content-inner iframe {
    max-width: 100%;
    height: auto;
    min-height: 315px;
}

.zhenvo-product-tabs .tab-content-inner .wp-video,
.zhenvo-product-tabs .tab-content-inner .wp-embed-responsive {
    max-width: 100%;
    height: auto;
}

.zhenvo-product-tabs .tab-content-inner .wp-embed-responsive iframe {
    width: 100%;
    height: 315px;
    border-radius: 8px;
}

/* Native video player styles */
.zhenvo-product-tabs .tab-content-inner .zhenvo-video-player {
    margin: 1em 0;
    text-align: center;
}

.zhenvo-product-tabs .tab-content-inner .zhenvo-video-player video {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background-color: #000;
}

.zhenvo-product-tabs .tab-content-inner .zhenvo-video-player video:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

.zhenvo-product-tabs .tab-content-inner .video-description {
    margin-top: 1em;
    padding: 1em;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #0073aa;
}

.zhenvo-product-tabs .tab-content-inner .video-description p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #555;
}

/* Responsive video containers (for legacy support) */
.zhenvo-product-tabs .tab-content-inner .video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    margin: 1em 0;
}

.zhenvo-product-tabs .tab-content-inner .video-container iframe,
.zhenvo-product-tabs .tab-content-inner .video-container object,
.zhenvo-product-tabs .tab-content-inner .video-container embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

.zhenvo-product-tabs .tab-content-inner img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1em 0;
}

/* Removed no-content-message styles - tabs without content are now hidden */

/* Color Chart Button Styles */
.zhenvo-color-chart-button {
    display: flex;
    justify-content: center;
    width: 100%;
}

.zhenvo-color-chart-button .color-chart-link {
    text-decoration: none;
    display: block;
    width: 100%;
    max-width: 400px;
}

.zhenvo-color-chart-button .rectangleDiv {
    width: 100%;
    position: relative;
    border-radius: 50px;
    background-color: #f8b060;
    height: 81px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.zhenvo-color-chart-button .rectangleDiv:hover {
    background-color: #f5a048;
}

.zhenvo-color-chart-button .verCartaDe {
    position: relative;
    font-size: 15.59px;
    text-decoration: underline;
    letter-spacing: -0.03em;
    line-height: 19.76px;
    font-family: 'Instrument Sans', sans-serif;
    color: #000;
    text-align: center;
    display: inline-block;
    font-weight: 600;
}

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

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

/* Responsive Design */
@media (max-width: 768px) {
    /* Convertir a acordeón en móvil */
    .zhenvo-product-tabs {
        display: flex;
        flex-direction: column;
        gap: 0;
    }
    
    .zhenvo-product-tabs .tab-bar {
        display: none !important; /* Ocultar la barra de tabs con !important */
    }
    
    .zhenvo-product-tabs .tab-contents {
        margin-top: 0;
    }
    
    .zhenvo-product-tabs .tab-content {
        display: block; /* Mostrar todos los contenidos */
        border: 1px solid #e0e0e0;
        border-radius: 10px;
        margin-bottom: 10px;
        background: #fff;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
        overflow: hidden;
    }
    
    /* Header clickeable para cada sección */
    .zhenvo-product-tabs .tab-content-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 20px;
        background: #f8f9fa;
        border-bottom: 1px solid #e0e0e0;
        cursor: pointer;
        font-family: 'Instrument Sans', sans-serif;
        transition: background-color 0.3s ease;
        min-height: 44px; /* Tamaño mínimo táctil */
    }
    
    .zhenvo-product-tabs .tab-content-header:hover {
        background: #e9ecef;
    }
    
    .zhenvo-product-tabs .tab-content-header .tab-title {
        font-weight: 600;
        font-size: 16px;
        color: #000;
        margin: 0;
    }
    
    .zhenvo-product-tabs .tab-content-header .tab-icon {
        font-size: 20px;
        font-weight: 600;
        color: #666;
        transition: transform 0.3s ease;
        user-select: none;
    }
    
    .zhenvo-product-tabs .tab-content.active .tab-content-header .tab-icon {
        transform: rotate(45deg);
    }
    
    /* Contenido del acordeón */
    .zhenvo-product-tabs .tab-content .tab-content-inner {
        max-width: 100%;
        padding: 0;
        margin: 0;
        text-align: left;
        display: none; /* Ocultar contenido por defecto */
        overflow: hidden;
    }
    
    .zhenvo-product-tabs .tab-content.active .tab-content-inner {
        display: block;
        padding: 20px;
        animation: accordionSlide 0.3s ease-out;
    }
    
    /* Videotutorial responsive */
    .zhenvo-product-tabs .tab-content[data-tab="video"] .tab-content-inner {
        max-width: 100%;
        padding: 20px;
    }
    
    /* Color Chart Button responsive */
    .zhenvo-color-chart-button {
        margin-top: 20px;
    }
    
    .zhenvo-color-chart-button .rectangleDiv {
        height: 70px;
    }
    
    .zhenvo-color-chart-button .verCartaDe {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    /* Acordeón para móviles pequeños */
    .zhenvo-product-tabs .tab-content-header {
        padding: 12px 15px;
        min-height: 44px; /* Tamaño mínimo recomendado para tocar */
    }
    
    .zhenvo-product-tabs .tab-content-header .tab-title {
        font-size: 14px;
    }
    
    .zhenvo-product-tabs .tab-content-header .tab-icon {
        font-size: 18px;
    }
    
    .zhenvo-product-tabs .tab-content.active .tab-content-inner {
        padding: 15px;
    }
    
    /* Videotutorial responsive */
    .zhenvo-product-tabs .tab-content[data-tab="video"] .tab-content-inner {
        max-width: 100%;
        padding: 15px;
    }
    
    /* Espaciado reducido entre secciones */
    .zhenvo-product-tabs .tab-content {
        margin-bottom: 8px;
    }
    
    /* Mejorar la experiencia táctil */
    .zhenvo-product-tabs .tab-content-header {
        -webkit-tap-highlight-color: transparent;
        user-select: none;
    }
    
    /* Color Chart Button responsive mobile */
    .zhenvo-color-chart-button {
        margin-top: 15px;
    }
    
    .zhenvo-color-chart-button .rectangleDiv {
        height: 60px;
    }
    
    .zhenvo-color-chart-button .verCartaDe {
        font-size: 13px;
    }
}

/* Elementor Editor Styles */
.elementor-editor-active .zhenvo-product-tabs .tab-button {
    pointer-events: auto;
}

.elementor-alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
}

.elementor-alert-warning {
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeaa7;
}

.elementor-alert-info {
    color: #0c5460;
    background-color: #d1ecf1;
    border-color: #bee5eb;
} 