/*** Spinner Start ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}

html,
body {
    overflow-x: hidden !important;
    width: 100%;
    position: relative;
}

/*** Botones Generales ***/
.btn {
    font-weight: 600;
    transition: .5s;
    box-shadow: 4px 4px 4px #00000030;
    border: 1px solid #00000050;
}

.btn.btn-primary {
    color: var(--bs-white);
}

.btn.btn-primary:hover {
    background: var(--bs-secondary);
    border: 1px solid var(--bs-secondary);
}

.btn.btn-secondary {
    color: var(--bs-white);
}

.btn.btn-secondary:hover {
    background: var(--bs-primary);
    border: 1px solid var(--bs-primary);
}

/*** Navbar General ***/
.navbar {
    transition: background 0.5s ease, padding 0.5s ease;
}

.navbar-light .navbar-nav .nav-link {
    position: relative;
    margin-right: 25px;
    padding: 35px 0;
    color: var(--bs-white);
    font-size: 17px;
    font-weight: 400;
    transition: .5s;
}

/* Color verde para menú principal activo y hover */
.navbar-light .navbar-nav .nav-link.active,
.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-item:hover>.nav-link {
    color: #199a6d !important;
}

/* ESTILO PARA SUBMENÚS (DROPDOWN ITEMS) */
.dropdown-item:hover,
.dropdown-item:focus,
.dropdown-item.active {
    background-color: #199a6d !important;
    color: #ffffff !important;
}

/*** NAVBAR MÓVIL (Fijo para iPhone 15) ***/
@media (max-width: 991.98px) {
    .navbar {
        background: rgba(0, 0, 0, 0.85) !important;
        position: fixed !important;
        top: 0;
        width: 100%;
        padding: 8px 15px !important;
        z-index: 1030;
    }

    .navbar.sticky-top {
        background: rgb(0 20 84) !important;
    }

    .navbar-brand img {
        max-height: 40px !important;
    }

    .navbar-toggler {
        padding: 2px 6px !important;
        border-color: #199a6d !important;
    }

    .navbar-light .navbar-collapse {
        margin-top: 10px;
        background: rgba(0, 0, 0, 0.95);
        padding: 15px;
        border-radius: 10px;
    }

    .navbar-light .navbar-nav .nav-link {
        padding: 10px 0;
    }

    .navbar-light .navbar-nav .nav-item::after {
        display: none !important;
    }
}

/*** NAVBAR ESCRITORIO (Submenús al pasar el mouse + Indicadores) ***/
@media (min-width: 992px) {

    /* EFECTO HOVER PARA SUBMENÚS */
    .nav-item.dropdown:hover>.dropdown-menu {
        display: block;
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
        transition: all 0.3s ease;
    }

    .dropdown-menu {
        display: block;
        visibility: hidden;
        opacity: 0;
        transform: translateY(10px);
        transition: all 0.3s ease;
        margin-top: 0;
        /* Evita que se cierre al mover el mouse */
    }

    .navbar-light {
        position: relative;
        width: 100%;
        z-index: 999;
        background-color: rgba(0, 0, 0, 0.9) !important;
    }

    .navbar-brand img {
        max-height: 80px;
    }

    .sticky-top.navbar-light {
        position: fixed !important;
        top: 0;
        left: 0;
        background: rgba(0, 0, 0, 0.85) !important;
        backdrop-filter: blur(5px);
    }

    .sticky-top.navbar-light .navbar-nav .nav-link {
        padding: 20px 0;
    }

    /* LÍNEA VERDE INFERIOR */
    .navbar-light .navbar-nav .nav-item::before {
        position: absolute;
        content: "";
        width: 0;
        height: 2px;
        bottom: -1px;
        left: 50%;
        background: #199a6d;
        transition: .5s;
    }

    .navbar-light .navbar-nav .nav-item:hover::before,
    .navbar-light .navbar-nav .nav-link.active::before {
        width: calc(100% - 2px);
        left: 1px;
    }

    /* TRIÁNGULO VERDE */
    .navbar-light .navbar-nav .nav-item::after {
        content: "";
        position: absolute;
        bottom: 1px;
        left: 50%;
        transform: translateX(-50%);
        border: 10px solid;
        border-color: transparent transparent #199a6d transparent;
        opacity: 0;
        transition: 0.5s;
    }

    .navbar-light .navbar-nav .nav-item:hover::after,
    .navbar-light .navbar-nav .nav-link.active::after {
        opacity: 1;
    }
}

/*** CARRUSEL - ICONOS Y FLECHAS ***/
.carousel-header {
    position: relative;
    overflow: hidden;
}

.carousel-indicators {
    display: none;
}

.carousel-control-prev,
.carousel-control-next {
    width: 40px;
    z-index: 20;
    opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 12px;
    background: #199a6d;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.5s;
}

.carousel-control-prev-icon {
    left: 0;
    border-radius: 0 30px 30px 0;
}

.carousel-control-next-icon {
    right: 0;
    border-radius: 30px 0 0 30px;
}

.carousel-control-prev-icon i,
.carousel-control-next-icon i {
    font-size: 1.2rem !important;
    color: white;
}

/*** CARRUSEL DESKTOP ***/
@media (min-width: 992px) {

    .carousel-item .carousel-caption-1,
    .carousel-item .carousel-caption-2 {
        position: absolute;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        display: flex;
        align-items: center;
        z-index: 10;
    }

    .carousel-item .carousel-caption-1 {
        justify-content: flex-end;
        padding-right: 10%;
        background: linear-gradient(to left, rgba(0, 0, 0, 0.5), transparent);
    }

    .carousel-item .carousel-caption-2 {
        justify-content: flex-start;
        padding-left: 10%;
        background: linear-gradient(to right, rgba(0, 0, 0, 0.5), transparent);
    }

    .carousel-caption-1-content,
    .carousel-caption-2-content {
        max-width: 600px;
    }
}

/*** CARRUSEL MÓVIL (Todo Centrado y Mini) ***/
@media (max-width: 991.98px) {
    .carousel-header {
        margin-top: 55px;
    }

    .carousel .carousel-inner .carousel-item {
        height: 450px;
    }

    .carousel .carousel-inner .carousel-item img {
        height: 450px;
        object-fit: cover;
        object-position: 35% center !important;
    }

    .carousel-item .carousel-caption-1,
    .carousel-item .carousel-caption-2 {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        z-index: 15;
        background: rgba(0, 0, 0, 0.4);
    }

    .carousel-caption-1-content,
    .carousel-caption-2-content {
        text-align: center !important;
        width: 100% !important;
        padding: 0 50px !important;
    }

    .carousel-caption-1-content-btn,
    .carousel-caption-2-content-btn {
        justify-content: center !important;
        display: flex !important;
        margin-top: 15px !important;
    }

    .carousel-item h1 {
        font-size: 1.1rem !important;
        color: white !important;
        margin-bottom: 8px !important;
    }

    .carousel-item p {
        font-size: 0.85rem !important;
        color: white !important;
        margin-bottom: 15px !important;
    }

    .carousel-item .btn {
        padding: 6px 15px !important;
        font-size: 0.75rem !important;
        border-radius: 20px !important;
    }
}

/*** Secciones Generales ***/
.bg-breadcrumb {
    position: relative;
    overflow: hidden;
    background: linear-gradient(rgba(0, 20, 66, 0.7), rgba(0, 20, 66, 0.7)), url(../img/breadcrumb.jpg);
    background-position: center top;
    background-size: cover;
    padding: 100px 0 50px 0;
}

.about .about-img {
    position: relative;
    padding-bottom: 30px;
    margin-top: 30px;
    margin-left: 30px;
}

.about .about-img::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 10px;
    top: -30px;
    right: 0;
    border-radius: 10px;
    background: var(--bs-secondary);
}

.product .product-item {
    border: 1px solid #00b8904c;
    border-radius: 10px;
    overflow: hidden;
}

.footer {
    background: var(--bs-dark);
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: var(--bs-dark);
}

/*** RLR & Fixes Finales ***/
h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
    font-family: sans-serif !important;
}

.rlr-zoom {
    transition: transform 0.5s ease;
}

.rlr-zoom:hover {
    transform: scale(1.05);
}

/* iPhone Estrecho (320px) */
@media (max-width: 330px) {

    .carousel-caption-1-content,
    .carousel-caption-2-content {
        padding: 0 40px !important;
    }

    .carousel-item h1 {
        font-size: 1rem !important;
    }
}