/* CSS para tarjetas de producto estilo móvil */

.equipment-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding: 20px;
}

/* Tarjeta de producto estilo iPhone */
.equipment-item {
    background: white;
    border-radius: 20px;
    padding: 30px 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border: 1px solid #f0f0f0;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    min-height: 480px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.equipment-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.equipment-item.selected {
    border: 2px solid #007bff;
    background: #f8fbff;
}

/* Badge estilo iPhone */
.equipment-badge {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    background: #f0c14b;
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.equipment-badge.popular {
    background: #f0c14b;
    color: #333;
}

.equipment-badge.new {
    background: #4CAF50;
}

.equipment-badge.offer {
    background: #FF5722;
}

.equipment-badge.premium {
    background: #9C27B0;
}

/* Contenedor de imagen */
.equipment-image-container {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
    background: #fafafa;
    border-radius: 15px;
    overflow: hidden;
}

.equipment-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.equipment-item:hover .equipment-image {
    transform: scale(1.05);
}

/* Información del producto */
.equipment-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Nombre del producto */
.equipment-name {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
    line-height: 1.2;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Precio inicial */
.equipment-initial {
    font-size: 18px;
    font-weight: 600;
    color: #16a085;
    margin-bottom: 8px;
}

/* Pago quincenal */
.equipment-biweekly {
    font-size: 32px;
    font-weight: 800;
    color: #007bff;
    margin-bottom: 8px;
    line-height: 1;
}

/* Precio total */
.equipment-total {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
}

/* Botón de solicitar */
.equipment-button {
    background: linear-gradient(135deg, #ff8a00, #ff6b35);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
}

.equipment-button:hover {
    background: linear-gradient(135deg, #ff6b35, #ff8a00);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.3);
}

.equipment-button i {
    font-size: 18px;
}

/* Versión móvil */
@media (max-width: 768px) {
    .equipment-list {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 16px;
    }
    
    .equipment-item {
        padding: 24px 16px;
        min-height: 420px;
        border-radius: 16px;
    }
    
    .equipment-image-container {
        height: 160px;
        margin: 16px 0;
    }
    
    .equipment-name {
        font-size: 20px;
        min-height: 50px;
        margin-bottom: 12px;
    }
    
    .equipment-initial {
        font-size: 16px;
    }
    
    .equipment-biweekly {
        font-size: 28px;
    }
    
    .equipment-total {
        font-size: 14px;
        margin-bottom: 16px;
    }
    
    .equipment-button {
        padding: 12px 24px;
        font-size: 15px;
    }
}

/* Para pantallas muy pequeñas */
@media (max-width: 480px) {
    .equipment-list {
        padding: 12px;
        gap: 12px;
    }
    
    .equipment-item {
        padding: 20px 12px;
        min-height: 380px;
    }
    
    .equipment-image-container {
        height: 140px;
    }
    
    .equipment-name {
        font-size: 18px;
        min-height: 45px;
    }
    
    .equipment-biweekly {
        font-size: 24px;
    }
}

/* Animaciones */
.equipment-item {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.6s ease forwards;
}

.equipment-item:nth-child(1) { animation-delay: 0.1s; }
.equipment-item:nth-child(2) { animation-delay: 0.2s; }
.equipment-item:nth-child(3) { animation-delay: 0.3s; }

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Estados de selección */
.equipment-item.selected .equipment-button {
    background: #28a745;
}

.equipment-item.selected .equipment-button::before {
    content: "✓ ";
    font-weight: bold;
}