/* =========================================================
   SLIDER PROPORCIONAL (NO RECORTA IMÁGENES CON TEXTO)
   ========================================================= */

.carousel {
    width: 100%;
    position: relative;
    overflow: hidden;
}

.carousel-container {
    position: relative;
    width: 100%;
    /* REGLA MAESTRA: Pon aquí el Ancho / Alto exacto de tu foto original */
    /* Ej: Si tu foto mide 1920x1080 píxeles, pones 1920 / 1080 */
    aspect-ratio: 1920 / 800; 
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .8s ease;
    pointer-events: none;
}

.slide.active {
    opacity: 1;
    pointer-events: auto;
}

.slide img {
    width: 100%;
    height: 100%;
    /* CONTAIN: Tiene estrictamente prohibido recortar la foto */
    object-fit: contain !important; 
    object-position: center !important; 
    display: block;
}

/* =========================================================
   CONTROLES Y BOTONES
   ========================================================= */

.control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 55px;
    height: 55px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 30px;
    color: #fff;
    background: rgba(0,0,0,.35);
    transition: .25s;
    z-index: 20;
}

.control:hover { background: #d90000; }
.prev { left: 20px; }
.next { right: 20px; }

.indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 20;
}

.dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255,255,255,.5);
    cursor: pointer;
    transition: .3s;
}

.dot.active {
    background: white;
    transform: scale(1.3);
}

/* =========================================================
   SOLO ACHICAMOS LOS BOTONES EN MÓVILES (La altura se ajusta sola)
   ========================================================= */

@media (max-width: 768px) {
    .control { width: 40px; height: 40px; font-size: 20px; }
    .prev { left: 10px; }
    .next { right: 10px; }
    .indicators { bottom: 12px; }
    .dot { width: 10px; height: 10px; }
}