/* ============================================ */
/* DETALLE DE PRODUCTO - ESTILOS PROFESIONALES  */
/* ============================================ */

/* ============================================ */
/* CONTENEDOR PRINCIPAL                         */
/* ============================================ */
.container-producto {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
}

/* ============================================ */
/* MIGAS DE PAN                                 */
/* ============================================ */
.breadcrumb {
    color: rgba(255, 255, 255, 0.3);
    font-size: 13px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 5px;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: #e94560;
}

.breadcrumb .separador {
    color: rgba(255, 255, 255, 0.1);
}

.breadcrumb .actual {
    color: rgba(255, 255, 255, 0.3);
}

/* ============================================ */
/* DETALLE DEL PRODUCTO                        */
/* ============================================ */
.producto-detalle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    background: #1a1a2e;
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 50px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.producto-detalle::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(233, 69, 96, 0.03), transparent);
    border-radius: 50%;
    pointer-events: none;
}

/* ============================================ */
/* GALERÍA DE IMÁGENES                          */
/* ============================================ */
.galeria {
    position: relative;
    width: 100%;
}

.galeria .imagen-principal-wrapper {
    width: 100%;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0f0f1a;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px;
    box-sizing: border-box;
    overflow: hidden;
}

.galeria .imagen-principal {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s;
    cursor: zoom-in;
}

.galeria .imagen-principal:hover {
    transform: scale(1.02);
}

/* Imagen agotada */
.galeria .imagen-principal-wrapper.agotado {
    opacity: 0.6;
    position: relative;
}

.galeria .imagen-principal-wrapper.agotado::after {
    content: 'AGOTADO';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    font-size: 48px;
    font-weight: 900;
    color: rgba(231, 76, 60, 0.3);
    letter-spacing: 8px;
    pointer-events: none;
    white-space: nowrap;
    border: 3px solid rgba(231, 76, 60, 0.2);
    padding: 10px 30px;
    border-radius: 8px;
}

/* Badges */
.galeria .badges {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    z-index: 2;
}

.galeria .badge {
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
}

.galeria .badge-oferta { background: rgba(233, 69, 96, 0.9); color: #fff; }
.galeria .badge-nuevo { background: rgba(46, 204, 113, 0.9); color: #fff; }
.galeria .badge-destacado { background: rgba(243, 156, 18, 0.9); color: #fff; }
.galeria .badge-agotado { 
    background: rgba(231, 76, 60, 0.95); 
    color: #fff;
    animation: pulseAgotado 2s infinite;
}

/* Miniaturas */
.galeria .miniaturas {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    overflow-x: auto;
    padding-bottom: 5px;
    -webkit-overflow-scrolling: touch;
}

.galeria .miniaturas::-webkit-scrollbar { height: 4px; }
.galeria .miniaturas::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.05); border-radius: 4px; }
.galeria .miniaturas::-webkit-scrollbar-thumb { background: #e94560; border-radius: 4px; }

.miniatura-wrapper {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s;
    flex-shrink: 0;
    background: #0f0f1a;
}

.miniatura-wrapper.active { border-color: #e94560; }
.miniatura-wrapper:hover { border-color: rgba(233, 69, 96, 0.3); }

.galeria .miniatura {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* ============================================ */
/* INFORMACIÓN DEL PRODUCTO                    */
/* ============================================ */
.producto-detalle .info {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    min-width: 0;
}

.producto-detalle .info .categoria {
    color: rgba(255, 255, 255, 0.3);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.producto-detalle .info .categoria a {
    color: rgba(255, 255, 255, 0.3);
    text-decoration: none;
    transition: color 0.3s;
}

.producto-detalle .info .categoria a:hover {
    color: #e94560;
}

.producto-detalle .info h1 {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
    word-break: break-word;
}

.producto-detalle .info .sku {
    color: rgba(255, 255, 255, 0.2);
    font-size: 12px;
    font-weight: 400;
}

/* ============================================ */
/* PRECIOS                                      */
/* ============================================ */
.producto-detalle .info .precios {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    padding: 15px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.producto-detalle .info .precio-actual {
    font-size: 36px;
    font-weight: 800;
    color: #e94560;
}

.producto-detalle .info .precio-oferta {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.3);
    text-decoration: line-through;
}

.producto-detalle .info .descuento-badge {
    background: rgba(233, 69, 96, 0.15);
    color: #e94560;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* ============================================ */
/* DESCRIPCIÓN                                  */
/* ============================================ */
.producto-detalle .info .descripcion {
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.8;
    font-size: 15px;
    word-break: break-word;
}

/* ============================================ */
/* STOCK - ALERTAS                              */
/* ============================================ */
.producto-detalle .info .stock-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
}

.producto-detalle .info .stock-info.disponible {
    background: rgba(39, 174, 96, 0.08);
    color: #27ae60;
    border: 1px solid rgba(39, 174, 96, 0.15);
}

.producto-detalle .info .stock-info.agotado {
    background: rgba(231, 76, 60, 0.08);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.15);
}

.producto-detalle .info .stock-info.ultimas {
    background: rgba(243, 156, 18, 0.08);
    color: #f39c12;
    border: 1px solid rgba(243, 156, 18, 0.15);
}

/* Alerta stock bajo */
.alerta-stock-bajo {
    background: rgba(243, 156, 18, 0.1);
    border: 2px solid rgba(243, 156, 18, 0.3);
    border-radius: 10px;
    padding: 12px 16px;
    margin: 15px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #f39c12;
    font-size: 14px;
    flex-wrap: wrap;
}

.alerta-stock-bajo i {
    font-size: 20px;
    color: #f39c12;
    animation: pulse 1.5s infinite;
    flex-shrink: 0;
}

/* Alerta agotado */
.alerta-agotado {
    background: rgba(231, 76, 60, 0.1);
    border: 2px solid rgba(231, 76, 60, 0.3);
    border-radius: 10px;
    padding: 14px 18px;
    margin: 15px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    color: #e74c3c;
    font-size: 15px;
    flex-wrap: wrap;
}

.alerta-agotado i {
    font-size: 22px;
    color: #e74c3c;
    animation: shakeIcon 2s infinite;
    flex-shrink: 0;
}

/* ============================================ */
/* CANTIDAD Y BOTONES                          */
/* ============================================ */
.producto-detalle .info .acciones {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 5px;
    width: 100%;
}

.producto-detalle .info .acciones .cantidad-wrapper {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    flex-shrink: 0;
}

.producto-detalle .info .acciones .cantidad-wrapper button {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    padding: 10px 16px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
    font-family: 'Inter', sans-serif;
    min-width: 44px;
    min-height: 44px;
}

.producto-detalle .info .acciones .cantidad-wrapper button:hover:not(:disabled) {
    background: rgba(233, 69, 96, 0.1);
    color: #e94560;
}

.producto-detalle .info .acciones .cantidad-wrapper button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.producto-detalle .info .acciones .cantidad-wrapper input {
    width: 50px;
    text-align: center;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    padding: 10px 0;
    font-family: 'Inter', sans-serif;
    min-width: 40px;
}

.producto-detalle .info .acciones .cantidad-wrapper input:focus {
    outline: none;
}

.producto-detalle .info .acciones .cantidad-wrapper input::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

.producto-detalle .info .acciones .cantidad-wrapper input[type=number] {
    -moz-appearance: textfield;
}

/* Botón Comprar Ahora */
.btn-comprar-ahora {
    flex: 1;
    background: linear-gradient(135deg, #e94560, #ff6b81);
    color: #fff;
    border: none;
    padding: 14px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 200px;
    box-shadow: 0 4px 15px rgba(233, 69, 96, 0.35);
    white-space: nowrap;
}

.btn-comprar-ahora:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(233, 69, 96, 0.45);
}

.btn-comprar-ahora:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Botón Agregar al Carrito */
.btn-agregar-carrito {
    flex: 1;
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    padding: 14px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 200px;
    white-space: nowrap;
}

.btn-agregar-carrito:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-agregar-carrito:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Botón Agotado */
.btn-agotado {
    width: 100%;
    padding: 14px 20px;
    background: #7f8c8d;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: not-allowed;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0.7;
    pointer-events: none;
}

/* Botón Notificarme */
.btn-notificarme {
    width: 100%;
    padding: 14px 20px;
    background: #e74c3c;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.btn-notificarme:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

.btn-notificarme:active {
    transform: translateY(0);
}

.btn-notificarme i {
    animation: ringBell 2s infinite;
}

/* ============================================ */
/* BOTONES DE ACCIÓN RÁPIDA                    */
/* ============================================ */
.producto-detalle .info .acciones-rapidas {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
    width: 100%;
}

.producto-detalle .info .acciones-rapidas button {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.4);
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.producto-detalle .info .acciones-rapidas button:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.1);
}

.producto-detalle .info .acciones-rapidas button.favorito:hover {
    color: #e94560;
    border-color: rgba(233, 69, 96, 0.3);
}

.producto-detalle .info .acciones-rapidas button.favorito.activo {
    color: #e94560;
    border-color: rgba(233, 69, 96, 0.3);
}

.producto-detalle .info .acciones-rapidas button.favorito.activo i {
    color: #e94560;
}

/* ============================================ */
/* CARACTERÍSTICAS                              */
/* ============================================ */
.producto-detalle .info .caracteristicas {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.producto-detalle .info .caracteristicas .item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 13px;
    word-break: break-word;
}

.producto-detalle .info .caracteristicas .item i {
    color: #e94560;
    width: 16px;
    flex-shrink: 0;
}

/* ============================================ */
/* OPINIONES / RESEÑAS                          */
/* ============================================ */
.opiniones-seccion {
    margin-top: 50px;
    width: 100%;
}

.opiniones-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.opiniones-header h2 {
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.opiniones-header h2 i {
    color: #e94560;
}

.opiniones-resumen {
    display: flex;
    align-items: center;
    gap: 10px;
}

.promedio-estrellas {
    color: #f39c12;
    font-size: 20px;
    letter-spacing: 2px;
}

.promedio-texto {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

.opinion-form-wrapper {
    background: #1a1a2e;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    width: 100%;
    box-sizing: border-box;
}

.opinion-form h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #fff;
}

.opinion-estrellas-input {
    display: flex;
    gap: 8px;
    font-size: 24px;
    color: #f39c12;
    margin-bottom: 12px;
    cursor: pointer;
    width: fit-content;
}

.opinion-estrellas-input i {
    transition: transform 0.15s ease;
}

.opinion-estrellas-input i:hover {
    transform: scale(1.15);
}

.opinion-form textarea {
    width: 100%;
    min-height: 90px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    padding: 12px 14px;
    resize: vertical;
    margin-bottom: 12px;
    box-sizing: border-box;
}

.opinion-form textarea:focus {
    outline: none;
    border-color: #e94560;
}

.btn-enviar-opinion {
    background: #e94560;
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.3s;
}

.btn-enviar-opinion:hover {
    background: #c23152;
}

.btn-enviar-opinion:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.opinion-mensaje {
    margin-top: 10px;
    font-size: 13px;
}

.opinion-mensaje.exito {
    color: #27ae60;
}

.opinion-mensaje.error {
    color: #e74c3c;
}

.opinion-login-aviso {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.opinion-login-aviso a {
    color: #e94560;
    text-decoration: none;
    font-weight: 600;
}

.opinion-login-aviso a:hover {
    text-decoration: underline;
}

.opiniones-lista {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.opiniones-cargando,
.opiniones-vacio {
    color: rgba(255, 255, 255, 0.35);
    font-size: 14px;
    padding: 20px 0;
}

.opinion-item {
    background: #1a1a2e;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 16px 18px;
    word-break: break-word;
}

.opinion-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 4px;
}

.opinion-autor {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.opinion-autor i {
    color: rgba(255, 255, 255, 0.3);
}

.opinion-estrellas {
    color: #f39c12;
    font-size: 14px;
    letter-spacing: 1px;
}

.opinion-fecha {
    color: rgba(255, 255, 255, 0.3);
    font-size: 12px;
    display: block;
    margin-bottom: 8px;
}

.opinion-comentario {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

/* ============================================ */
/* PRODUCTOS RELACIONADOS                       */
/* ============================================ */
.productos-relacionados {
    margin-top: 50px;
    width: 100%;
}

.relacionados-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 10px;
}

.relacionados-header h2 {
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.relacionados-header h2 i {
    color: #e94560;
}

.relacionados-header a {
    color: rgba(255, 255, 255, 0.3);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.relacionados-header a:hover {
    color: #e94560;
}

.relacionados-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
    width: 100%;
}

.producto-relacionado-card {
    background: #1a1a2e;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s;
    text-decoration: none;
    color: #fff;
    display: block;
}

.producto-relacionado-card:hover {
    transform: translateY(-5px);
    border-color: rgba(233, 69, 96, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.relacionado-imagen {
    width: 100%;
    height: 200px;
    object-fit: contain;
    object-position: center;
    background: #0f0f1a;
}

.relacionado-info {
    padding: 15px;
}

.relacionado-info h3 {
    font-size: 14px;
    margin-bottom: 5px;
    color: #fff;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.relacionado-precio {
    font-size: 18px;
    font-weight: 700;
    color: #e94560;
}

.relacionado-precio-oferta {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.3);
    text-decoration: line-through;
    margin-left: 8px;
}

/* ============================================ */
/* MODALES - OVERLAY GENERAL                    */
/* ============================================ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeInOverlay 0.3s ease;
    padding: 20px;
    box-sizing: border-box;
}

.modal-overlay.activo {
    display: flex;
}

/* ============================================ */
/* MODAL CARRITO (AGREGADO EXITOSO)            */
/* ============================================ */
.modal-carrito {
    background: #fff;
    border-radius: 20px;
    width: 95%;
    max-width: 480px;
    padding: 30px 25px 25px;
    position: relative;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    animation: slideUpModal 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
    font-family: 'Inter', 'Segoe UI', sans-serif;
    box-sizing: border-box;
}

.modal-carrito .btn-cerrar-modal {
    position: absolute;
    top: 12px;
    right: 18px;
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
    padding: 5px;
}

.modal-carrito .btn-cerrar-modal:hover {
    color: #333;
}

.modal-carrito .icono-check {
    width: 70px;
    height: 70px;
    background: #e8f5e9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.modal-carrito .icono-check i {
    font-size: 32px;
    color: #27ae60;
}

.modal-carrito .modal-titulo {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.modal-carrito .modal-mensaje {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.modal-carrito .modal-producto-info {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
    text-align: left;
    flex-wrap: wrap;
}

.modal-carrito .modal-producto-img {
    width: 70px;
    height: 70px;
    border-radius: 10px;
    object-fit: cover;
    background: #e0e0e0;
    flex-shrink: 0;
}

.modal-carrito .modal-producto-detalles {
    flex: 1;
    min-width: 0;
}

.modal-carrito .modal-producto-marca {
    font-size: 11px;
    text-transform: uppercase;
    color: #888;
    letter-spacing: 1px;
    margin-bottom: 3px;
}

.modal-carrito .modal-producto-nombre {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.modal-carrito .modal-producto-precio {
    font-size: 17px;
    font-weight: 700;
    color: #e74c3c;
}

.modal-carrito .modal-botones {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.modal-carrito .btn-seguir-comprando {
    flex: 1;
    min-width: 140px;
    padding: 14px 20px;
    background: #fff;
    color: #1a1a2e;
    border: 2px solid #ddd;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.modal-carrito .btn-seguir-comprando:hover {
    border-color: #1a1a2e;
    background: #f5f5f5;
}

.modal-carrito .btn-ir-carrito {
    flex: 1;
    min-width: 140px;
    padding: 14px 20px;
    background: #1a1a2e;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.modal-carrito .btn-ir-carrito:hover {
    background: #16213e;
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(26, 26, 46, 0.3);
}

/* ============================================ */
/* MODAL PRODUCTO AGOTADO                       */
/* ============================================ */
.modal-agotado {
    background: #fff;
    border-radius: 20px;
    width: 95%;
    max-width: 450px;
    padding: 30px 25px 25px;
    position: relative;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
    animation: slideUpModal 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
    font-family: 'Inter', 'Segoe UI', sans-serif;
    box-sizing: border-box;
}

.modal-agotado .btn-cerrar-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    transition: all 0.3s;
    line-height: 1;
    padding: 5px;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.modal-agotado .btn-cerrar-modal:hover {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
    transform: rotate(90deg);
}

.modal-agotado .icono-agotado {
    width: 90px;
    height: 90px;
    background: #fdecea;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    position: relative;
}

.modal-agotado .icono-agotado::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid rgba(231, 76, 60, 0.2);
    animation: pulseRing 2s infinite;
}

.modal-agotado .icono-agotado i {
    font-size: 42px;
    color: #e74c3c;
}

.modal-agotado .modal-titulo-agotado {
    font-size: 24px;
    font-weight: 700;
    color: #e74c3c;
    margin-bottom: 10px;
}

.modal-agotado .modal-mensaje-agotado {
    font-size: 16px;
    color: #555;
    margin-bottom: 6px;
    line-height: 1.6;
}

.modal-agotado .modal-submensaje-agotado {
    font-size: 14px;
    color: #888;
    margin-bottom: 25px;
    line-height: 1.6;
}

.modal-agotado .modal-producto-info-agotado {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
    text-align: left;
    border: 2px solid #fdecea;
    flex-wrap: wrap;
}

.modal-agotado .modal-producto-img {
    width: 65px;
    height: 65px;
    border-radius: 10px;
    object-fit: cover;
    background: #e0e0e0;
    flex-shrink: 0;
    opacity: 0.7;
    border: 2px solid #eee;
}

.modal-agotado .modal-producto-detalles {
    flex: 1;
    min-width: 0;
}

.modal-agotado .modal-producto-nombre {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 5px;
    line-height: 1.4;
}

.modal-agotado .modal-producto-stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #fdecea;
    color: #e74c3c;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 20px;
}

.modal-agotado .modal-producto-stock-badge i {
    font-size: 11px;
}

.modal-agotado .input-email {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 14px;
    outline: none;
    transition: all 0.3s;
    font-family: 'Inter', sans-serif;
    box-sizing: border-box;
    margin-bottom: 12px;
}

.modal-agotado .input-email:focus {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.modal-agotado .input-email::placeholder {
    color: #bbb;
}

.modal-agotado .mensaje-notificacion {
    font-size: 13px;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 15px;
    display: none;
    font-weight: 500;
}

.modal-agotado .mensaje-notificacion.error {
    display: block;
    background: #fdecea;
    color: #e74c3c;
    border: 1px solid #f5c6cb;
}

.modal-agotado .mensaje-notificacion.success {
    display: block;
    background: #e8f5e9;
    color: #27ae60;
    border: 1px solid #c3e6cb;
}

.modal-agotado .mensaje-notificacion.loading {
    display: block;
    background: #e3f2fd;
    color: #3498db;
    border: 1px solid #bee5eb;
}

.modal-agotado .modal-botones-agotado {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.modal-agotado .btn-cerrar {
    flex: 1;
    min-width: 120px;
    padding: 14px 20px;
    background: #fff;
    color: #1a1a2e;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.modal-agotado .btn-cerrar:hover {
    border-color: #1a1a2e;
    background: #f5f5f5;
}

.modal-agotado .btn-suscribir {
    flex: 1;
    min-width: 120px;
    padding: 14px 20px;
    background: #e74c3c;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.modal-agotado .btn-suscribir:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(231, 76, 60, 0.4);
}

.modal-agotado .btn-suscribir:active {
    transform: translateY(0);
}

.modal-agotado .btn-suscribir:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ============================================ */
/* MODAL ZOOM                                   */
/* ============================================ */
.modal-zoom {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}

.modal-zoom.active {
    display: flex;
}

.modal-zoom img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
}

.modal-zoom .close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    transition: all 0.3s;
    background: none;
    border: none;
}

.modal-zoom .close:hover {
    transform: rotate(90deg);
    color: #e94560;
}

/* ============================================ */
/* NOTIFICACIÓN FLOTANTE                        */
/* ============================================ */
.notificacion-flotante {
    position: fixed;
    top: 90px;
    right: 20px;
    background: #1a1a2e;
    color: #fff;
    padding: 16px 24px;
    border-radius: 12px;
    border-left: 4px solid #27ae60;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 99999;
    max-width: calc(100% - 40px);
    animation: slideIn 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
}

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

@keyframes slideUpModal {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes slideIn {
    from { transform: translateX(100px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes pulseAgotado {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes shakeIcon {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-2px); }
    20%, 40%, 60%, 80% { transform: translateX(2px); }
}

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

@keyframes ringBell {
    0%, 100% { transform: rotate(0); }
    10%, 30% { transform: rotate(15deg); }
    20%, 40% { transform: rotate(-15deg); }
    50% { transform: rotate(0); }
}

@keyframes pulseRing {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.3); opacity: 0; }
}

/* ============================================ */
/* RESPONSIVE                                   */
/* ============================================ */
@media (max-width: 992px) {
    .producto-detalle {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 30px;
    }
    
    .galeria .imagen-principal-wrapper {
        height: auto;
        aspect-ratio: 4 / 3;
    }
}

@media (max-width: 768px) {
    .container-producto { 
        padding: 10px; 
    }
    
    .producto-detalle { 
        padding: 20px; 
        border-radius: 12px; 
        gap: 20px; 
    }
    
    .galeria .imagen-principal-wrapper { 
        aspect-ratio: 1 / 1; 
        height: auto;
        padding: 15px;
    }
    
    .galeria .imagen-principal-wrapper.agotado::after {
        font-size: 28px;
        padding: 8px 16px;
        letter-spacing: 4px;
    }
    
    .producto-detalle .info h1 { 
        font-size: 22px; 
    }
    
    .producto-detalle .info .precio-actual { 
        font-size: 28px; 
    }
    
    .producto-detalle .info .precio-oferta {
        font-size: 16px;
    }
    
    .producto-detalle .info .acciones { 
        flex-direction: column; 
        width: 100%; 
    }
    
    .producto-detalle .info .acciones .cantidad-wrapper { 
        width: 100%; 
        justify-content: center; 
    }
    
    .btn-comprar-ahora,
    .btn-agregar-carrito { 
        width: 100%; 
        min-width: unset; 
    }
    
    .relacionados-grid { 
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); 
        gap: 15px; 
    }
    
    .producto-detalle .info .caracteristicas { 
        grid-template-columns: 1fr; 
    }
    
    .relacionado-imagen { 
        height: 150px; 
    }
    
    .galeria .miniaturas { 
        gap: 8px; 
    }
    
    .miniatura-wrapper { 
        width: 55px; 
        height: 55px; 
    }
    
    .producto-detalle .info .acciones-rapidas { 
        flex-direction: column; 
        width: 100%; 
    }
    
    .producto-detalle .info .acciones-rapidas button { 
        width: 100%; 
        justify-content: center; 
    }
    
    .modal-zoom img { 
        max-width: 95%; 
        max-height: 80vh; 
    }
    
    .modal-carrito,
    .modal-agotado {
        width: calc(100% - 20px);
        padding: 25px 20px 20px;
        margin: 10px;
    }
    
    .modal-carrito .modal-producto-info,
    .modal-agotado .modal-producto-info-agotado {
        flex-direction: column;
        text-align: center;
    }
    
    .modal-agotado .modal-titulo-agotado { 
        font-size: 20px; 
    }
    
    .modal-agotado .modal-mensaje-agotado { 
        font-size: 14px; 
    }
    
    .modal-agotado .modal-submensaje-agotado { 
        font-size: 13px; 
    }
    
    .modal-agotado .modal-botones-agotado { 
        flex-direction: column; 
    }
    
    .modal-agotado .btn-cerrar,
    .modal-agotado .btn-suscribir { 
        width: 100%; 
    }
    
    .opiniones-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .relacionados-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .producto-detalle { 
        padding: 15px; 
        gap: 15px; 
    }
    
    .galeria .imagen-principal-wrapper { 
        aspect-ratio: 1 / 1; 
        height: auto;
        padding: 10px;
    }
    
    .galeria .badges {
        top: 8px;
        left: 8px;
        gap: 4px;
    }
    
    .galeria .badge {
        padding: 3px 10px;
        font-size: 10px;
    }
    
    .producto-detalle .info h1 { 
        font-size: 18px; 
    }
    
    .producto-detalle .info .precio-actual { 
        font-size: 24px; 
    }
    
    .producto-detalle .info .precio-oferta {
        font-size: 14px;
    }
    
    .producto-detalle .info .descripcion { 
        font-size: 14px; 
    }
    
    .relacionados-grid { 
        grid-template-columns: repeat(2, 1fr); 
        gap: 10px; 
    }
    
    .relacionado-imagen { 
        height: 120px; 
    }
    
    .relacionado-info h3 { 
        font-size: 12px; 
    }
    
    .relacionado-precio { 
        font-size: 14px; 
    }
    
    .breadcrumb { 
        font-size: 12px; 
    }
    
    .modal-carrito,
    .modal-agotado {
        width: calc(100% - 10px);
        padding: 20px 15px 15px;
    }
    
    .modal-carrito .modal-botones,
    .modal-agotado .modal-botones-agotado { 
        flex-direction: column; 
    }
    
    .modal-carrito .btn-seguir-comprando,
    .modal-carrito .btn-ir-carrito {
        width: 100%;
    }
    
    .modal-agotado { 
        padding: 20px 15px 15px; 
        border-radius: 15px; 
    }
    
    .modal-agotado .icono-agotado { 
        width: 70px; 
        height: 70px; 
    }
    
    .modal-agotado .icono-agotado i { 
        font-size: 32px; 
    }
    
    .modal-agotado .modal-producto-info-agotado { 
        padding: 12px; 
        gap: 10px; 
    }
    
    .modal-agotado .modal-producto-img { 
        width: 50px; 
        height: 50px; 
    }
    
    .producto-detalle .info .acciones .cantidad-wrapper button {
        padding: 10px 12px;
        min-width: 40px;
        min-height: 40px;
    }
    
    .producto-detalle .info .acciones .cantidad-wrapper input {
        width: 40px;
    }
    
    .btn-comprar-ahora,
    .btn-agregar-carrito {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .opinion-form-wrapper {
        padding: 15px;
    }
    
    .opinion-item {
        padding: 12px 14px;
    }
}
