/**
 * Estilos para Single Producto (single-articulo.php)
 * Diseño e-commerce optimizado - Gaming Spot
 *
 * @package GeneratePress Child
 */

/* ========================================
   VARIABLES
======================================== */
:root {
    --prod-primary:    #1ea894;
    --prod-secondary:  #1b6983;
    --prod-accent:     #185458;
    --prod-dark:       #140428;
    --prod-text:       #2d2d2d;
    --prod-muted:      #746d7d;
    --prod-bg:         #f4f6f8;
    --prod-white:      #ffffff;
    --prod-border:     #e2e8ed;
    --prod-green:      #25D366;
    --prod-hero-grad:  linear-gradient(135deg, rgba(30,54,83,1) 0%, #1b6983 50%, #185458 100%);
}

/* ========================================
   GLOBAL WRAPPER
======================================== */
.single-producto-wrapper {
    background: var(--prod-bg);
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

body.single-articulo {
    background: var(--prod-bg) !important;
}

/* Reset GeneratePress container spacing (separate-containers y one-container) */
body.single-articulo .site-main {
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

body.single-articulo .inside-article {
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

body.single-articulo .entry-content {
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

body.single-articulo .post-image,
body.single-articulo .entry-header {
    display: none !important;
}

body.single-articulo .site-content {
    display: block !important;
    background: var(--prod-bg);
}

/* ========================================
   CONTAINER
======================================== */
.single-producto-container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 28px;
    box-sizing: border-box;
}

/* ========================================
   BREADCRUMBS
======================================== */
.producto-breadcrumbs {
    background: var(--prod-white);
    border-bottom: 1px solid var(--prod-border);
    padding: 12px 0;
    margin-top: 0;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 13px;
    flex-wrap: wrap;
}

.breadcrumb-list li {
    display: flex;
    align-items: center;
    color: var(--prod-muted);
}

.breadcrumb-list li:not(:last-child)::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    margin: 0 8px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23746d7d' viewBox='0 0 24 24'%3E%3Cpath d='M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z'/%3E%3C/svg%3E");
    background-size: contain;
    flex-shrink: 0;
    opacity: 0.5;
}

.breadcrumb-list a {
    color: var(--prod-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb-list a:hover {
    color: var(--prod-primary);
}

.breadcrumb-list li:last-child {
    color: var(--prod-dark);
    font-weight: 600;
}

/* ========================================
   CONTENIDO DEL PRODUCTO
======================================== */
.single-producto-content {
    width: 100%;
    margin: 0;
    padding: 0;
}

/* ========================================
   LAYOUT 2 COLUMNAS (thumbnails verticales + imagen + info)
======================================== */
.producto-layout {
    display: grid;
    grid-template-columns: minmax(420px, 540px) 1fr;
    gap: 40px;
    padding: 32px 0 40px;
    align-items: start;
}

/* ========================================
   GALERIA (Columna Izquierda) - Thumbnails Verticales
======================================== */
.producto-gallery-section {
    position: sticky;
    top: 20px;
    align-self: start;
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 12px;
}

/* Thumbnails verticales a la izquierda */
.producto-thumbs-vertical {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 500px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--prod-border) transparent;
}

.producto-thumbs-vertical::-webkit-scrollbar {
    width: 4px;
}

.producto-thumbs-vertical::-webkit-scrollbar-thumb {
    background: var(--prod-border);
    border-radius: 4px;
}

.thumbnail-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid var(--prod-border);
    transition: all 0.2s ease;
    background: var(--prod-white);
    flex-shrink: 0;
    width: 72px;
    height: 72px;
}

.thumbnail-item:hover {
    border-color: var(--prod-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(30,168,148,0.2);
}

.thumbnail-item.active {
    border-color: var(--prod-primary);
    box-shadow: 0 0 0 3px rgba(30,168,148,0.15);
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}

/* Imagen Principal */
.producto-main-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    background: var(--prod-white);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--prod-border);
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
    transition: box-shadow 0.3s;
    cursor: zoom-in;
}

.producto-main-image:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

.producto-main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 24px;
    transition: opacity 0.25s ease, transform 0.3s ease;
}

.producto-main-image:hover img {
    transform: scale(1.05);
}

/* Sin galería: imagen sola sin grid */
.producto-gallery-section:not(:has(.producto-thumbs-vertical)) {
    grid-template-columns: 1fr;
}

.producto-no-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--prod-muted);
}

.producto-no-image svg {
    margin-bottom: 12px;
    opacity: 0.3;
}

.producto-no-image p {
    margin: 0;
    font-size: 14px;
}

/* ========================================
   INFORMACION (Columna Derecha)
======================================== */
.producto-info-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.producto-title {
    margin: 0;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.3;
    color: var(--prod-dark);
    letter-spacing: -0.3px;
}

.producto-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.category-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 14px;
    background: var(--prod-primary);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 20px;
    text-decoration: none;
    border: 1px solid var(--prod-primary);
    transition: all 0.2s ease;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.category-badge:hover {
    background: var(--prod-secondary);
    color: #fff;
    border-color: var(--prod-secondary);
}

/* ========================================
   PRECIO (prominente, arriba)
======================================== */
.producto-precio-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 22px;
    background: var(--prod-white);
    border-radius: 12px;
    border: 1px solid var(--prod-border);
    border-left: 4px solid var(--prod-primary);
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    flex-wrap: wrap;
}

#precio-display {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.precio-value {
    font-size: 34px;
    font-weight: 900;
    color: var(--prod-dark);
    letter-spacing: -1px;
    line-height: 1;
}

.precio-original-tachado {
    font-size: 18px;
    color: #aaa;
    text-decoration: line-through;
    font-weight: 500;
}

.precio-value.precio-descuento {
    color: #dc2626;
}

.producto-stock-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.producto-stock-badge.in-stock {
    background: rgba(34,197,94,0.1);
    color: #16a34a;
    border: 1px solid rgba(34,197,94,0.3);
}

.producto-stock-badge.out-stock {
    background: rgba(239,68,68,0.1);
    color: #dc2626;
    border: 1px solid rgba(239,68,68,0.3);
}

/* ========================================
   SELECTOR DE COLOR
======================================== */
.producto-color-selector {
    padding: 18px 20px;
    background: var(--prod-white);
    border-radius: 12px;
    border: 1px solid var(--prod-border);
}

.color-selector-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}

.color-selector-header label {
    margin: 0;
    font-size: 14px;
    color: var(--prod-text);
}

.color-selector-header strong {
    font-weight: 700;
    color: var(--prod-dark);
}

#selected-color-name {
    color: var(--prod-primary);
    font-weight: 700;
    transition: opacity 0.15s;
}

.color-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.color-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    background: var(--prod-bg);
    border: 2px solid var(--prod-border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.color-option:hover {
    border-color: var(--prod-primary);
    background: rgba(30,168,148,0.05);
    transform: translateY(-1px);
}

.color-option.active {
    border-color: var(--prod-primary);
    background: var(--prod-white);
    box-shadow: 0 0 0 3px rgba(30,168,148,0.18);
}

.color-option.active .color-label {
    color: var(--prod-dark);
    font-weight: 700;
}

.color-swatch {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.9);
    box-shadow: 0 0 0 1px rgba(0,0,0,0.15);
    flex-shrink: 0;
}

.color-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--prod-text);
}

/* ========================================
   BOTONES CTA
======================================== */
.producto-cta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.btn-whatsapp-single,
.btn-contacto-single {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.25s ease;
    letter-spacing: 0.01em;
    border: none;
    cursor: pointer;
}

.btn-cta-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.btn-cta-text strong {
    font-size: 14px;
    font-weight: 800;
}

.btn-cta-text small {
    font-size: 11px;
    font-weight: 400;
    opacity: 0.85;
}

.btn-whatsapp-single {
    background: linear-gradient(135deg, #25D366 0%, #1aad4e 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(37,211,102,0.35);
}

.btn-whatsapp-single svg {
    flex-shrink: 0;
    opacity: 0.95;
}

.btn-whatsapp-single:hover {
    background: linear-gradient(135deg, #1aad4e 0%, #138f3e 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37,211,102,0.45);
    color: #ffffff;
}

.btn-contacto-single {
    background: var(--prod-white);
    color: var(--prod-secondary);
    border: 2px solid var(--prod-border);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.btn-contacto-single svg {
    flex-shrink: 0;
    color: var(--prod-primary);
}

.btn-contacto-single:hover {
    background: rgba(30,168,148,0.06);
    border-color: var(--prod-primary);
    color: var(--prod-primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(30,168,148,0.15);
}

/* ========================================
   ACCIONES SECUNDARIAS
======================================== */
.producto-secondary-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-action-secondary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: transparent;
    border: 1px solid var(--prod-border);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--prod-muted);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-action-secondary:hover {
    border-color: var(--prod-primary);
    color: var(--prod-primary);
    background: rgba(30,168,148,0.04);
}

.btn-action-secondary.active {
    color: #dc2626;
    border-color: rgba(220,38,38,0.3);
}

.btn-action-secondary.active svg {
    fill: #dc2626;
    stroke: #dc2626;
}

.btn-action-secondary.copied {
    color: var(--prod-primary);
    border-color: var(--prod-primary);
}

/* ========================================
   DISPONIBILIDAD
======================================== */
.producto-disponibilidad {
    padding: 14px 18px;
    background: #fffbf2;
    border: 1px solid #fde68a;
    border-left: 4px solid #f59e0b;
    border-radius: 10px;
}

.disponibilidad-badge {
    display: inline-block;
    padding: 3px 10px;
    background: #f59e0b;
    color: var(--prod-white);
    font-size: 11px;
    font-weight: 700;
    border-radius: 4px;
    margin-bottom: 6px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.disponibilidad-text {
    margin: 0;
    font-size: 13px;
    color: #92400e;
    line-height: 1.5;
}

/* ========================================
   FEATURES STRIP
======================================== */
.producto-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.producto-feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 8px;
    background: var(--prod-white);
    border-radius: 10px;
    border: 1px solid var(--prod-border);
    font-size: 11px;
    font-weight: 600;
    color: var(--prod-muted);
    text-align: center;
    transition: all 0.2s;
}

.producto-feature-item svg {
    color: var(--prod-primary);
    flex-shrink: 0;
}

.producto-feature-item:hover {
    border-color: var(--prod-primary);
    color: var(--prod-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30,168,148,0.1);
}

/* ========================================
   META TAGS
======================================== */
.producto-meta-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: var(--prod-white);
    border-radius: 10px;
    border: 1px solid var(--prod-border);
}

.meta-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    background: linear-gradient(135deg, var(--prod-primary), var(--prod-secondary));
    color: var(--prod-white);
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.meta-info {
    font-size: 13px;
    color: var(--prod-text);
}

.meta-info strong {
    color: var(--prod-dark);
    font-weight: 700;
}

/* ========================================
   TABS DE INFORMACION
======================================== */
.producto-tabs-wrapper {
    width: 100%;
    background: transparent;
    padding: 0 0 60px;
    overflow-x: hidden;
    box-sizing: border-box;
}

.producto-tabs {
    width: 100%;
    max-width: 100%;
}

.tabs-content {
    width: 100%;
}

.tab-panel {
    width: 100%;
}

.tabs-nav {
    display: flex;
    gap: 0;
    background: transparent;
    border-bottom: 2px solid var(--prod-border);
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.tab-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    font-size: 14px;
    font-weight: 700;
    color: var(--prod-muted);
    cursor: pointer;
    position: relative;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
    white-space: nowrap;
    letter-spacing: 0.01em;
}

.tab-button:hover {
    color: var(--prod-primary);
    background: rgba(30,168,148,0.06);
    border-bottom-color: rgba(30,168,148,0.3);
}

.tab-button.active {
    color: var(--prod-primary);
    background: rgba(30,168,148,0.06);
    border-bottom-color: var(--prod-primary);
}

.tab-button.active:hover {
    background: rgba(30,168,148,0.1);
}

.tab-button:focus-visible {
    outline: 2px solid var(--prod-primary);
    outline-offset: -2px;
    border-radius: 4px;
}

.tab-button svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.tabs-content {
    padding: 0;
}

.tab-panel {
    display: none;
    animation: fadeInPanel 0.35s ease;
}

.tab-panel.active {
    display: block;
}

.tab-panel p {
    margin: 0 0 16px;
    font-size: 15px;
    line-height: 1.8;
    color: var(--prod-text);
}

.tab-panel h2,
.tab-panel h3,
.tab-panel h4 {
    margin: 24px 0 12px;
    color: var(--prod-dark);
    font-weight: 700;
}

.tab-panel ul,
.tab-panel ol {
    margin: 0 0 16px;
    padding-left: 24px;
}

.tab-panel li {
    margin-bottom: 8px;
    line-height: 1.7;
    color: var(--prod-text);
}

.tab-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 40px 20px;
    text-align: center;
    color: var(--prod-muted);
}

.tab-empty-state p {
    font-size: 14px;
    color: var(--prod-muted);
}

/* ========================================
   PRODUCTOS RELACIONADOS - CARRUSEL
======================================== */
.productos-relacionados {
    background: var(--prod-bg);
    padding: 0 0 60px;
}

.relacionados-header {
    padding: 36px 0 28px;
}

.relacionados-title {
    margin: 0 0 10px;
    font-size: 26px;
    font-weight: 800;
    color: var(--prod-dark);
    letter-spacing: -0.3px;
}

.relacionados-separator {
    height: 3px;
    background: linear-gradient(90deg, var(--prod-primary), transparent);
    max-width: 60px;
    border-radius: 2px;
}

.productos-carousel-wrapper {
    position: relative;
}

.productos-carousel {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 4px 0 8px;
}

.productos-carousel::-webkit-scrollbar {
    display: none;
}

.productos-carousel .producto-card {
    min-width: 240px;
    max-width: 280px;
    flex-shrink: 0;
    scroll-snap-align: start;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--prod-white);
    border: 2px solid var(--prod-border);
    border-radius: 50%;
    cursor: pointer;
    color: var(--prod-dark);
    transition: all 0.2s;
    z-index: 2;
    box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}

.carousel-btn svg {
    width: 55%;
    height: 55%;
}

.carousel-btn:hover {
    background: var(--prod-primary);
    color: #fff;
    border-color: var(--prod-primary);
    box-shadow: 0 6px 20px rgba(30,168,148,0.35);
    transform: translateY(-50%) scale(1.08);
}

.carousel-prev {
    left: -20px;
}

.carousel-next {
    right: -20px;
}

.producto-card {
    background: var(--prod-white);
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--prod-border);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.producto-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
    border-color: rgba(30,168,148,0.3);
}

.producto-card-image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--prod-bg);
}

.producto-card-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.producto-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.producto-card:hover .producto-card-image img {
    transform: scale(1.07);
}

.producto-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 11px;
    background: linear-gradient(135deg, var(--prod-primary), var(--prod-secondary));
    color: var(--prod-white);
    font-size: 11px;
    font-weight: 700;
    border-radius: 20px;
    z-index: 1;
    letter-spacing: 0.02em;
}

.producto-card-descuento {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 5px 10px;
    background: #dc2626;
    color: var(--prod-white);
    font-size: 12px;
    font-weight: 800;
    border-radius: 6px;
    z-index: 1;
}

.producto-card-content {
    padding: 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.producto-card-title {
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.producto-card-title a {
    color: var(--prod-dark);
    text-decoration: none;
    transition: color 0.2s;
}

.producto-card-title a:hover {
    color: var(--prod-primary);
}

.producto-card-precio {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}

.precio-original {
    font-size: 13px;
    color: #aaa;
    text-decoration: line-through;
    font-weight: 500;
}

.precio-descuento {
    font-size: 18px;
    font-weight: 800;
    color: #dc2626;
    letter-spacing: -0.5px;
}

.precio-actual {
    font-size: 18px;
    font-weight: 800;
    color: var(--prod-dark);
    letter-spacing: -0.5px;
}

.producto-card-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
}

.btn-card-ver {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 14px;
    background: linear-gradient(135deg, var(--prod-primary), var(--prod-secondary));
    color: var(--prod-white);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.25s ease;
}

.btn-card-ver:hover {
    background: linear-gradient(135deg, var(--prod-secondary), var(--prod-accent));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30,168,148,0.35);
    color: var(--prod-white);
}

.btn-card-ver svg {
    flex-shrink: 0;
}

.btn-card-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    padding: 10px;
    background: #25D366;
    color: var(--prod-white);
    border-radius: 8px;
    transition: all 0.25s ease;
    text-decoration: none;
    flex-shrink: 0;
}

.btn-card-whatsapp:hover {
    background: #1da851;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37,211,102,0.35);
}

/* ========================================
   STICKY CTA MOBILE
======================================== */
.sticky-cta-mobile {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--prod-border);
    padding: 10px 16px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.sticky-cta-mobile.visible {
    transform: translateY(0);
}

.sticky-cta-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sticky-cta-price {
    font-size: 20px;
    font-weight: 900;
    color: var(--prod-dark);
    letter-spacing: -0.5px;
}

.sticky-cta-stock {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 12px;
}

.sticky-cta-stock.in-stock {
    background: rgba(34,197,94,0.1);
    color: #16a34a;
}

.sticky-cta-stock.out-stock {
    background: rgba(239,68,68,0.1);
    color: #dc2626;
}

.sticky-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #25D366 0%, #1aad4e 100%);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(37,211,102,0.35);
    transition: all 0.2s;
    white-space: nowrap;
}

.sticky-cta-btn:hover {
    background: linear-gradient(135deg, #1aad4e 0%, #138f3e 100%);
    color: #ffffff;
}

/* ========================================
   LIGHTBOX
======================================== */
.producto-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0,0,0,0.92);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.producto-lightbox.active {
    display: flex;
}

.lightbox-close {
    position: absolute;
    top: 40px;
    right: 30px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    cursor: pointer;
    color: #fff;
    transition: all 0.2s;
    z-index: 10;
}

.lightbox-close svg {
    width: 50%;
    height: 50%;
}

.lightbox-close:hover {
    background: rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.5);
    transform: scale(1.1);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    cursor: pointer;
    color: #fff;
    transition: all 0.2s;
    z-index: 10;
}

.lightbox-nav svg {
    width: 55%;
    height: 55%;
}

.lightbox-nav:hover {
    background: rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.5);
    transform: translateY(-50%) scale(1.08);
}

.lightbox-prev {
    left: 24px;
}

.lightbox-next {
    right: 24px;
}

.lightbox-image-container {
    max-width: 85vw;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image-container img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.lightbox-counter {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 20px;
}

/* ========================================
   ANIMACIONES
======================================== */
@keyframes fadeInPanel {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 1100px) {
    .producto-layout {
        grid-template-columns: minmax(360px, 460px) 1fr;
        gap: 28px;
    }
}

@media (max-width: 900px) {
    .producto-layout {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 24px 0 32px;
    }

    .producto-gallery-section {
        position: static;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    /* En mobile: thumbnails horizontales debajo */
    .producto-thumbs-vertical {
        flex-direction: row;
        max-height: none;
        overflow-x: auto;
        overflow-y: hidden;
        order: 2;
    }

    .producto-main-image {
        order: 1;
    }

    .thumbnail-item {
        width: 64px;
        height: 64px;
    }

    .producto-features {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Mostrar sticky CTA en mobile */
    .sticky-cta-mobile {
        display: flex;
    }

    /* Padding inferior para evitar que sticky tape contenido */
    .single-producto-wrapper {
        padding-bottom: 70px;
    }
}

@media (max-width: 768px) {
    .single-producto-container {
        padding: 0 16px;
    }

    .producto-title {
        font-size: 22px;
    }

    .precio-value {
        font-size: 28px;
    }

    .tab-button {
        padding: 13px 18px;
        font-size: 13px;
    }

    .tab-button svg {
        display: none;
    }

    .tabs-content {
        padding: 24px 0 0;
    }

    .relacionados-title {
        font-size: 22px;
    }

    .carousel-btn {
        display: none;
    }

    .productos-carousel .producto-card {
        min-width: 200px;
    }

    .producto-features {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }

    .producto-cta {
        grid-template-columns: 1fr;
    }

    .producto-secondary-actions {
        justify-content: center;
    }
}

@media (max-width: 560px) {
    .producto-features {
        grid-template-columns: repeat(2, 1fr);
    }

    .precio-value {
        font-size: 24px;
    }

    .producto-precio-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .thumbnail-item {
        width: 56px;
        height: 56px;
    }

    .btn-whatsapp-single,
    .btn-contacto-single {
        padding: 12px 14px;
        gap: 10px;
    }

    .tab-button {
        padding: 11px 14px;
        font-size: 12px;
    }

    .productos-carousel .producto-card {
        min-width: 180px;
    }

    .producto-card-content {
        padding: 14px;
    }

    .breadcrumb-list {
        font-size: 12px;
    }

    .producto-secondary-actions {
        gap: 6px;
    }

    .btn-action-secondary {
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* ========================================
   FOCUS VISIBLE (Accesibilidad)
======================================== */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--prod-primary);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ========================================
   PREFERS REDUCED MOTION
======================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
