/* Importar Montserrat desde Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@100..900&display=swap');

/* Aplicar Montserrat como fuente principal para todo el sitio */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body,
* {
    font-family: 'Montserrat', sans-serif !important;
}

.bg-theme {
    background-color: rgb(90, 145, 63);
}

#carouselExampleDark {
    height: calc(100vh - 100px);
    /* 100% de pantalla menos la altura del header */
}

#carouselExampleDark .carousel-item img {
    height: calc(100vh - 100px);
    object-fit: cover;
}

.carousel-caption {
    bottom: 25%;
    /* lo sube al centro vertical */
    transform: translateY(40%);
    /* ajusta centrado real */
    text-align: center;
}

.carousel-item {
    position: relative;
}

.carousel-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.carousel-caption h5,
.carousel-caption p {
    color: white !important;
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
}

.carousel-caption h5 {
    font-size: 5rem;
}

.carousel-caption p {
    font-size: 1.4rem;
}

.img-container {
    height: 250px;
}

#inicio,
#nosotros,
#productos,
#clientes {
    scroll-margin-top: 155px;
}

.carousel-control-prev-icon {
    width: 40px;
    height: 40px;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23c593d8' width='8' height='8' viewBox='0 0 8 8'%3e%3cpath d='M5.25 0l-4 4 4 4 1.5-1.5L4.25 4l2.5-2.5L5.25 0z'/%3e%3c/svg%3e");
}

.carousel-control-next-icon {
    width: 40px;
    height: 40px;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23c593d8' width='8' height='8' viewBox='0 0 8 8'%3e%3cpath d='M2.75 0l-1.5 1.5L3.75 4l-2.5 2.5L2.75 8l4-4-4-4z'/%3e%3c/svg%3e");
}

.carousel-indicators li {
    width: 16px;
    height: 16px;
    margin-left: 5px;
    margin-right: 5px;
    background-color: #c593d8;
    border-radius: 50%;
}
.img-mobile {
    width:30%; height:640px; position: relative; left: 34%;
 }

header {
    height: auto;
}
@media (max-width: 1024px) {
    .navbar-nav .nav-link.fs-5 {
      font-size: 1rem !important; /* Bootstrap fs-6 equivale a 1rem */
    }
  }
  
@media (min-width: 992px) {

    /* lg y superior */
    header {
        height: 92px !important;
    }

    header .navbar {
        height: 92px !important;
    }

    header .container-fluid {
        height: 92px !important;
    }
}

.carousel-item img {
    object-fit: cover;
    width: 100%;
}

/* Tamaño de imagen por dispositivo */
@media (max-width: 576px) {
    #carouselExampleDark {
        height: auto;
        /* 100% de pantalla menos la altura del header */
    }

    .carousel-item img {
        max-height: 400px;
    }

    .carousel-item img.img-limited-height {
        height: 912px;
    }

    .img-mobile {
        width: 61%;
        position: relative;
        height: auto;
        left: 70px;
    }

    .carousel-caption {
        font-size: 0.8rem;
        padding: 0.5rem;
    }

    .carousel-caption h5 {
        font-size: 1.3rem;
    }

    .carousel-caption p {
        font-size: 0.8rem;
    }
}

@media (min-width: 577px) {
    .carousel-item img {
        max-height: 90vh;
    }

    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 25px;
        height: 25px;
    }

    .carousel-indicators button {
        width: 10px;
        height: 10px;
        margin: 0 3px;
    }
}


.letter-spacing {
    letter-spacing: 0.5px;
    line-height: 1.8;
}

.logo-responsive {
    height: 80px;
    width: 100px;
    z-index: 3;
    border-radius: 48%;
    padding: 0 15% 0 0;
    transform: translateY(24%);
}

/* Desde LG en adelante, tamaño original */
@media (min-width: 992px) {
    .logo-responsive {
        height: 150px;
        width: 200px;
    }
}

/* Logo y WhatsApp solo en móviles: flotan sobre el dropdown */
@media (max-width: 991.98px) {

    .logo-container,
    .whatsapp-container {
        position: absolute !important;
        z-index: 1051;
        /* mayor que navbar-collapse (Bootstrap usa hasta 1050) */
    }

    .logo-container {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .whatsapp-container {
        top: 50%;
        right: 1rem;
        transform: translateY(-50%);
    }
}

/* En pantallas grandes: comportamiento normal */
@media (min-width: 992px) {

    .logo-container,
    .whatsapp-container {
        position: static !important;
        transform: none !important;
        z-index: auto;
    }

    .logo-responsive {
        height: 150px;
        width: 200px;
    }
}


/* Estilo solo para pantallas menores a 768px (mobile) */
@media (max-width: 767.98px) {
    .logo-responsive {
        height: 78px;
        transform: translateY(0%);
        width: 108px;
        padding: 0 14px 0px 0px;
        margin: 0 auto;
        display: block;
    }
    
}