/********** Template CSS Mejorado **********/

body {
    background-color: #f4f4f4;
    font-family: "Poppins", sans-serif;
    color: #333;
}

h1, h2, h3, .font-heading {
    font-family: "Emblema One", system-ui;
    font-weight: 400;
}

h4, h5, h6, .font-body {
    font-family: "Poppins", sans-serif;
    font-weight: 600;
}

.feature {
    margin-bottom: 100px;
    background-color: #f8f9fa;
    padding-top: 60px;
    padding-bottom: 60px;
    border-top: 5px solid #9d2148;
    position: relative;
    z-index: 1;
}

.feature-item {
    background: #ffffff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    border-radius: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.feature-item h3 {
    font-size: 1.75rem;
    color: #9d2148;
}

.feature-item p {
    color: #6c757d;
}

.feature-item a {
    color: #9d2148;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}



.back-to-top {
    background-color: #9d2148;
    border-radius: 50%;
    transition: background-color 0.3s ease;
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    z-index: 99;
}

.back-to-top:hover {
    background-color: #B28E5C;
}

#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;
}

@media (min-width: 992px) {
    .display-1 {
        font-size: 7rem;
    }
    .navbar .nav-item .dropdown-menu {
        display: block;
        visibility: hidden;
        top: 100%;
        transform: rotateX(-75deg);
        transform-origin: 0% 0%;
        transition: .5s;
        opacity: 0;
    }
    .navbar .nav-item:hover .dropdown-menu {
        transform: rotateX(0deg);
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}

@media (max-width: 991.98px) {
    .navbar-dark .navbar-nav .nav-link {
        margin-right: 0;
        padding: 10px 0;
    }
}

.navbar-dark .navbar-nav .nav-link {
    margin-right: 30px;
    padding: 40px 0;
    color: var(--bs-secondary);
    font-size: 17px;
    outline: none;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: var(--bs-primary);
}

.section-title {
    color: var(--bs-primary);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: .5rem;
}

.animate-up-down {
    position: relative;
    animation: animateUpDown 1s ease infinite;
}

@keyframes animateUpDown {
    0% { top: 0px; }
    50% { top: 10px; }
    100% { top: 0px; }
}

.animate-rotate {
    position: absolute;
    animation: animateRotate 8s linear infinite;
}

@keyframes animateRotate {
    100% { transform: rotate(360deg); }
}

.bg-hero {
    background: linear-gradient(rgba(157, 33, 72, .8), rgba(157, 33, 72, .8)), url(../img/carousel-1.jpg) top center no-repeat;
    background-size: cover;
}

.menu .tab-content img,
.team-item img,
.blog-item img,
.instagram img {
    transition: .5s;
}

.menu .tab-content img:hover,
.instagram img:hover {
    opacity: .9;
}

.team-item img {
    transform: scale(1.2);
}

.team-item:hover img {
    margin-top: -50px;
    margin-bottom: 50px;
}

.team-item .team-overlay {
    position: absolute;
    top: calc(100% - 100px);
    bottom: 100px;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(34, 36, 41, .9);
    transition: .5s;
    opacity: 0;
}

.team-item:hover .team-overlay {
    top: 0;
    opacity: 1;
}

.testimonial-carousel .owl-nav {
    margin-top: 30px;
    display: flex;
    justify-content: start;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    position: relative;
    margin: 0 5px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: var(--bs-primary);
    font-size: 22px;
    border-radius: 45px;
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    color: var(--bs-dark);
}

.testimonial-carousel .owl-item img {
    width: 90px;
    height: 90px;
}

@media (min-width: 991.98px) {
    .credit {
        background: #9d2148;
    }

        main {
        background-color: #f9f9f9;
        padding: 60px 20px;
    }

    h1.title {
        color: #9d2148;
        font-size: 3rem;
        font-weight: bold;
        text-align: center;
        margin-bottom: 60px;
        position: relative;
    }

    .feature-item {
        background-color: white;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
        border-radius: 20px;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .feature-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
    }

    .feature-item h3 {
        color: #343a40;
    }

    .feature-item p {
        color: #6c757d;
    }

    .feature-item a {
        color: #9d2148;
        text-decoration: none;
        font-weight: bold;
    }

    .feature-item a:hover {
        text-decoration: underline;
    }
}
