/* Contenedor Principal */
.recetasSection {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #565151;
    padding: 4rem 0;
    min-height: 100vh;
    color: white;
}

.recetasSection h2 {
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.carousel {
    width: 90%;
    max-width: 1100px;
    overflow: hidden;
    margin-bottom: 2rem;
}

/* El riel que se mueve */
.slide {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 30px;
    /* Espacio entre tarjetas */
    padding-left: 20px;
}

/* Cada envoltorio de tarjeta */
.item {
    flex: 0 0 300px;
    /* No crece, no encoge, siempre mide 300px */
    display: flex;
}

/* La Tarjeta */
.card {
    background-color: #bca177;
    border: none;
    border-radius: 12px;
    width: 100%;
    height: 480px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}

.card:hover {
    transform: translateY(-5px);
}

/* Imagen de la receta */
.card-img-top {
    width: 100%;
    height: 220px;
    /* Altura fija para todas las fotos */
    object-fit: cover;
}

/* Cuerpo de la tarjeta */
.card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
    /* Empuja el botón siempre abajo */
    text-align: center;
}

.card-title {
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    text-transform: uppercase;
    margin: 0;

    /* Truco para forzar 2 líneas y poner "..." si es más largo */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;

    /* Altura fija basada en line-height (1.4 * 1.2rem * 2 líneas) */
    line-height: 1.4rem;
    height: 2.8rem;
}

/* Botón */
.botonPreparacion {
    color: white;
    border: 2px solid white;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    text-decoration: none;
    background-color: rgba(134, 107, 79, 0.5);
    border-radius: 25px;
    transition: all 0.3s ease;
    align-self: center;
}

.botonPreparacion:hover {
    background-color: white;
    color: #866b4f;
    font-weight: bold;
}

/* Paginación */
.puntos {
    display: flex;
    gap: 15px;
}

.punto {
    width: 15px;
    height: 15px;
    background-color: #888;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.punto.activo {
    background-color: #bca177;
    transform: scale(1.3);
}

/* --- RESPONSIVE --- */

@media (max-width: 992px) {
    .item {
        min-width: calc(50% - 20px);
        /* 2 tarjetas en tablets */
    }
}

@media (max-width: 600px) {
    .item {
        min-width: 100%;
        /* 1 tarjeta en celulares */
    }

    .carousel {
        width: 85%;
    }
}