.cardTransformador {
    --bg-url: url('');
    background-image: var(--bg-url);
    background-size: cover;
    background-position: center;
    background-color: white;
    height: 224px;
    border: 3px solid #0066cc;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    cursor: pointer;
}

.cardTransformador:hover {
    background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0) 30%, rgba(0, 55, 120, 0.95) 100%), var(--bg-url);
}

.cardTransformador__nombre {
    text-align: center;
    color: black;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.cardTransformador:hover .cardTransformador__nombre {
    padding-bottom: 10px;
    color: white;
}

.cardTransformador__link {
    color: white;
    background-color: transparent;
    border: 2px solid white;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    width: 140px;
    height: 41px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 2;
}

.cardTransformador:hover .cardTransformador__link {
    opacity: 1;
    transform: translateY(0);
}

.cardTransformador__link:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
    border-color: white;
    text-decoration: none;
}

/* Grid layout for cards */
.transformadores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    padding: 10px 20px;
}

@media (max-width: 768px) {
    .cardTransformador {
        height: 200px;
    }
    
    .cardTransformador__nombre {
        font-size: 16px;
        padding: 15px 10px;
    }
    
    .cardTransformador__link {
        width: 120px;
        height: 38px;
        font-size: 13px;
    }
}