.feature-cards-grid {
    display: flex;
    flex-direction: row; /* Ensure horizontal layout */
    justify-content: space-around; /* Distribute items evenly */
    gap: 30px; /* Space between cards */
    margin-top: 50px;
}

.feature-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex: 1; /* Allow cards to grow and shrink */
    min-width: 280px; /* Minimum width for cards */
    max-width: 350px; /* Maximum width for cards */
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.feature-card img {
    width: 100%;
    aspect-ratio: 1 / 1; /* 1:1 aspect ratio */
    object-fit: cover;
    border-bottom: 1px solid #eee;
}

.feature-card .text-content {
    padding: 25px;
}

.feature-card h3 {
    color: var(--color-primario-vivo);
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.feature-card p {
    color: var(--color-texto-oscuro);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0;
    max-width: none; /* Override global p max-width */
}

/* Responsive styles for mobile */
@media (max-width: 768px) {
    .feature-cards-grid {
        flex-direction: column;
    }
    .feature-card {
        width: 100%; /* Ensure cards take full width on mobile */
        max-width: none; /* Remove max-width constraint on mobile */
    }
}