@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap');

html,
body {
    font-family: "Nunito", sans-serif;
    scroll-behavior: smooth;
    color: #000000;

}

.carousel-caption {
    background: rgba(0, 0, 0, 0.6);
}
/* Franja amarilla */
.main-top-info {
    transform: translateY(0);
    opacity: 1;
    transition: transform 0.35s ease, opacity 0.35s ease;
    will-change: transform, opacity;
}

/* Oculta suavemente */
.main-top-info.hidden {
    transform: translateY(-100%);
    opacity: 0;
}

/* Navbar fijo */
.navbar.fixed-top-clean {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    /* opcional, queda elegante */
}

/* Evita que el contenido salte */
body.nav-padding {
    padding-top: 120px;
    /* ajusta según altura total */
}

.zoom {
    transition: transform .2s;
    /* Animation */
}
.text-justify {
    text-align: justify !important;
}

.text-primary {
    color: #003d5c !important;
}

.bg-primary {
    background-color: #003d5c !important;
}

.text-warning {
    color: #f36e2f !important;
}

.bg-warning {
    background-color: #f36e2f !important;
}

.text-secondary {
    color: #636768 !important;
}

.btn-warning {
    background-color: #f36e2f !important;
    border-color: #f36e2f !important;
}

.btn-warning:hover,
.btn-warning:focus {
    background-color: #d85f28 !important;
    /* un poco más oscuro */
    border-color: #d85f28 !important;
}

.btn-outline-warning {
    color: #f36e2f !important;
    border-color: #f36e2f !important;
}

.btn-outline-warning:hover,
.btn-outline-warning:focus {
    background-color: #f36e2f !important;
    color: #fff !important;
    border-color: #f36e2f !important;
}

.zoom:hover {
    transform: scale(1.1);
    -webkit-box-shadow: -2px 2px 14px 12px rgba(0, 0, 0, 0.65);
    -moz-box-shadow: -2px 2px 14px 12px rgba(0, 0, 0, 0.65);
    box-shadow: -2px 2px 14px 12px rgba(0, 0, 0, 0.65);
    z-index: 99;
}

.nav-link {
    color: #ffffff !important;
    font-size: 1em;
    font-weight: bolder;
}

.nav-link:hover {
    color: #f39746 !important;
}

.full-height {
    min-height: calc(100vh - 320px); /* ajusta según altura real del header y footer */
}

.carousel-caption {
    top: 15%;
    bottom: auto;
}

.machine-image {
    max-height: 600px;
    object-fit: cover;
}

.container-machines {
    max-width: 1000px;
}

#content_2 {
    background-image: url("../img/c2.jpg");
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

#how {
    background: rgba(0, 0, 0, 0.2);
    color: #f2f2f2;
}

#how i {
    color: #fff;
    font-size: 1.5em;
}

.how-box {
    background: rgba(218, 215, 215, 0.3);
}

.how-border-r {
    border-right: 5px solid rgba(0, 0, 0, 0.5);
    border-bottom: 5px solid rgba(0, 0, 0, 0.5);
}



.event-detail {
    background-image: url("../img/event-detail.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    color: #FFF;
    min-height: 160px;
}

.btn-wap {
    color: #128c7e;
    font-weight: 600;
    position: fixed;
    bottom: 60px;
    right: 20px;
    z-index: 99;
    font-size: 3.5em;
    outline: none;
    cursor: pointer;
    border-radius: 50%;
    width: 50px;
    height: 50px;
}

.btn-wap:hover {
    background-color: rgba(255, 0, 0, 0);
    color: #25d366;
    transition: .1s ease-in;
    -webkit-transition: .1s ease-in;
    -moz-transition: .1s ease-in;
    -o-transition: .1s ease-in;
    -ms-transition: .1s ease-in;
}

.btn-tracking {
    color: #000000;
    text-shadow: 2px 0 #fff, -2px 0 #fff, 0 2px #fff, 0 -2px #fff,
        1px 1px #fff, -1px -1px #fff, 1px -1px #fff, -1px 1px #fff;
    font-weight: 600;
    position: fixed;
    bottom: 160px;
    right: 55px;
    z-index: 99;
    font-size: 3em;
    outline: none;
    cursor: pointer;
    border-radius: 50%;
    width: 20px;
    height: 20px;
}

.btn-tracking:hover {
    background: rgba(0, 0, 0, 0);
    color: #14274F;
    transition: .1s ease-in;
    -webkit-transition: .1s ease-in;
    -moz-transition: .1s ease-in;
    -o-transition: .1s ease-in;
    -ms-transition: .1s ease-in;
}

.footer {
    background: #14274F;
    color: #fff;
}

.footer img {
    width: 35%;
    height: auto;
}

.footer a {
    color: rgb(204, 197, 197);
    text-decoration: none;

}

.footer a:hover {
    color: #909090;
}

.footer {
    font-size: 1.2em;
}

.btn-primary {
    background: #14274F;
}

.btn-outline-primary {
    background: #fff;
    border: 1px solid #14274F;
    color: #14274F;
}

.btn-primary:hover {
    background: #0AC3AA;
    color: #151414;
}

.btn-outline-primary:hover {
    background: #0AC3AA;
    color: #fff;
    border: 1px solid #14274F;

}

.brand-logo {
    width: 100%;
    height: auto;
}

#content-header {
    width: 98%;
    padding: 4px 0 0 0;
}

p {
    font-size: 1.2em;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
}

input:checked+.slider {
    background-color: #2196F3;
}

input:focus+.slider {
    box-shadow: 0 0 1px #2196F3;
}

input:checked+.slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

.form-tracking {
    width: 30%;
}

.floating-height {
    height: 3.5rem;
}

/******* Modal *************/

.overlay {
    display: none;
    -webkit-transition: 2s ease-in-out;
    -moz-transition: 2s ease-in-out;
    -o-transition: 2s ease-in-out;
    -ms-transition: 2s ease-in-out;
    -webkit-appearance: none;
    transition: 2s all;
    opacity: 0;
    position: fixed;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    background: rgba(51, 51, 51, 0.7);
    z-index: 10;
}

.overlayShow {
    display: block;
    position: fixed;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    background: rgba(51, 51, 51, 0.7);
    z-index: 100001 !important;
    -webkit-transition: 2s ease-in-out;
    -moz-transition: 2s ease-in-out;
    -o-transition: 2s ease-in-out;
    -ms-transition: 2s ease-in-out;
    -webkit-appearance: none;
    transition: 2s all;
}

.td-order {
    width: 40%;
}

.modal-dialog {
    max-width: 40%;
}

.modal-size-xs {
    max-width: 40%;
}

.modal-size-md {
    max-width: 60%;
}

.modal-size-lg {
    max-width: 80%;
}

.modal-size-xl {
    max-width: 100%;
}

.machine-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    object-position: center;
    border-radius: 6px 0 0 6px;
    cursor: pointer;
}

.machine-image-wrapper {
    position: relative;
    width: 100%;
}

.zoom-icon {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 6px 8px;
    border-radius: 4px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 4px;
    pointer-events: none; /* Para que el clic pase a la imagen */
}

#modalImage {
    max-height: 90vh; /* Nunca más alto que la pantalla */
    width: auto;
    margin: 0 auto;
    display: block;
    object-fit: contain;
}

@media (max-width: 1368px) {

    html,
    body {
        font-size: 80%;
    }

    p {
        font-size: 1.4em;
    }

    h1 {
        font-size: 2.4em;
    }

    .top-bnn {
        font-size: 0.8em;
        text-align: center !important;
    }

    .brand-logo {
        max-width: 70%;
    }

    .nav-link {
        font-size: 1.4em;
    }

    .about-box-header {
        height: 65px;
    }

    .services {
        min-height: 120px;
    }

}

@media (max-width: 991px) {

    html,
    body {
        font-size: 100%;
    }

    .d-none-sm {
        display: none !important;
    }

    .btn {
        width: 100%;
    }

    .top-bnn {
        font-size: 0.8em;
    }

    .navbar-brand span {
        font-size: 1.2em;
    }

    .nav-link {
        font-size: 1em;
    }

    .brand-logo {
        width: 290px;
    }

    .about-box-header {
        display: none;
    }

    #content_1 {
        padding-top: 0.2em !important;
    }

    .section-title-light {
        font-size: 1.5em;
    }

    .how-border-r {
        border-right: none;
    }

    .modal-dialog {
        max-width: 100%;
    }

    h1 {
        font-size: 1.5em;
    }

    h3 {
        font-size: 1em;
    }

    .modal-size-lg,
    .modal-size-md,
    .modal-size-xl,
    .modal-size-xs {
        max-width: 100%;
    }
}

@media (max-width: 421px) {
    p {
        text-align: left;
        font-size: 0.9em;
    }

    #content_2 p {
        text-align: center;
    }
}