/* =========================================================
   GRUPO DELMEX — Carrusel infinito
   Lo mueve js/js.js (initCarousel clona slides y desplaza
   el .carousel con transform). Las clases y el paso de
   33.3333% deben coincidir con ese script: no cambiar los
   anchos sin ajustar js.js.
   Requiere css/rediseno.css cargado antes.
   ========================================================= */

.carousel-section {
    background: var(--acero);
    padding: 3.5rem 0 4rem;
}

.carousel-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
    overflow: hidden;
    position: relative;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.carousel {
    display: flex;
    width: 100%;
    flex: 0 0 100%;
    transition: transform .5s ease-in-out;
}

.slide {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    min-width: calc(33.3333% - 14px);
    flex: 0 0 calc(33.3333% - 14px);
    margin: 0 7px;
    height: 215px;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background: linear-gradient(140deg, var(--navy), var(--ink));
    box-shadow: 0 18px 40px -22px rgba(22, 34, 63, .6);
    transition: transform .3s ease, box-shadow .3s ease;
}

.slide:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 46px -22px rgba(22, 34, 63, .75);
}

.slide img {
    width: 44%;
    height: 100%;
    flex-shrink: 0;
    object-fit: cover;
    display: block;
}

.slide-content {
    flex: 1;
    min-width: 0;
    padding: 1.15rem 1.15rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.slide-title {
    font-family: 'Archivo', sans-serif;
    font-variation-settings: "wdth" 108;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 .4rem;
    overflow-wrap: break-word;
}

.slide-text {
    font-size: 12.5px;
    line-height: 1.5;
    color: rgba(207, 227, 245, .8);
    margin: 0;
    overflow-wrap: break-word;
}

.ver-mas {
    position: absolute;
    bottom: .85rem;
    right: 1.15rem;
    font-size: 12px;
    font-weight: 600;
    color: var(--cielo);
    text-decoration: none;
    padding: .25rem .7rem;
    border-radius: 999px;
    border: 1px solid rgba(111, 180, 228, .35);
    transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}

.ver-mas:hover {
    background: var(--cielo);
    color: var(--ink);
    border-color: var(--cielo);
}

/* ---------- Botones ---------- */

.carousel-buttons {
    position: absolute;
    left: 1.5rem;
    right: 1.5rem;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.carousel-button {
    pointer-events: auto;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .92);
    color: var(--navy);
    border: 1px solid rgba(22, 34, 63, .1);
    border-radius: 999px;
    cursor: pointer;
    font-size: 15px;
    line-height: 1;
    box-shadow: 0 10px 24px -12px rgba(22, 34, 63, .6);
    transition: background-color .2s ease, color .2s ease;
}

.carousel-button:hover {
    background: var(--navy);
    color: #fff;
}

/* ---------- Móvil: un slide a la vez, apilado ---------- */

@media (max-width: 768px) {
    .slide {
        min-width: 100%;
        flex: 0 0 100%;
        margin: 0;
        height: auto;
        flex-direction: column;
    }

    .slide img {
        width: 100%;
        height: 150px;
    }

    .slide-content {
        padding: 1rem 1rem 2.5rem;
    }
}