/* 
 * TEMPLATE CLÁSICO V3.0 - PÁGINA DE PRODUCTO
 * Diseño tradicional con colores claros y profesionales
 * Variables CSS del sistema: --main-color, --main-color2, --main-color3
 * --secondary-color, --accent-color, --text-muted, etc.
 * 
 * 🚨 IMPORTANTE - CONTENEDOR CON FONDO BLANCO GLOBAL 🚨
 * La clase .container global tiene background: white por defecto.
 * Este template CONTRARRESTA ese fondo usando background: transparent
 * en las secciones y utiliza fondos diferenciados para crear contraste.
 * 
 * ESTRATEGIA DE CONTRASTE MEJORADA:
 * - Secciones principales: background: transparent (usar el blanco del container)
 * - Items individuales: background: white con bordes #d1d5db para máximo contraste
 * - Textos principales: #0f172a (negro slate) para máxima legibilidad
 * - Textos secundarios: #475569 (gris oscuro) para jerarquía visual clara
 * - Shadows: Más pronunciados (0 4px 12px rgba(0,0,0,0.15)) para separación visual
 * - Hovers: Colores primarios del sistema con transiciones suaves
 * 
 * BARRA DE SEGURIDAD - ALTO CONTRASTE:
 * - Container con background: transparent !important para contrarrestar el blanco global
 * - Items con fondo blanco y bordes grises visibles para máximo contraste
 * - Badges con fondo blanco y shadows pronunciados para destacar
 * - Textos muy oscuros (#0f172a) para legibilidad óptima
 * - Hovers con colores primarios para interactividad clara
 */

/* === RESET Y BASE === */
* {
    box-sizing: border-box;
}

/* === CONTENEDOR PRINCIPAL === */
.product-classic-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    background: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* === HEADER DEL PRODUCTO === */
.product-classic-header {
    margin-bottom: 2rem;
}

.product-classic-breadcrumb {
    font-size: 0.875rem;
    color: var(--text-muted, #6b7280);
    margin-bottom: 1rem;
}

.product-classic-breadcrumb span {
    color: var(--main-color, #3b82f6);
    transition: color 0.2s ease;
}

.product-classic-breadcrumb span:hover {
    color: var(--main-color2, #1d4ed8);
}

/* === INDICADORES DE ESTADO === */
.product-status-indicators {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.status-indicator {
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.status-indicator:hover {
    transform: translateY(-1px);
}

.status-indicator.digital {
    background: linear-gradient(135deg, var(--main-color, #3b82f6), var(--main-color2, #1d4ed8));
    color: white;
}

.status-indicator.shipping {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.status-indicator.stock {
    background: linear-gradient(135deg, var(--success-color, #22c55e), #16a34a);
    color: white;
}

.status-indicator.out-of-stock {
    background: linear-gradient(135deg, var(--danger-color, #ef4444), #dc2626);
    color: white;
}

/* === LAYOUT PRINCIPAL === */
.product-classic-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

/* === GALERÍA === */
.product-classic-gallery {
    position: relative;
}

.product-classic-main-image {
    width: 100%;
    aspect-ratio: 1;
    background: #f8fafc;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid #e2e8f0;
    position: relative;
    transition: all 0.3s ease;
}

.product-classic-main-image:hover {
    border-color: var(--main-color, #3b82f6);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.15);
}

.classic-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-classic-main-image:hover .classic-main-image {
    transform: scale(1.05);
}

.image-zoom-overlay {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--main-color, #3b82f6);
    opacity: 0;
    transition: all 0.3s ease;
    cursor: pointer;
}

.product-classic-main-image:hover .image-zoom-overlay {
    opacity: 1;
}

.floating-discount-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: linear-gradient(135deg, var(--danger-color, #ef4444), #dc2626);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 700;
    text-align: center;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.discount-percentage {
    display: block;
    font-size: 1.1rem;
    line-height: 1;
}

.discount-text {
    display: block;
    font-size: 0.75rem;
    margin-top: 0.25rem;
    opacity: 0.9;
}

.product-classic-thumbnails {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.classic-thumbnail {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.classic-thumbnail:hover,
.classic-thumbnail.active {
    border-color: var(--main-color, #3b82f6);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(59, 130, 246, 0.2);
}

.classic-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* === INFORMACIÓN DEL PRODUCTO === */
.product-classic-info {
    padding: 1rem 0;
}

.product-classic-category {
    display: inline-block;
    background: var(--accent-color, #f1f5f9);
    color: var(--main-color, #3b82f6);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-classic-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 1rem 0;
    line-height: 1.2;
}

.product-technical-info {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 12px;
    border-left: 4px solid var(--main-color, #3b82f6);
}

.product-technical-info span {
    font-size: 0.875rem;
    color: var(--text-muted, #6b7280);
    font-weight: 500;
}

.product-sku {
    font-weight: 700 !important;
    color: var(--main-color, #3b82f6) !important;
}

.product-classic-badges {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.classic-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.classic-badge.new {
    background: linear-gradient(135deg, var(--main-color, #3b82f6), var(--main-color2, #1d4ed8));
    color: white;
}

.classic-badge.featured {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.classic-badge.sale {
    background: linear-gradient(135deg, var(--danger-color, #ef4444), #dc2626);
    color: white;
}

.classic-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* === PRECIOS === */
.product-classic-price {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 16px;
    border: 2px solid #e2e8f0;
}

.price-with-discount .price-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.discount-badge {
    background: linear-gradient(135deg, var(--danger-color, #ef4444), #dc2626);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.875rem;
}

.savings-text {
    color: var(--success-color, #22c55e);
    font-weight: 600;
    font-size: 0.875rem;
}

.price-comparison {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    flex-wrap: wrap;
}

.price-original {
    color: var(--text-muted, #6b7280);
    text-decoration: line-through;
    font-size: 1.25rem;
    font-weight: 500;
}

.price-current {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--main-color, #3b82f6);
    line-height: 1;
}

.price-simple .price-current {
    font-size: 3rem;
}

/* === INFORMACIÓN DE ENTREGA === */
.delivery-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, #ecfdf5, #f0fdf4);
    border-radius: 12px;
    border-left: 4px solid var(--success-color, #22c55e);
    color: var(--success-color, #16a34a);
    font-weight: 600;
}

.delivery-info i {
    font-size: 1.2rem;
}

/* === DESCRIPCIÓN === */
.product-classic-description {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #ffffff;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    line-height: 1.6;
    color: #374151;
    font-size: 1.1rem;
}

/* === VARIANTES === */
.product-classic-variants {
    margin-bottom: 2rem;
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid #e2e8f0;
}

.variants-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1.5rem;
}

.variants-title i {
    color: var(--main-color, #3b82f6);
}

.classic-variant-group {
    margin-bottom: 1.5rem;
}

.classic-variant-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.classic-variant-label i {
    color: var(--main-color, #3b82f6);
}

.classic-variant-options {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.classic-variant-option {
    padding: 0.75rem 1.25rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #374151;
    min-width: 100px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.classic-variant-option:hover {
    border-color: var(--main-color, #3b82f6);
    background: var(--accent-color, #f1f5f9);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(59, 130, 246, 0.1);
}

.classic-variant-option.selected {
    border-color: var(--main-color, #3b82f6);
    background: var(--main-color, #3b82f6);
    color: white;
    box-shadow: 0 6px 15px rgba(59, 130, 246, 0.3);
}

/* Estilos específicos para variantes de color */
.color-variant {
    min-width: 80px;
}

.color-preview {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    display: block;
}

.variant-text {
    font-weight: 600;
    text-align: center;
}

.variant-price {
    color: var(--success-color, #059669);
    font-weight: 700;
    font-size: 0.875rem;
}

/* === ACCIONES === */
.product-classic-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.product-cart-controls {
    flex: 1;
    min-width: 200px;
}

.classic-btn-cart {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--main-color, #3b82f6), var(--main-color2, #1d4ed8));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.classic-btn-cart:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
}

.classic-btn-buy-now {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--success-color, #22c55e), #16a34a);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.classic-btn-buy-now:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(34, 197, 94, 0.4);
}

/* === CONTROLES DE CARRITO === */
.classic-quantity-controls {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    background: #ffffff;
    padding: 0.75rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid #e2e8f0;
}

.classic-qty-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 8px;
    background: var(--accent-color, #f1f5f9);
    color: var(--main-color, #3b82f6);
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.classic-qty-btn:hover {
    background: var(--main-color, #3b82f6);
    color: white;
    transform: translateY(-1px);
}

.classic-qty-input {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    color: #374151;
    background: #f8fafc;
    transition: all 0.3s ease;
}

.classic-qty-input:focus {
    outline: none;
    border-color: var(--main-color, #3b82f6);
    background: white;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.classic-delete-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 8px;
    background: #fee2e2;
    color: #dc2626;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.classic-delete-btn:hover {
    background: #dc2626;
    color: white;
    transform: translateY(-1px);
}

/* === COMPATIBILIDAD JAVASCRIPT === */
/* Estilos para botón generado dinámicamente por custom.js */
.cartbutton.productplus.add-to-cart-btn {
    /* Heredar todos los estilos del botón original classic-btn-cart */
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--main-color, #3b82f6), var(--main-color2, #1d4ed8));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

.cartbutton.productplus.add-to-cart-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
}

/* También aplicar estilos a otros botones add-to-cart generados dinámicamente */
.cartbutton.add-to-cart-btn {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--main-color, #3b82f6), var(--main-color2, #1d4ed8));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

.cartbutton.add-to-cart-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
}

/* === CARACTERÍSTICAS === */
.product-classic-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 16px;
    border: 2px solid #e2e8f0;
}

.classic-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: white;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.classic-feature:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    border-color: var(--main-color, #3b82f6);
}

.classic-feature-icon {
    width: 40px;
    height: 40px;
    background: var(--accent-color, #f1f5f9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--main-color, #3b82f6);
    font-size: 1.2rem;
}

.classic-feature-text {
    font-weight: 600;
    color: #374151;
    font-size: 0.95rem;
}

/* === ESPECIFICACIONES === */
.product-classic-specs {
    margin-bottom: 3rem;
    padding: 2rem;
    background: #ffffff;
    border-radius: 16px;
    border: 2px solid #e2e8f0;
}

.classic-specs-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
}

.classic-specs-title i {
    color: var(--main-color, #3b82f6);
}

.classic-specs-title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, var(--main-color, #3b82f6), var(--main-color2, #1d4ed8));
    border-radius: 2px;
}

.classic-specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.classic-spec-group {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
}

.classic-spec-group h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--main-color, #3b82f6);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--main-color, #3b82f6);
    padding-bottom: 0.5rem;
}

.classic-spec-group h4 i {
    color: var(--main-color, #3b82f6);
}

.classic-spec-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.classic-spec-item:last-child {
    border-bottom: none;
}

.classic-spec-item:hover {
    background: rgba(59, 130, 246, 0.05);
    padding-left: 0.5rem;
    border-radius: 6px;
}

.classic-spec-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #374151;
    flex: 1;
}

.classic-spec-label i {
    color: var(--main-color, #3b82f6);
    font-size: 0.875rem;
}

.classic-spec-value {
    color: var(--text-muted, #6b7280);
    font-weight: 500;
    text-align: right;
    flex: 1;
}

/* === PRODUCTOS RELACIONADOS === */
.related-products-section {
    background: #f8fafc;
    padding: 3rem 0;
    margin-top: 3rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.related-products-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    text-align: center;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.related-products-title i {
    color: var(--main-color, #3b82f6);
}

.related-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.related-product-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.related-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border-color: var(--main-color, #3b82f6);
}

.related-product-image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
}

.related-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-product-card:hover .related-product-image img {
    transform: scale(1.05);
}

.no-image-placeholder {
    width: 100%;
    height: 100%;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted, #6b7280);
    font-size: 3rem;
}

.related-discount-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: linear-gradient(135deg, var(--danger-color, #ef4444), #dc2626);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.875rem;
}

.related-product-info {
    padding: 1.5rem;
}

.related-product-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-product-price {
    margin-bottom: 1rem;
}

.related-price-original {
    color: var(--text-muted, #6b7280);
    text-decoration: line-through;
    font-size: 0.95rem;
    margin-right: 0.5rem;
}

.related-price-current {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--main-color, #3b82f6);
}

.related-stock-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--success-color, #22c55e);
}

.related-stock-info.out-of-stock {
    color: var(--danger-color, #ef4444);
}

.related-product-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--main-color, #3b82f6), var(--main-color2, #1d4ed8));
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.related-product-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
    text-decoration: none;
    color: white;
}

/* === BARRA DE SEGURIDAD === */
/* 
 * IMPORTANTE: Diseñada para funcionar sobre fondo blanco (.container por defecto)
 * La clase .container global tiene background: white, por lo que contrarestamos con transparent
 * y usamos fondos diferenciados para los elementos internos
 */
.security-bar {
    background: transparent; /* Sin fondo para usar el blanco del container */
    color: #1e293b; /* Texto oscuro para contrastar con fondo blanco */
    padding: 4rem 0;
    margin-top: 3rem;
    width: 100%;
    display: block !important;
    visibility: visible !important;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.security-bar .container {
    background: transparent !important; /* Contrarrestar el fondo blanco global */
}

.security-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    width: 100%;
}

.security-item {
    display: flex !important;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: white; /* Fondo blanco para máximo contraste */
    border-radius: 16px;
    transition: all 0.3s ease;
    border: 2px solid #d1d5db; /* Borde más visible */
    min-height: 100px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); /* Shadow más pronunciado */
}

.security-item:hover {
    background: #f9fafb; /* Gris muy claro al hover */
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2); /* Shadow más fuerte al hover */
    border-color: var(--main-color, #3b82f6);
}

.security-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--main-color, #3b82f6), var(--main-color2, #2563eb));
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white !important;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.security-icon i {
    font-size: 1.8rem !important;
    color: white !important;
    display: inline-block !important;
}

.security-content {
    flex: 1;
    color: #0f172a; /* Texto muy oscuro para máximo contraste */
}

.security-content h4 {
    font-size: 1.2rem !important;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #0f172a !important; /* Título muy oscuro */
    display: block !important;
}

.security-content p {
    color: #fff !important; /* Gris más oscuro para el texto descriptivo */
    margin: 0;
    font-size: 0.95rem;
    display: block !important;
    line-height: 1.5;
}

.security-content small {
    color: #94a3b8; /* Gris más claro para texto secundario */
    font-size: 0.85rem;
    display: block;
    margin-top: 0.25rem;
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    padding-top: 3rem;
    border-top: 2px solid #e2e8f0;
}

.trust-badge {
    display: flex !important;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: white; /* Fondo blanco para máximo contraste */
    border-radius: 30px;
    border: 2px solid #d1d5db; /* Borde más visible */
    transition: all 0.3s ease;
    color: #1e293b !important; /* Texto muy oscuro */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); /* Shadow más pronunciado */
    font-weight: 600;
}

.trust-badge:hover {
    background: var(--main-color, #3b82f6) !important; /* Fondo azul al hover */
    color: white !important; /* Texto blanco al hover */
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
    border-color: var(--main-color, #3b82f6);
}

.trust-badge:hover i {
    color: white !important; /* Iconos blancos al hover */
}

.trust-badge:hover span {
    color: white !important; /* Texto blanco al hover */
}

.trust-badge i {
    font-size: 1.2rem !important;
    color: var(--main-color, #3b82f6) !important; /* Iconos azules por defecto */
    display: inline-block !important;
}

.trust-badge span {
    font-weight: 600;
    font-size: 0.95rem;
    color: #1e293b !important; /* Texto oscuro por defecto */
    display: inline-block !important;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .product-classic-container {
        padding: 1rem;
    }
    
    .product-classic-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .product-classic-title {
        font-size: 2rem;
    }
    
    .price-current {
        font-size: 2rem;
    }
    
    .product-classic-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .classic-btn-buy-now {
        width: 100%;
        justify-content: center;
    }
    
    .product-classic-features {
        grid-template-columns: 1fr;
    }
    
    .related-products-grid {
        grid-template-columns: 1fr;
    }
    
    .security-info-grid {
        grid-template-columns: 1fr;
    }
    
    .classic-specs-grid {
        grid-template-columns: 1fr;
    }
    
    /* === RESPONSIVE BARRA DE SEGURIDAD PARA FONDO BLANCO === */
    .security-info-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .security-item {
        padding: 1.5rem;
        gap: 1rem;
        background: white; /* Fondo blanco para máximo contraste en móvil */
        border: 2px solid #d1d5db; /* Borde más visible en móvil */
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }
    
    .security-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .security-icon i {
        font-size: 1.5rem !important;
    }
    
    .security-content h4 {
        font-size: 1.1rem !important;
        color: #0f172a !important; /* Texto muy oscuro en móvil */
    }
    
    .security-content p {
        font-size: 0.9rem;
        color: #475569 !important; /* Gris más oscuro en móvil */
    }
    
    .trust-badges {
        gap: 1rem;
        flex-direction: column;
        align-items: center;
    }
    
    .trust-badge {
        padding: 1rem 1.5rem;
        background: white; /* Fondo blanco en móvil para máximo contraste */
        border: 2px solid #d1d5db; /* Borde más visible */
        color: #1e293b !important;
        width: 100%;
        max-width: 300px;
        justify-content: center;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }
    
    .trust-badge:hover {
        background: var(--main-color, #3b82f6) !important;
        color: white !important;
    }
    
    .trust-badge i {
        color: var(--main-color, #3b82f6) !important;
    }
    
    .trust-badge:hover i {
        color: white !important;
    }
    
    .trust-badge:hover span {
        color: white !important;
    }
    
    /* Ajustes para botones generados dinámicamente en móvil */
    .cartbutton.add-to-cart-btn,
    .cartbutton.productplus.add-to-cart-btn {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
}

/* === ANIMACIONES === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.product-classic-container > * {
    animation: fadeInUp 0.6s ease-out;
}

.product-classic-info > * {
    animation: slideInLeft 0.6s ease-out;
    animation-delay: 0.1s;
    animation-fill-mode: both;
}

.product-classic-thumb {
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.product-classic-thumb:hover,
.product-classic-thumb.active {
    border-color: var(--main-color2, #007bff);
}

.product-classic-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-classic-info h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.product-classic-badges {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.product-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.product-badge.new {
    background: #d1fae5;
    color: #065f46;
}

.product-badge.featured {
    background: #fef3c7;
    color: #92400e;
}

.product-badge.sale {
    background: #fecaca;
    color: #991b1b;
}

.product-classic-price {
    margin-bottom: 2rem;
}

.price-current {
    font-size: 2rem;
    font-weight: 700;
    color: var(--main-color2, #007bff);
}

.price-original {
    font-size: 1.25rem;
    color: #6b7280;
    text-decoration: line-through;
    margin-left: 0.5rem;
}

.price-discount {
    background: #ef4444;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

.product-classic-description {
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.product-classic-variants {
    margin-bottom: 2rem;
}

.variant-group {
    margin-bottom: 1.5rem;
}

.variant-group label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.variant-options {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.variant-option {
    padding: 0.5rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
}

.variant-option:hover,
.variant-option.selected {
    border-color: var(--main-color2, #007bff);
    background: rgba(0, 123, 255, 0.1);
}

.variant-option.color {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    padding: 0;
    position: relative;
}

.variant-option.color::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.variant-option.color.selected::after {
    opacity: 1;
}

.product-classic-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 2rem;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.quantity-btn {
    background: #f9fafb;
    border: none;
    padding: 0.75rem;
    cursor: pointer;
    font-weight: 600;
    color: #374151;
    transition: background-color 0.3s ease;
}

.quantity-btn:hover {
    background: #e5e7eb;
}

.quantity-input {
    border: none;
    padding: 0.75rem;
    text-align: center;
    width: 60px;
    font-weight: 600;
    background: white;
}

.btn-add-cart {
    flex: 1;
    background: var(--main-color2, #007bff);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-add-cart:hover {
    background: rgba(0, 123, 255, 0.9);
    transform: translateY(-2px);
}

.product-classic-specs {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 2rem;
    margin-top: 3rem;
}

.product-classic-specs h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 1.5rem;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.spec-label {
    font-weight: 600;
    color: #4b5563;
}

.spec-value {
    color: #6b7280;
}

/* Responsive */
@media (max-width: 768px) {
    .product-classic-container {
        padding: 1rem;
    }
    
    .product-classic-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .product-classic-info h1 {
        font-size: 2rem;
    }
    
    .product-classic-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .quantity-selector {
        align-self: center;
        width: 150px;
    }
}

/* ===== PRODUCTOS RELACIONADOS ===== */
.related-products-section {
    background: #f8f9fa;
    padding: 4rem 0;
    margin-top: 2rem;
}

.related-products-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.related-products-title i {
    color: #0066cc;
}

.related-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.related-product-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.related-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.related-product-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f8f9fa;
}

.related-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-product-card:hover .related-product-image img {
    transform: scale(1.05);
}

.no-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #999;
    font-size: 2.5rem;
}

.related-discount-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #dc3545;
    color: white;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
}

.related-product-info {
    padding: 1.5rem;
}

.related-product-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-product-price {
    margin-bottom: 1.5rem;
}

.related-price-original {
    display: block;
    color: #999;
    text-decoration: line-through;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.related-price-current {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0066cc;
}

.related-product-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem 1rem;
    background: #0066cc;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.related-product-btn:hover {
    background: #0052a3;
    text-decoration: none;
    color: white;
}

/* ===== BARRA DE SEGURIDAD ===== */
.security-bar {
    background: #333;
    color: white;
    padding: 3rem 0;
    margin-top: 0;
}

.security-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 2rem;
}

.security-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.security-item:hover {
    background: rgba(255, 255, 255, 0.15);
}

.security-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.security-content h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
    font-weight: 600;
}

.security-content p {
    margin: 0;
    font-size: 0.875rem;
    opacity: 0.9;
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.trust-badge:hover {
    background: rgba(255, 255, 255, 0.2);
}

.trust-badge i {
    font-size: 1rem;
}

/* Responsive para secciones nuevas */
@media (max-width: 768px) {
    .related-products-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .related-products-title {
        font-size: 1.75rem;
        margin-bottom: 2rem;
    }
    
    .security-info-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .security-item {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .trust-badges {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
        padding: 0 1rem;
    }
    
    .trust-badge {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .related-products-section {
        padding: 2rem 0;
    }
    
    .security-bar {
        padding: 2rem 0;
    }
    
    .related-products-grid {
        grid-template-columns: 1fr;
        padding: 0 0.5rem;
    }
}

/* === ESTILOS ESPECÍFICOS PARA VIDEOS - TEMPLATE CLÁSICO === */

/* Sección de videos del producto */
.product-classic-videos {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.product-classic-videos .videos-section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 1.5rem 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
}

.product-classic-videos .videos-section-title i {
    color: var(--main-color, #3b82f6);
    font-size: 1.375rem;
}

/* Video único embebido estilo clásico */
.product-classic-videos .classic-single-video {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background: #000;
    margin: 0;
}

.product-classic-videos .classic-single-video iframe {
    border-radius: 8px;
    min-height: 350px;
}

/* Galería de videos clásica */
.product-classic-videos .classic-video-gallery {
    gap: 1rem;
}

.product-classic-videos .classic-video-gallery .video-gallery-item {
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.product-classic-videos .classic-video-gallery .video-gallery-item:hover {
    border-color: var(--main-color, #3b82f6);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(59, 130, 246, 0.15);
}

.product-classic-videos .video-thumbnail {
    transition: transform 0.3s ease;
}

.product-classic-videos .video-gallery-item:hover .video-thumbnail {
    transform: scale(1.02);
}

.product-classic-videos .video-play-overlay {
    background: rgba(59, 130, 246, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.9);
}

.product-classic-videos .video-main-badge {
    background: var(--main-color, #3b82f6);
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0 0 6px 0;
}

.product-classic-videos .video-title {
    color: #1f2937;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.product-classic-videos .video-description {
    color: #6b7280;
    font-size: 0.875rem;
    line-height: 1.4;
}

/* Responsive para videos clásicos */
@media (max-width: 768px) {
    .product-classic-videos {
        margin: 1.5rem 0;
        padding: 1rem;
        border-radius: 6px;
    }
    
    .product-classic-videos .videos-section-title {
        font-size: 1.125rem;
        margin-bottom: 1rem;
    }
    
    .product-classic-videos .classic-single-video iframe {
        min-height: 220px;
    }
    
    .product-classic-videos .classic-video-gallery {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
}
