/* ✅ OCULTAR MUY ESPECÍFICAMENTE */
div.quantity,
button.single_add_to_cart_button,
.woocommerce-variation-add-to-cart-disabled {
    display: none !important;
}

.wc-tarjetas-container {
    display: block !important;
}
/* Estilos base para las tarjetas */
.wc-tarjetas-container {
    max-width: 100%;
    margin: 20px 0;
}

.tarjetas-header {
    margin-bottom: 30px;
}

.tarjetas-titulo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 2rem;
    font-weight: bold;
    color: #333;
    margin: 0;
}

.tarjetas-icono {
    display: inline-block;
    width: 4px;
    height: 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

/* Tarjeta individual */
.tarjeta-entrada {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    margin-bottom: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
}

.tarjeta-entrada:hover {
    border-color: #3b82f6;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.tarjeta-entrada.seleccionada {
    border-color: #3b82f6;
    background-color: #f0f9ff;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.2);
    transform: translateY(-2px);
}

.tarjeta-entrada.agotado {
    opacity: 0.6;
    pointer-events: none;
    cursor: not-allowed;
}

.tarjeta-contenido {
    padding: 20px;
}

/* Fila superior - Diseño horizontal */
.tarjeta-superior {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.tarjeta-tipo {
    flex: 1;
    min-width: 0;
}

.tarjeta-nombre {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.tarjeta-entrada:hover .tarjeta-nombre {
    color: #3b82f6;
}

.tarjeta-precio {
    flex-shrink: 0;
}

.precio-valor {
    font-size: 1.5rem;
    font-weight: 700;
    color: #3b82f6;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.tarjeta-entrada:hover .precio-valor {
    color: #2563eb;
}

.tarjeta-boton {
    flex-shrink: 0;
}

.btn-seleccionar {
    background: #b92948;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    position: relative;
    overflow: hidden;
}

.btn-seleccionar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-seleccionar:hover::before {
    left: 100%;
}

.btn-seleccionar:hover {
    background: #2563eb;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-seleccionar:active {
    transform: scale(0.95);
}

.tarjeta-entrada.agotado .btn-seleccionar {
    background: #6b7280;
    cursor: not-allowed;
    transform: none !important;
}

.tarjeta-entrada.agotado .btn-seleccionar:hover {
    background: #6b7280;
    box-shadow: none;
}

/* Descripción */
.tarjeta-descripcion {
    margin: 12px 0;
    padding: 12px 0;
    border-top: 1px solid #e5e7eb;
    transition: border-color 0.3s ease;
}

.tarjeta-entrada:hover .tarjeta-descripcion {
    border-color: #d1d5db;
}

.tarjeta-descripcion p {
    margin: 0;
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.5;
    transition: color 0.3s ease;
}

.tarjeta-entrada:hover .tarjeta-descripcion p {
    color: #4b5563;
}

/* Stock */
.tarjeta-stock {
    margin-top: 8px;
    transition: opacity 0.3s ease;
}

.stock-disponible {
    color: #10b981;
    font-size: 0.875rem;
    font-weight: 600;
}

.stock-agotado {
    color: #ef4444;
    font-size: 0.875rem;
    font-weight: 600;
}

/* Notificaciones - Compatible con tu JavaScript */
.mensaje-seleccion,
.mensaje-error {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 20px;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    font-weight: 600;
    max-width: 400px;
    animation: slideInRight 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    border-left: 4px solid;
}

.mensaje-seleccion {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border-left-color: #047857;
}

.mensaje-error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border-left-color: #b91c1c;
}

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

/* Efectos de loading para AJAX */
.tarjeta-entrada.cargando {
    position: relative;
    overflow: hidden;
}

.tarjeta-entrada.cargando::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Mejoras de accesibilidad para navegación por teclado */
.tarjeta-entrada:focus {
    outline: 3px solid #3b82f6;
    outline-offset: 2px;
}

.btn-seleccionar:focus {
    outline: 3px solid #1d4ed8;
    outline-offset: 2px;
}

/* Animaciones de entrada para el JavaScript */
@keyframes tarjetaEntrada {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.tarjeta-entrada.animada {
    animation: tarjetaEntrada 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Efecto de pulso para la selección */
@keyframes pulseSeleccion {
    0% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    }
}

.tarjeta-entrada.seleccionada {
    animation: pulseSeleccion 2s infinite;
}

/* RESPONSIVE DESIGN */
/* Tablet */
@media (max-width: 1024px) {
    .tarjeta-superior {
        gap: 12px;
    }
    
    .tarjeta-nombre {
        font-size: 1.1rem;
    }
    
    .precio-valor {
        font-size: 1.3rem;
    }
    
    .btn-seleccionar {
        padding: 10px 14px;
    }
    
    .mensaje-seleccion,
    .mensaje-error {
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

/* ✅ MEJORADO: Responsive para tarjetas */
.wc-tarjetas-container {
    max-width: 100%;
    margin: 20px 0;
}

.tarjetas-header {
    margin-bottom: 30px;
}

.tarjetas-titulo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 2rem;
    font-weight: bold;
    color: #333;
    margin: 0;
    flex-wrap: wrap;
}

.tarjetas-icono {
    display: inline-block;
    width: 4px;
    height: 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

/* Tarjeta base */
.tarjeta-entrada {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    margin-bottom: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    cursor: pointer;
}

.tarjeta-contenido {
    padding: 20px;
}

/* ✅ MEJORADO: Estructura superior responsive */
.tarjeta-superior {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 16px;
}

.tarjeta-tipo {
    flex: 1;
    min-width: 0; /* Permite que el texto se ajuste */
}

.tarjeta-nombre {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.tarjeta-recursos-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.recurso-badge {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 16px;
    padding: 6px 12px;
    font-size: 0.85rem;
    color: #0369a1;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.tarjeta-precio {
    flex-shrink: 0;
    text-align: right;
}

.precio-valor {
    font-size: 1.5rem;
    font-weight: 700;
    color: #3b82f6;
    white-space: nowrap;
}

/* ✅ MEJORADO: Controles responsive */
.tarjeta-controles {
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: space-between;
}

.controles-cantidad {
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}

.btn-cantidad {
    background: none;
    border: none;
    padding: 10px 16px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #4b5563;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 44px; /* Tamaño mínimo para touch */
}

.btn-cantidad:hover:not(:disabled) {
    background: #e2e8f0;
}

.btn-cantidad:disabled {
    color: #9ca3af;
    cursor: not-allowed;
}

.cantidad-actual {
    padding: 10px 16px;
    font-weight: 600;
    color: #1f2937;
    min-width: 50px;
    text-align: center;
    background: white;
    border-left: 1px solid #e2e8f0;
    border-right: 1px solid #e2e8f0;
}

.btn-seleccionar-completo {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    flex: 1;
    min-width: 140px;
    justify-content: center;
    min-height: 48px; /* Mejor para touch */
}

.btn-seleccionar-completo:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-seleccionar-completo:disabled {
    background: #6b7280;
    cursor: not-allowed;
}

.btn-icono {
    font-size: 1.2rem;
}

.btn-precio {
    font-size: 1.1rem;
    font-weight: 600;
}

/* Descripción y stock */
.tarjeta-descripcion,
.tarjeta-descripcion-extendida {
    margin: 16px 0;
    padding: 16px;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid #3b82f6;
}

.tarjeta-descripcion p,
.tarjeta-descripcion-extendida p {
    margin: 0;
    color: #4b5563;
    line-height: 1.5;
}

.tarjeta-stock {
    margin-top: 12px;
    font-size: 0.9rem;
    font-weight: 600;
}

.stock-disponible {
    color: #10b981;
}

.stock-agotado {
    color: #ef4444;
}

.stock-evento-finalizado {
    color: #ef4444;
    background: #fef2f2;
    padding: 8px 12px;
    border-radius: 6px;
    display: inline-block;
}

.evento-finalizado-badge {
    background: #ef4444;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 12px;
}

/* ✅ RESPONSIVE BREAKPOINTS MEJORADOS */

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
    .tarjeta-contenido {
        padding: 18px;
    }
    .tarjeta-contenido{
        align-content: center;
    }
    
    .tarjeta-superior {
        gap: 16px;
    }
    
    .tarjeta-nombre {
        font-size: 1.2rem;
    }
    
    .precio-valor {
        font-size: 1.3rem;
    }
    
    .btn-seleccionar-completo {
        min-width: 130px;
        padding: 10px 16px;
    }
}

/* Mobile Large (576px - 768px) */
@media (max-width: 768px) {
    .tarjetas-titulo {
        font-size: 1.75rem;
        justify-content: center;
        text-align: center;
    }
    
    .tarjeta-superior {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .tarjeta-precio {
        text-align: left;
        order: -1; /* Mover precio arriba */
    }
    
    .precio-valor {
        font-size: 1.4rem;
    }
    
    .tarjeta-controles {
        flex-direction: column;
        gap: 12px;
    }
    
    .controles-cantidad {
        width: 100%;
        justify-content: center;
    }
    
    .btn-seleccionar-completo {
        width: 100%;
        min-width: auto;
    }
    
    .tarjeta-recursos-preview {
        justify-content: center;
    }
}

/* Mobile Small (0 - 576px) */
@media (max-width: 576px) {
    .wc-tarjetas-container {
        margin: 10px 0;
    }
    
    .tarjetas-header {
        margin-bottom: 10px;
    }
    
    .tarjetas-titulo {
        font-size: 1.5rem;
        gap: 8px;
    }
    
    .tarjeta-contenido {
        padding: 16px;
    }
    
    .tarjeta-nombre {
        font-size: 1.1rem;
        text-align: center;
        margin-bottom: 8px;
    }
    
    .precio-valor {
        font-size: 1.0rem;
        text-align: center !important;
    }
    
    .tarjeta-recursos-preview {
        justify-content: center;
        gap: 10px;
    }
    
    .recurso-badge {
        font-size: 0.8rem;
        padding: 4px 10px;
    }
    
    .btn-cantidad {
        padding: 12px 16px; /* Más grande para touch */
        min-width: 50px;
    }
    
    .cantidad-actual {
        padding: 12px 20px;
        min-width: 60px;
    }
    
    .btn-seleccionar-completo {
        padding: 14px 20px;
        min-height: 52px;
        font-size: 1rem;
    }
    
    .tarjeta-descripcion,
    .tarjeta-descripcion-extendida {
        padding: 12px;
        margin: 12px 0;
    }
    
    .tarjeta-descripcion p,
    .tarjeta-descripcion-extendida p {
        font-size: 0.9rem;
        text-align: center;
    }
    
    .tarjeta-stock {
        text-align: center;
    }
}

/* ✅ MEJORADO: Para pantallas muy pequeñas */
@media (max-width: 400px) {
    .tarjeta-contenido {
        padding: 12px;
        align-items: center;
    }
    
    .tarjeta-recursos-preview {
        flex-direction: column;
        align-items: center;
        gap: 4px;
    }
    
    .recurso-badge {
        width: fit-content;
    }
    
    .controles-cantidad {
        border-radius: 0px;
    }
    
    .btn-cantidad {
        padding: 10px 12px;
        font-size: 1rem;
    }
    
    .cantidad-actual {
        padding: 10px 16px;
        font-size: 1rem;
    }
}

/* ✅ Estados hover solo para dispositivos con hover */
@media (hover: hover) {
    .tarjeta-entrada:hover {
        border-color: #3b82f6;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
        transform: translateY(-2px);
    }
    
    .btn-seleccionar-completo:hover:not(:disabled) {
        transform: translateY(-2px);
    }
}

/* ✅ Mejoras de accesibilidad */
.tarjeta-entrada:focus-within {
    outline: 3px solid #3b82f6;
    outline-offset: 2px;
}

.btn-cantidad:focus,
.btn-seleccionar-completo:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* ✅ Loading states */
.tarjeta-entrada.cargando {
    opacity: 0.7;
    pointer-events: none;
}

.tarjeta-entrada.cargando::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Modo oscuro */
@media (prefers-color-scheme: dark) {
    .tarjeta-entrada {
        background: #1f2937;
        border-color: #374151;
    }
    
    .tarjeta-entrada.seleccionada {
        background-color: #1e3a5f;
        border-color: #3b82f6;
    }
    
    .tarjetas-titulo {
        color: #f9fafb;
    }
    
    .tarjeta-nombre {
        color: #f9fafb;
    }
    
    .tarjeta-descripcion p {
        color: #d1d5db;
    }
    
    .tarjeta-descripcion {
        border-color: #ffffff;
    }
    
    .tarjeta-entrada:hover {
        border-color: #3b82f6;
        background-color: #374151;
    }
}

/* Estados para navegación por teclado */
.tarjeta-entrada.focus-visible {
    outline: 3px solid #3b82f6;
    outline-offset: 2px;
}

/* Smooth transitions para todas las animaciones */
* {
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

/* Optimizaciones de rendimiento */
.tarjeta-entrada {
    will-change: transform, box-shadow;
    backface-visibility: hidden;
}

/* Soporte para navegadores antiguos */
@supports not (backdrop-filter: blur(10px)) {
    .mensaje-seleccion,
    .mensaje-error {
        background: #10b981; /* Fallback sólido */
    }
    
    .mensaje-error {
        background: #ef4444;
    }
}
/* ✅ NUEVO: Estilos para la estructura de tarjeta específica */
.tarjeta-entrada {
    /* border: 2px solid #e0e0e0; */
    /* border-radius: 8px; */
    padding: 10px;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #000b3d 0%, #443709 100%);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: relative;
}

.tarjeta-entrada::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #000b3d 0%, #443709 100%);
    border-radius: 0px 0px 0 0;
}

.tarjeta-superior {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.tarjeta-tipo {
    flex: 1;
}

.tarjeta-nombre {
    font-size: 1.4rem;
    font-weight: bold;
    color: white;
    margin-bottom: 8px;
}

.tarjeta-recursos-preview {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.recurso-badge {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 0.85rem;
    color: #495057;
    display: flex;
    align-items: center;
    gap: 4px;
}

.recurso-badge::before {
    content: '✓';
    font-weight: bold;
    color: #28a745;
}

.mas-recursos {
    background: #e9ecef;
    border: 1px solid #ced4da;
    border-radius: 20px;
    padding: 4px 10px;
    font-size: 0.8rem;
    color: #6c757d;
    cursor: pointer;
}

.tarjeta-precio {
    text-align: right;
}

.precio-valor {
    font-size: 1.5rem;
    font-weight: bold;
    color: #e74c3c;
}

/* Controles de cantidad mejorados */
.controles-cantidad {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 25px;
    overflow: hidden;
    margin-right: 15px;
}

.btn-cantidad {
    background: none;
    border: none;
    padding: 10px 15px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
    min-width: 45px;
}

.btn-cantidad:hover:not(:disabled) {
    background: #e9ecef;
}

.btn-cantidad:disabled {
    color: #adb5bd;
    cursor: not-allowed;
}

.cantidad-actual {
    padding: 10px 20px;
    font-weight: bold;
    font-size: 1.1rem;
    min-width: 50px;
    text-align: center;
    background: #d1045900;
}

/* Botón principal de compra */
.btn-seleccionar-completo {
    background: linear-gradient(135deg, #c00c0c 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 12px 25px;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    min-width: 140px;
    justify-content: center;
}

.btn-seleccionar-completo:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-seleccionar-completo:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
}

.btn-icono {
    font-size: 1.3rem;
}

.btn-precio {
    font-size: 1.1rem;
    font-weight: bold;
}

/* Descripción */
.tarjeta-descripcion, 
.tarjeta-descripcion-extendida {
    margin: 15px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.tarjeta-descripcion p,
.tarjeta-descripcion-extendida p {
    margin: 0;
    color: #495057;
    line-height: 1.5;
}

/* Stock */
.tarjeta-stock {
    margin-top: 10px;
    font-size: 0.9rem;
}

.stock-disponible {
    color: #28a745;
    font-weight: bold;
}

.stock-agotado {
    color: #dc3545;
    font-weight: bold;
}

.stock-evento-finalizado {
    color: #dc3545;
    font-weight: bold;
    background: #ffe6e6;
    padding: 5px 10px;
    border-radius: 5px;
    display: inline-block;
}

/* Evento finalizado */
.evento-finalizado-badge {
    background: #dc3545;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-left: 10px;
}

/* Tarjeta agotada */
.tarjeta-entrada.agotado {
    opacity: 0.7;
    background: #f8f9fa;
}

.tarjeta-entrada.agotado::before {
    background: #6c757d;
}

/* Tarjeta seleccionada */
.tarjeta-entrada.seleccionada {
    border-color: #667eea;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}
/* ✅ ULTRA COMPACTO - RESPONSIVE */
@media (max-width: 768px) {
    .tarjeta-entrada {
        padding: 8px;
        margin-bottom: 8px;
    }
    
    .tarjeta-contenido {
        padding: 0;
        align-content: center;
    }
    
    /* Header compacto en una línea */
    .tarjeta-superior {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 8px;
        gap: 8px;
    }
    
    .tarjeta-tipo {
        flex: 1;
        min-width: 0;
    }
    
    .tarjeta-nombre {
        font-size: 1rem;
        margin: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .tarjeta-recursos-preview {
        display: none; /* Ocultamos recursos en mobile para más compacto */
    }
    
    .tarjeta-precio {
        flex-shrink: 0;
    }
    
    .precio-valor {
        font-size: 1.1rem;
        font-weight: 700;
    }
    
    /* Controles en una sola línea compacta */
    .tarjeta-controles {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 8px;
        margin-top: 8px;
        padding-top: 8px;
        border-top: 1px solid #e5e7eb;
    }
    
    .controles-cantidad-con-label {
        display: flex;
        align-items: center;
        gap: 6px;
        flex: 1;
    }
    
    .cantidad-label {
        display: none; /* Ocultamos el label para ahorrar espacio */
    }
    
    .controles-cantidad {
        border-radius: 6px;
        flex-shrink: 0;
    }
    
    .btn-cantidad {
        padding: 6px 8px;
        min-width: 32px;
        font-size: 0.9rem;
    }
    
    .cantidad-actual {
        padding: 6px 10px;
        min-width: 30px;
        font-size: 0.9rem;
    }
    
    /* Stock y botón ultra compactos */
    .tarjeta-stock-controls {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-shrink: 0;
    }
    
    .stock-disponible,
    .stock-agotado,
    .stock-evento-finalizado {
        font-size: 0.75rem;
        white-space: nowrap;
    }
    
    .stock-disponible {
        color: #10b981;
    }
    
    .btn-seleccionar-completo {
        min-width: auto;
        padding: 6px 10px;
        min-height: 36px;
        gap: 4px;
    }
    
    .btn-icono {
        font-size: 1rem;
    }
    
    .btn-texto {
        display: none; /* Ocultamos "Agregar" para ahorrar espacio */
    }
    
    .btn-precio {
        font-size: 0.9rem;
        font-weight: 700;
    }
    
    /* Ocultar descripción completamente en mobile */
    .tarjeta-descripcion,
    .tarjeta-descripcion-extendida {
        display: none;
    }
}

/* ✅ MOBILE PEQUEÑO - AÚN MÁS COMPACTO */
@media (max-width: 480px) {
    .tarjeta-entrada {
        padding: 6px;
        align-items: center;
        align-content: center;
    }
    
    .tarjeta-nombre {
        font-size: 0.9rem;
    }
    
    .precio-valor {
        font-size: 1rem;
    }
    
    .tarjeta-controles {
        gap: 6px;
    }
    
    .btn-cantidad {
        padding: 4px 6px;
        min-width: 28px;
        font-size: 0.8rem;
    }
    
    .cantidad-actual {
        padding: 4px 8px;
        min-width: 26px;
        font-size: 0.8rem;
    }
    
    .tarjeta-stock-controls {
        gap: 6px;
    }
    
    .stock-disponible,
    .stock-agotado,
    .stock-evento-finalizado {
        font-size: 0.7rem;
    }
    
    .btn-seleccionar-completo {
        padding: 5px 8px;
        min-height: 32px;
    }
    
    .btn-precio {
        font-size: 0.8rem;
    }
}

/* 🔧 Forzar ancho completo en móviles */
.tarjeta-entrada {
  width: 100% !important;
  box-sizing: border-box;
}

.wc-tarjetas-container {
  width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;



}

.wc-tarjetas-container,
.tarjeta-entrada {
    justify-content: center; 
    flex: 1 1 100%;
}

/* RESPONSIVE - Centrado en móviles */
@media (max-width: 768px) {
    .wc-tarjetas-container {
        margin: 15px auto !important;
        padding: 0 15px;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .wc-tarjetas-container {
        margin: 15px auto !important;
        padding: 0 10px;
    }
}
