/********** Template CSS **********/
:root {
    --primary: #D81324;
    --secondary: #0B2154;
    --light: #F2F2F2;
    --dark: #111111;
    --verde: #268F52;
    --rojo: #FF1430;
}

.navbar-light .navbar-toggler-icon {
    background-image: url(../img/hamburger.png);
}

.fw-medium {
    font-weight: 600 !important;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 100px;
    bottom: 45px;
    z-index: 99;
}

.whatsapp-float {
    position: fixed;
    display: flex !important;
    right: 45px;
    bottom: 45px;
    z-index: 99;
    background-color: #25D366 !important;
    border-color: #25D366 !important;
    color: #fff !important;
}

.whatsapp-float i {
    font-size: 1.6rem;
}

.whatsapp-float:hover {
    background-color: #1a9e52 !important;
    border-color: #1a9e52 !important;
    color: #fff !important;
}

.back-to-top {
    display: none;
}


/*** Spinner ***/
#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;
}


/*** Button ***/
.btn {
    font-weight: 500;
    text-transform: uppercase;
    transition: .5s;
}

.btn.btn-primary,
.btn.btn-secondary {
    color: #FFFFFF;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
    border-radius: 2px;
}


/*** Navbar ***/
.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

.navbar-light .navbar-nav .nav-link {
    margin-right: 50px;
    padding: 25px 0;
    color: #FFFFFF;
    font-size: 15px;
    text-transform: uppercase;
    outline: none;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active,
.navbar-light .navbar-nav .nav-link:focus,
.navbar-light .navbar-nav .show>.nav-link {
    color: var(--primary);
    font-weight: 800;
}

@media (max-width: 991.98px) {
    .navbar-light .navbar-nav .nav-link  {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar-light .navbar-nav {
        border-top: 1px solid #EEEEEE;
    }
}

.navbar-light .navbar-brand,
.navbar-light a.btn {
    height: 75px;
}

.navbar-light .navbar-nav .nav-link {
    color: #fff;
    font-weight: 800;
}

.navbar-light.sticky-top {
    top: -100px;
    transition: .5s;
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}

/* =========================
   DROPDOWN MEJORADO
========================= */

@media (min-width: 992px) {
    .navbar .dropdown-menu {
        min-width: 240px;
        padding: 12px 0;
        border-radius: 0;
        box-shadow: 0 15px 35px rgba(0,0,0,.12);
        transform: translateY(15px);
        pointer-events: none;
    }

    div.navega{
        position: relative !important;
    }
    .navbar .nav-div{
        box-sizing: border-box;
    }
    .navbar .nav-div:after {
        content: "";
        width: calc(100% - 50px);
        height: 2px;
        background-color: var(--verde);
        position: absolute;
        bottom: 0px;
        transform-origin: left center;
        transform: scaleX(0);
        transition: transform .3s ease;
        left: 0;
    }
    .navbar .nav-div:hover:after {
        transform: scaleX(1);
    }

    .navbar .nav-item:hover .dropdown-menu {
        transform: translateY(0);
        pointer-events: auto;
    }

    .navbar .dropdown-item {
        padding: 12px 24px;
        font-size: 14px;
        font-weight: 500;
        transition: .3s;
        text-transform: uppercase;
    }
    .navbar .dropdown-item:hover {
        padding-left: 32px;
        background: var(--primary);
        color: #fff;
    }
    /* ROTACIÓN FLECHA */
    .navbar .dropdown-toggle::after {
        transition: .3s;
    }
    .navbar .nav-item:hover .dropdown-toggle::after {
        transform: rotate(180deg);
    }
}

/*** Header ***/
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, .7);
    z-index: 1;
}

.carousel-control-prev,
.carousel-control-next {
    width: 10%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
}

@media (max-width: 768px) {
    #header-carousel .carousel-item {
        position: relative;
        min-height: 450px;
    }
    
    #header-carousel .carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

.page-header {
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.page-header-inner {
    background: rgba(0, 0, 0, .7);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--light);
}


/*** Service ***/
.service .nav .nav-link {
    background: var(--light);
    transition: .5s;
}

.service .nav .nav-link.active {
    background: var(--primary);
}

.service .nav .nav-link.active h4 {
    color: #FFFFFF !important;
}


/*** Team ***/
.team-item img {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent !important;
    transform: scale(0.7);
    transition: .5s;
}

.team-item:hover img {
    transform: scale(0.77);
}

.team-item .team-text{
    position: relative;
    top: -40px;
    transition: all ease .5s;
}
.team-item:hover .team-text{
    position: relative;
    top: -60px;
    transition: all ease .5s;
}
/*
.team-item h4, .team-item h6{
    position: relative;
    top: -60px;
    transition: all ease .5s;
}
*/
.team-item:hover h4, .team-item:hover h6{
    color: var(--rojo);
    transition: all ease .5s;
}

.team-item h6{
    font-size: 20pt !important;
}

.team-item h4{
    font-size: 30pt !important;
}

/*** Footer ***/
.footer {
    background: linear-gradient(rgba(0, 0, 0, .9), rgba(0, 0, 0, .9)), url(../img/carousel-bg-1.jpg) center center no-repeat;
    background-size: cover;
}

.footer .btn.btn-social {
    margin-right: 5px;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    border: 1px solid #FFFFFF;
    border-radius: 35px;
    transition: .3s;
}

.footer .btn.btn-social:hover {
    color: var(--primary);
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: #FFFFFF;
    font-size: 15px;
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .copyright {
    padding: 25px 0;
    font-size: 15px;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

.footer .copyright a {
    color: var(--light);
}

.footer .footer-menu a {
    margin-right: 15px;
    padding-right: 15px;
    border-right: 1px solid rgba(255, 255, 255, .3);
}

.footer .footer-menu a:last-child {
    margin-right: 0;
    padding-right: 0;
    border-right: none;
}



/* === CSS RICAMBI === */

.spinner-border {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    vertical-align: -.125em;
    border: .25em solid var(--rojo);
    border-right-color: var(--verde);
    border-bottom-color: var(--light);
    border-radius: 50%;
    animation: .75s linear infinite spinner-border;
}

.verde{
    color: var(--verde) !important;
}

/* ─── Form Alert (toast de notificación) ─────────────────────── */
.form-alert {
    position: fixed; top: 24px; right: 24px; z-index: 99999;
    max-width: 420px; width: calc(100% - 48px);
    padding: 18px 18px 18px 22px;
    border-radius: 10px;
    display: flex; align-items: flex-start; gap: 14px;
    box-shadow: 0 12px 40px rgba(0,0,0,.25);
    opacity: 0; transform: translateY(-16px);
    transition: opacity .4s ease, transform .4s cubic-bezier(.34,1.56,.64,1);
    pointer-events: none;
}
.form-alert.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.form-alert--success { background: #d1e7dd; border: 1px solid #a3cfbb; color: #0a3622; }
.form-alert--success .form-alert-icon { color: #0f5132; }
.form-alert--error   { background: #f8d7da; border: 1px solid #f1aeb5; color: #58151c; }
.form-alert--error   .form-alert-icon { color: #842029; }
.form-alert-icon { font-size: 1.1rem; margin-top: 2px; flex-shrink: 0; }
.form-alert #formAlertMsg { font-size: 14px; line-height: 1.5; flex: 1; }
.form-alert-close { background: none; border: none; font-size: 16px; cursor: pointer; padding: 2px 4px; flex-shrink: 0; line-height: 1; margin-top: 1px; opacity: .6; }
.form-alert-close:hover { opacity: 1; }
@media (max-width: 575px) {
    .form-alert { top: 16px; right: 16px; width: calc(100% - 32px); }
}

.rojo{
    color: var(--rojo) !important;
}

.gris{
    color: #E2E2E2 !important;    
}


.bg-light{
    background-color: #F2F2F2 !important;
}

.bg-dark{
    background-color: #272727 !important;
}

.bg-white{
    background-color: #fff !important;
}

.bg-black{
    background-color: #000 !important;
}

body{
    color: #333 !important;
    font-family: "DM Sans", sans-serif;
}

body small{
    color: #f2f2f2 !important;
}

img.logo{
    width: 160px !important;
}

h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5, h6, .h6{
    margin-top: 0;
    margin-bottom: .5rem;
    font-family: "DM Sans", sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark);
}
.wg-200{
    font-weight: 200 !important;
}
.wg-300{
    font-weight: 300 !important;
}
.wg-400{
    font-weight: 400 !important;
}
.wg-500{
    font-weight: 500 !important;
}
.wg-600{
    font-weight: 600 !important;
}
.wg-700{
    font-weight: 700 !important;
}
.wg-800{
    font-weight: 800 !important;
}

.iconos i{
    color: var(--rojo) !important;
    transition: all ease .5s;
    transform: scale(1);
}

.iconos:hover i{
    color: var(--verde) !important;
    transition: all ease .5s;
    transform: scale(1.1);
}