/* ============================================================ */
/* ===== RESPONSIVE (MÓVIL) ===== */
/* ============================================================ */

/* Tablets y móviles grandes */
@media (max-width: 992px) {
    .custom-carousel .carousel-inner img {
        height: 450px;
    }

    .custom-carousel .carousel-caption {
        bottom: 15%;
        left:10%;
        right:10%;
        width:auto;
        background: rgba(0, 0, 0, 0.55);
        width: 85%;
    }

    .custom-carousel .carousel-caption h2 {
        font-size: 26px;
    }

    .custom-carousel .carousel-caption p {
        font-size: 16px;
    }
}

/* Móviles (celulares) */
@media (max-width: 768px) {
    .custom-carousel {
        max-height: 420px;
    }

    .custom-carousel .carousel-inner img {
        height: 430px;
        object-position: center 30%; /* Ajusta para que se vea mejor el sujeto */
        object-fit: cover;
    }

    .custom-carousel .carousel-caption {
        bottom: 10%;
        left:10%;
        right:10%;
        width:auto;
        text-align:center;
        background: rgba(0, 0, 0, 0.55);
        border-radius: 10px;
        /* Asegura que no se desplace */
        margin: 0 auto;
    }

    .custom-carousel .carousel-caption h2 {
        font-size: 20px;
        margin-bottom: 4px;
        letter-spacing: 1px;
    }

    .custom-carousel .carousel-caption p {
        font-size: 13px;
        line-height: 1.4;
    }

    /* Indicadores más pequeños */
    .custom-carousel .carousel-indicators {
        bottom: 10px;
    }

    .custom-carousel .carousel-indicators button {
        width: 30px;
        height: 4px;
        border-radius: 4px;
        border: none;
        background: rgba(255, 255, 255, 0.5);
        margin: 0 4px;
        transition: all 0.3s ease;
    }

 /* Controles (flechas) - Mantener estilo Bootstrap */
 .custom-carousel .carousel-control-prev,
 .custom-carousel .carousel-control-next {
     width: 40px;
     height: 40px;
     top: 50%;
     transform: translateY(-50%);
     background: rgba(0, 0, 0, 0.3);
     border-radius: 50%;
     opacity: 0.7;
     transition: all 0.3s ease;
 }
    .custom-carousel .carousel-control-prev {
        left: 8px;
    }

    .custom-carousel .carousel-control-next {
        right: 8px;
    }

    .custom-carousel .carousel-control-prev-icon,
    .custom-carousel .carousel-control-next-icon {
        width: 16px;
        height: 16px;
    }
}

/* Móviles muy pequeños (< 480px) */
@media (max-width: 480px) {
    .custom-carousel {
        max-height: 320px;
    }

    .custom-carousel .carousel-inner img {
        height: 450px;
        object-position: center 25%;
        object-fit: cover;
    }

   .custom-carousel .carousel-caption {
          bottom: 10%;
          left:10%;
          right:10%;
          width:auto;
          text-align:center;
          background: rgba(0, 0, 0, 0.55);
          border-radius: 10px;
          /* Asegura que no se desplace */
          margin: 0 auto;
      }

    .custom-carousel .carousel-caption h2 {
        font-size: 16px;
        letter-spacing: 0.5px;
        margin-bottom: 2px;
    }

    .custom-carousel .carousel-caption p {
        font-size: 11px;
        line-height: 1.3;
    }

    .custom-carousel .carousel-indicators button {
        width: 8px;
        height: 8px;
        margin: 0 3px;
    }

    .custom-carousel .carousel-control-prev,
    .custom-carousel .carousel-control-next {
        width: 28px;
        height: 28px;
        top: 60%; /* ← Subir o bajar: 50% = centro, 60% = más abajo, 40% = más arriba */
        transform: translateY(-50%);
        }
    }

    .custom-carousel .carousel-control-prev-icon,
    .custom-carousel .carousel-control-next-icon {
        width: 12px;
        height: 12px;
    }
}