/********** Template CSS **********/
:root {
    --primary: #009CFF;
    --secondary: #777777;
    --light: #F8F8F8;
    --dark: #252525;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
}

/*** Section Title ***/
.section-title {
    position: relative;
    display: inline-block;
    text-transform: uppercase;
}

.section-title::before,
.section-title::after {
    position: absolute;
    content: "";
    height: 2px;
    background: var(--primary);
    z-index: -1;
}

.section-title::before {
    width: calc(100% + 80px);
    top: 4px;
    left: -40px;
}

.section-title::after {
    width: calc(100% + 120px);
    bottom: 4px;
    left: -60px;
}

.section-title.text-start::before {
    width: calc(100% + 40px);
    left: 0;
}

.section-title.text-start::after {
    width: calc(100% + 60px);
    left: 0;
}

/*** Team ***/
.team-item {
    box-shadow: 0 0 45px rgba(0, 0, 0, .07);
    transition: box-shadow 0.3s ease;
}

.team-item:hover {
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.team-item .team-text {
    position: relative;
    height: 65px;
    overflow: hidden;
}

.team-item .team-title {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: .5s;
}

.team-item:hover .team-title {
    top: -65px;
}

.team-item .team-social {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 65px;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
    transition: .5s;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.team-item:hover .team-social {
    top: 0;
    opacity: 1;
    transform: translateY(0);
}

.team-item .team-social .btn {
    margin: 0 3px;
}

.team-item img {
    transition: transform 0.4s ease;
}

.team-item:hover img {
    transform: scale(1.1) translateY(-5px);
}

/*** Footer ***/
.footer .btn.btn-link {
    display: block;
    margin-bottom: 4px;
    padding: 0;
    text-align: left;
    color: var(--secondary);
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: var(--secondary);
    margin-right: 8px;
}

.footer .btn.btn-link:hover {
    color: var(--primary);
    letter-spacing: 2px;
    box-shadow: none;
}

.footer .copyright {
    padding: 30px 0;
    font-size: 14px;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

.footer .copyright a {
    color: var(--light);
}

.footer .copyright a:hover {
    color: var(--primary);
}

/*** Hero Video ***/
.modern-hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.modern-videoWrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.modern-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.modern-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0,0,0,0.7), rgba(0,0,0,0.3));
    z-index: 2;
}

.modern-heroText {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 800px;
    padding: 20px;
}

.modern-hero-title {
    font-size: 6rem;
    font-weight: 900;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: -2px;
    background: linear-gradient(45deg, var(--primary), var(--light));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradient-animation 5s ease infinite;
    text-shadow: 2px 2px 10px rgba(71, 71, 71, 0.5);
    font-family: 'Poppins', sans-serif;
}

.modern-hero-logo {
    max-width: 100%;
    height: auto;
}

.modern-hero-subtitle {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
    font-family: 'Inter', sans-serif;
    animation: fade-in 2s ease-in-out;
}

/*** About ***/
.text-section {
    padding: 50px 15px;
    background-color: #f7f7f7;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    text-align: center;
}

.text-section h3 {
    font-family: 'Poppins', sans-serif;
    color: #333;
    font-size: 2rem;
    font-weight: 700;
    text-transform: uppercase;
}

.text-section p {
    font-family: 'Inter', sans-serif;
    color: #555;
    font-size: 1.1rem;
    line-height: 1.6;
}

.about-img-wrapper {
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: contain;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

/*** Carousel ***/
.carousel-item {
    display: flex;
    align-items: center;
    justify-content: center;
    height: auto !important;
}

.carousel-img-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-height: 80vh;
    overflow: hidden;
}

.team-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    margin: 0 auto;
    transition: all 0.5s ease-in-out;
}

/*** Animations & Media Queries ***/
@keyframes gradient-animation {
    0% { background-position: 0% 50% }
    50% { background-position: 100% 50% }
    100% { background-position: 0% 50% }
}

@keyframes fade-in {
    0% { opacity: 0; transform: translateY(20px) }
    100% { opacity: 0.9; transform: translateY(0) }
}

@media (max-width: 768px) {
    .text-section {
        padding: 30px 15px;
    }
    .text-section h3 {
        font-size: 1.8rem;
    }
    .text-section p {
        font-size: 1rem;
    }
}

@media (max-width: 520px) {
    .modern-hero-title {
        font-size: 4rem;
    }
    .modern-hero-subtitle {
        font-size: 1.2rem;
    }
}

/* Efecto de zoom para botones en la sección de contacto */
.contact-btn-zoom {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.contact-btn-zoom:hover {
    transform: scale(1.05) translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* Zoom suave solo para la imagen */
.about-image-zoom {
    transition: transform 2s ease;
}
.about-image-zoom:hover {
    transform: scale(1.05);
}

/* Fondo de texto con desenfoque y color suave */
.text-section {
    position: relative;
    background-color: rgba(255, 255, 255, 0.8); /* Fondo blanco semitransparente */
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px); /* Efecto de desenfoque de fondo */
    transition: background-color 0.3s ease;
}

.text-section:hover {
    background-color: rgba(255, 255, 255, 1); /* Fondo más sólido al hacer hover */
}

/* Animación de desvanecimiento para los párrafos */
.text-section h3, .text-section p {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease, transform 1s ease;
}

/* Activación del efecto fade-in al aparecer */
.text-section .aos-animate {
    opacity: 1;
    transform: translateY(0);
}

/* Títulos en negrita con un color sutil para resaltar */
.text-section h3 {
    font-family: 'Poppins', sans-serif;
    color: #333;
    font-size: 2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Párrafos en un color más suave */
.text-section p {
    font-family: 'Inter', sans-serif;
    color: #555;
    font-size: 1.1rem;
    line-height: 1.6;
    letter-spacing: 0.5px;
}