/* Lateral Menu */
:root {
    --sidebar-width: 280px;
    --primary-color: #FF5733;
    --secondary-color: #8B008B;
    --color-black: #000;
    --text-light: #ffffff;
    --spacing-xl: 6rem;
}

.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: linear-gradient(to bottom, #000000, #1a0a1a);
    backdrop-filter: blur(10px);
    padding: 2rem;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-right: 2px solid rgba(255, 87, 51, 0.2);
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.3);
}

.sidebar .logo {
    width: 17.5em;
    margin: 1.3rem auto;
}

.sidebar .navbar-brand {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    display: block;
    text-align: center;
}

/* Sidebar Navigation */
.sidebar-nav {
    width: 100%;
    margin-top: .3rem;
}

.sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    color: rgb(255, 255, 255);
    font-weight: 700;
    text-decoration: none;
    padding: 0.8rem 1rem;
    margin: 0.3rem 0;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.sidebar-nav a:hover {
    transform: translateX(10px);
    color: white;
}

.sidebar .nav-link {
    padding: 0.8rem 1rem;
    margin: 0.5rem 0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.sidebar .nav-link:hover {
    background: var(--primary-color);
    color: white;
}

/* Arrow Styles */
.nav-arrow {
    display: inline-block;
    width: 20px;
    margin-right: 10px;
    color: rgb(255, 0, 0);
    transition: transform 0.3s ease;
    font-size: 1.5rem;
}

.sidebar-nav a:hover .nav-arrow {
    transform: translateX(8px);
}

/* Submenu Styles */

.submenu {
    margin-left: 35px !important;
    padding-left: 5px !important;
    margin-top: 5px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.5s ease;
    opacity: 0;
}

.has-submenu.active .submenu {
    max-height: 200px; /* Altura máxima suficiente para o contenido */
    opacity: 1;
}

.submenu a {
    color: rgb(255, 220, 220);
    font-size: 0.85rem;
    padding: 0.6rem 1rem;
}

.submenu-line {
    width: 15px;
    margin-right: 10px;
    opacity: 0.7;
    display: inline-block;
    height: 2px;
    background-color: currentColor;
    vertical-align: middle;
    position: relative;
}

.submenu-line::before {
    content: '';
    position: absolute;
    left: 0;
    top: -4px;
    width: 2px;
    height: 10px;
    background-color: currentColor;
}

/* Language Selector - Arreglado */

.language-selector {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    gap: 5px;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 8px 12px;
    border-radius: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.language-btn {
    padding: 5px 10px;
    border-radius: 20px;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.85rem;
    background-color: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
}

.language-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.language-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    background-color: rgba(255, 255, 255, 0.1);
}


/* Main Content - Eliminando todo espacio en blanco */
.main-content {
    margin-left: var(--sidebar-width);
    padding: 0;
    overflow-x: hidden;
    width: calc(100% - var(--sidebar-width));
    display: flex;
    flex-direction: column;
}

/* Hero Section - Eliminando todo espacio en blanco */
.hero-section {
    min-height: 100vh;
    width: 100%;
    margin: 0;
    padding: 0;
    position: relative;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Eliminar espacios en blanco en todas las secciones */
section {
    padding: 0;
    margin: 0;
}

/* Ajuste para el video de fondo */
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
                rgba(139, 0, 139, 0.7), 
                rgba(0, 0, 0, 0.6), 
                rgba(255, 87, 51, 0.7));
    z-index: -1;
}

.hero-section .container {
    padding: 0 2rem;
    max-width: 1200px;
    z-index: 2;
    text-align: center;
}

/* Eliminar espacios en blanco en secciones */
section {
    padding: var(--spacing-xl) 0;
    margin: 0;
}

/* Ajuste específico para la primera sección */
section:first-of-type {
    margin-top: 0;
    padding-top: 0;
}

/* Values Section - Mejorado */
#values {
    background: linear-gradient(135deg, 
                rgba(139, 0, 139, 0.85), 
                rgba(0, 0, 0, 0.75), 
                rgba(255, 87, 51, 0.85));
    color: white;
    position: relative;
    overflow: hidden;
    padding: 5rem 0;
}

#values::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23FFFFFF' fill-opacity='0.08'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.15;
    z-index: 0;
}

.values-header h2 {
    color: white;
    margin-bottom: 2rem;
    font-size: 2.8rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: relative;
    display: inline-block;
}

.values-header h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.values-intro {
    position: relative;
    z-index: 1;
    height: 50%;
}

.values-image {
    position: relative;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    width: 250px;
    height: 250px;
    margin: 0 auto 30px;
}

.values-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.values-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 87, 51, 0.5), rgba(139, 0, 139, 0.5));
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(255, 87, 51, 0.3);
}

.values-image:hover img {
    transform: scale(1.1);
}

.values-list {
    list-style: none;
    padding: 0;
    margin: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border-radius: 15px;
    padding: 25px;
    height: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.values-list li {
    margin-bottom: 15px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.value-bullet {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
    margin-right: 15px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.value-card {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    z-index: -1;
    border-radius: 15px;
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.value-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border: 3px solid rgba(255, 255, 255, 0.15);
}

.value-icon i {
    font-size: 30px;
    color: white;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.value-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    color: white;
    font-weight: 600;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.value-card h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.value-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Make the fifth card span the full width */
.value-card:nth-child(5) {
    grid-column: span 2;
}

/* Responsive adjustments */
/* Estilos para dispositivos móviles y responsividad */
@media (max-width: 992px) {
    :root {
        --sidebar-width: 0px; /* Cambia el ancho de la barra lateral a 0 en móviles */
    }
    
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        width: 280px;
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-content {
        width: 100%;
        margin-left: 0;
    }
    
    /* Botón de menú móvil */
    .mobile-menu-btn {
        display: block;
        position: fixed;
        top: 20px;
        left: 20px;
        z-index: 1002;
        background: rgba(0, 0, 0, 0.8);
        border: none;
        width: 45px;
        height: 45px;
        border-radius: 50%;
        cursor: pointer;
        padding: 5px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    }
    
    .mobile-menu-btn span {
        display: block;
        width: 25px;
        height: 3px;
        background-color: white;
        margin: 5px auto;
        transition: all 0.3s ease;
    }
    
    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    /* Ajustes para la sección hero en móviles */
    .hero-section {
        padding-top: 60px; /* Espacio para el botón de menú */
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    /* Ajustes para el selector de idiomas en móviles */
    .language-selector {
        top: 20px;
        right: 20px;
        padding: 5px 10px;
    }
    
    .language-selector button {
        font-size: 0.8rem;
        padding: 3px 8px;
    }
}

@media (min-width: 993px) {
    .mobile-menu-btn {
        display: none; /* Oculta el botón de menú en pantallas grandes */
    }
}

/* Ajustes adicionales para pantallas muy pequeñas */
@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    .value-card {
        padding: 15px;
    }
    
    .value-icon {
        width: 50px;
        height: 50px;
    }
    
    .value-icon i {
        font-size: 20px;
    }
    
    .values-image {
        width: 180px;
        height: 180px;
    }
}



/* Home Icon */
.home-icon {
    position: relative;
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: 10px;
    border: 2px solid currentColor;
    border-radius: 1px;
}

.home-icon::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 2px;
    width: 8px;
    height: 8px;
    border-left: 2px solid currentColor;
    border-right: 2px solid currentColor;
    border-top: 2px solid currentColor;
    transform: rotate(45deg);
}

/* About Icon */
.about-icon {
    position: relative;
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: 10px;
    border-radius: 50%;
    border: 2px solid currentColor;
}

.about-icon::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: currentColor;
}

/* Contact Icon */
.contact-icon {
    position: relative;
    display: inline-block;
    width: 16px;
    height: 12px;
    margin-left: 10px;
    border: 2px solid currentColor;
    border-radius: 2px;
}

.contact-icon::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 4px;
    width: 4px;
    height: 4px;
    border-left: 2px solid currentColor;
    border-top: 2px solid currentColor;
    transform: rotate(45deg);
}

/* Hover effects for all icons */
.sidebar-nav a:hover .home-icon,
.sidebar-nav a:hover .about-icon,
.sidebar-nav a:hover .contact-icon,
.sidebar-nav a:hover .folder-icon {
    border-color: white;
}

.sidebar-nav a:hover .home-icon::before,
.sidebar-nav a:hover .about-icon::before,
.sidebar-nav a:hover .contact-icon::before,
.sidebar-nav a:hover .folder-icon::before {
    border-color: white;
}

.sidebar-nav a:hover .about-icon::before {
    background-color: white;
}

/* About Us Section Styles */
#about-us {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(240, 240, 245, 0.9) 100%);
    position: relative;
    overflow: hidden;
}

/* About Us centered title styling */
#about-us h2.display-4 {
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
}

#about-us h2.display-4::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.about-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.subtitles {
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.subtitles::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.about-text p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: #333;
    text-align: justify;
}

/* Mission & Vision Cards */
.mission-vision-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    position: relative;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mission-vision-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.mv-icon-container {
    display: flex;
    justify-content: center;
}

.mv-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.vision-icon {
    background: linear-gradient(135deg, var(--primary-color), #ff6b6b);
}

.mission-icon {
    background: linear-gradient(135deg, var(--secondary-color), #4158d0);
}

.mv-icon i {
    font-size: 24px;
    color: white;
}

.mission-vision-card h2 {
    color: var(--primary-color);
    text-align: center;
    font-weight: bold;
    margin-bottom: 15px;
    padding-bottom: 15px;
    position: relative;
}

.mission-vision-card h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.mv-content {
    padding: 0 20px 30px;
}

.mv-content p {
    text-align: center;
    color: #555;
    line-height: 1.8;
}

#about {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(240, 240, 245, 0.9) 100%);
    position: relative;
    overflow: hidden;
}

#about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%239C92AC' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
    z-index: 0;
}

/* Service Cards - Mejorado para combinar con el fondo */
#services {
   
    position: relative;
    overflow: hidden;
    padding: 5rem 0;
}

#services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23FFFFFF' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.1;
    z-index: 0;
}

#services h2 {
    margin-bottom: 2rem;
    font-size: 2.8rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    position: relative;
    display: inline-block;
}

#services h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.service-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    margin: 1rem 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    z-index: -1;
    border-radius: 15px;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.service-card img {
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.service-card .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 25px;
}

.service-card .card-title {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    font-weight: 600;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.service-card .card-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.service-card .card-text {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    flex-grow: 1;
    font-size: 1rem;
}

.service-card .btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    margin-top: 20px;
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.service-card .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Responsive adjustments for service cards */
@media (max-width: 992px) {
    .service-card {
        margin-bottom: 30px;
    }
    
    #services h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 576px) {
    .service-card .card-body {
        padding: 15px;
    }
    
    .service-card .card-title {
        font-size: 1.3rem;
    }
    
    .service-card img {
        height: 160px;
    }
}

/* Sección de Personal/Equipo */
#team {
    background: linear-gradient(135deg, #f5f7fa, #e4e8f0);
    color: #333;
    position: relative;
    overflow: hidden;
    padding: 5rem 0;
}

#team::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%239C92AC' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
    z-index: 0;
}

#team .section-title {
    color: var(--primary-color);
    margin-bottom: 3rem;
    font-size: 2.5rem;
    text-align: center;
    position: relative;
    display: inline-block;
}

#team .section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.team-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    position: relative;
    z-index: 1;
}

.team-intro p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.8;
}

.team-highlight {
    color: var(--primary-color);
    font-weight: 600;
}

/* Tarjetas de miembros del equipo */
.team-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.team-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    width: 100%;
    max-width: 350px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    z-index: 1;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.team-member-photo {
    position: relative;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: -75px auto 20px;
    overflow: hidden;
    border: 5px solid white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.team-member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.team-card:hover .team-member-photo img {
    transform: scale(1.1);
}

.team-card-top {
    height: 120px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 15px 15px 0 0;
}

.team-card-body {
    padding: 20px 25px 30px;
    text-align: center;
}

.team-member-name {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.team-member-position {
    color: #777;
    font-size: 1rem;
    margin-bottom: 20px;
    display: block;
}

.team-member-description {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
    text-align: center;
}

.team-social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.team-social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    transition: all 0.3s ease;
    text-decoration: none;
}

.team-social-link:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    transform: translateY(-3px);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .team-card {
        max-width: 320px;
    }
}

@media (max-width: 768px) {
    #team .section-title {
        font-size: 2.2rem;
    }
    
    .team-container {
        gap: 50px;
    }
}

@media (max-width: 576px) {
    .team-member-photo {
        width: 120px;
        height: 120px;
        margin: -60px auto 15px;
    }
    
    .team-card-top {
        height: 100px;
    }
    
    .team-card-body {
        padding: 15px 20px 25px;
    }
}




/* Footer Styles */
.footer {
    background: linear-gradient(135deg, 
                rgba(139, 0, 139, 0.85), 
                rgba(0, 0, 0, 0.75), 
                rgba(255, 87, 51, 0.85));
    color: white;
    position: relative;
    overflow: hidden;
    font-size: 0.95rem;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23FFFFFF' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.1;
    z-index: 0;
}

.footer-top {
    padding: 5rem 0 3rem;
    position: relative;
    z-index: 1;
}

.footer-logo {
    width: 150px;
    height: auto;
}

.footer-info p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    transform: translateY(-5px);
}

.social-icon.facebook:hover {
    background: #3b5998;
    box-shadow: 0 5px 15px rgba(59, 89, 152, 0.4);
}

.social-icon.instagram:hover {
    background: linear-gradient(45deg, #405de6, #5851db, #833ab4, #c13584, #e1306c, #fd1d1d);
    box-shadow: 0 5px 15px rgba(225, 48, 108, 0.4);
}

.social-icon.twitter:hover {
    background: #1da1f2;
    box-shadow: 0 5px 15px rgba(29, 161, 242, 0.4);
}

.social-icon.linkedin:hover {
    background: #0077b5;
    box-shadow: 0 5px 15px rgba(0, 119, 181, 0.4);
}

.social-icon.tiktok:hover {
    background: linear-gradient(45deg, #000000, #EE1D52, #69C9D0);
    box-shadow: 0 5px 15px rgba(238, 29, 82, 0.4);
}

.social-icon.youtube:hover {
    background: #ff0000;
    box-shadow: 0 5px 15px rgba(255, 0, 0, 0.4);
}

.social-icon i {
    font-size: 1.2rem;
}

.footer-heading {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: white;
    transform: translateX(5px);
}

.contact-info {
    margin-top: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.contact-item i {
    margin-right: 15px;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.contact-item p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem 0;
    position: relative;
    z-index: 1;
}

.copyright {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: flex-end;
    gap: 20px;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.footer-bottom-links a:hover {
    color: white;
}

/* Responsive adjustments for footer */
@media (max-width: 992px) {
    .footer-top {
        padding: 4rem 0 2rem;
    }
}

@media (max-width: 768px) {
    .footer-bottom-links {
        justify-content: center;
        margin-top: 15px;
    }
    
    .copyright {
        text-align: center;
    }
    
    .footer-heading {
        margin-top: 2rem;
    }
}

@media (max-width: 576px) {
    .footer-bottom-links {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .social-links {
        justify-content: center;
    }
}


/* WhatsApp Floating Button */
.whatsapp-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-btn i {
    margin-top: 2px;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    color: white;
}

.whatsapp-btn:active {
    transform: scale(0.95);
}

.whatsapp-tooltip {
    position: absolute;
    right: 75px;
    background-color: #333;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -8px;
    transform: translateY(-50%);
    border-width: 8px 0 8px 8px;
    border-style: solid;
    border-color: transparent transparent transparent #333;
}

.whatsapp-btn:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    right: 70px;
}

/* Responsive adjustments for WhatsApp button */
@media (max-width: 576px) {
    .whatsapp-btn {
        width: 50px;
        height: 50px;
        font-size: 25px;
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-tooltip {
        display: none;
    }
}





/* Chat Asistente Styles */
/* Chat Asistente Styles */
.chat-launcher {
    position: fixed;
    bottom: 95px; /* Positioned above the WhatsApp button */
    right: 25px; /* Same right alignment as WhatsApp button */
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 999;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

/* Update the tooltip position for the chat launcher */
.chat-launcher-tooltip {
    position: absolute;
    top: 50%;
    right: 75px;
    transform: translateY(-50%);
    background-color: #333;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Rest of the chat styles remain the same */

.chat-launcher:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.chat-launcher-tooltip {
    position: absolute;
    right: 75px;
    background-color: #333;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.chat-launcher-tooltip::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -8px;
    transform: translateY(-50%);
    border-width: 8px 0 8px 8px;
    border-style: solid;
    border-color: transparent transparent transparent #333;
}

.chat-launcher:hover .chat-launcher-tooltip {
    opacity: 1;
    visibility: visible;
    right: 70px;
}

.chat-container {
    position: fixed;
    bottom: 100px;
    right: 25px;
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    z-index: 998;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.chat-container.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.chat-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 15px;
    display: flex;
    align-items: center;
    border-radius: 15px 15px 0 0;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.chat-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chat-title {
    flex: 1;
}

.chat-title h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.chat-status {
    font-size: 12px;
    opacity: 0.8;
}

.chat-close-btn {
    background: transparent;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.chat-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.chat-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 15px;
    background: #f5f7fa;
    overflow: hidden;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding-right: 5px;
    margin-bottom: 15px;
}

.message {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    max-width: 80%;
}

.bot-message {
    align-items: flex-start;
}

.user-message {
    align-items: flex-end;
    align-self: flex-end;
}

.message-content {
    padding: 12px 15px;
    border-radius: 15px;
    font-size: 14px;
    line-height: 1.4;
    position: relative;
}

.bot-message .message-content {
    background: white;
    color: #333;
    border-bottom-left-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.user-message .message-content {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-bottom-right-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.message-time {
    font-size: 11px;
    color: #999;
    margin-top: 5px;
}

.chat-quick-questions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.quick-question-btn {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    padding: 8px 15px;
    font-size: 13px;
    color: #555;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quick-question-btn:hover {
    background: #f0f0f0;
    border-color: #ccc;
}

.chat-input-container {
    display: flex;
    background: white;
    border-radius: 25px;
    padding: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.chat-input {
    flex: 1;
    border: none;
    padding: 10px 15px;
    border-radius: 25px;
    font-size: 14px;
    outline: none;
}

.chat-send-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chat-send-btn:hover {
    transform: scale(1.05);
}

/* Responsive adjustments for chat */
@media (max-width: 576px) {
    .chat-container {
        width: 300px;
        height: 450px;
        bottom: 80px;
    }
    
    .chat-launcher {
        width: 50px;
        height: 50px;
        font-size: 20px;
        bottom: 20px;
        right: 85px;
    }
    
    .chat-launcher-tooltip {
        display: none;
    }
    
    .quick-question-btn {
        font-size: 12px;
        padding: 6px 12px;
    }
}

/* Philosophy Section Styles (Mission, Vision & Values Combined) */
.philosophy-card {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 35px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.philosophy-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    z-index: -1;
    border-radius: 15px;
}

.philosophy-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.philosophy-icon {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border: 3px solid rgba(255, 255, 255, 0.15);
}

.philosophy-icon i {
    font-size: 40px;
    color: white;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.philosophy-card h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    color: white;
    font-weight: 600;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.philosophy-card h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.philosophy-card p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.mission-card {
    background: linear-gradient(135deg, rgba(255, 87, 51, 0.15), rgba(0, 0, 0, 0.2));
}

.vision-card {
    background: linear-gradient(135deg, rgba(139, 0, 139, 0.15), rgba(0, 0, 0, 0.2));
}

.values-divider {
    text-align: center;
    position: relative;
    margin: 30px 0 50px;
}

.values-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, 
                rgba(255, 255, 255, 0.05), 
                rgba(255, 255, 255, 0.3), 
                rgba(255, 255, 255, 0.05));
}

.values-divider-text {
    position: relative;
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 10px 25px;
    border-radius: 30px;
    font-size: 1.3rem;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}


.services-icon {
    margin-left: 10px;
    font-size: 1.2rem;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.sidebar-nav a:hover .services-icon {
    opacity: 1;
    transform: rotate(20deg);
}


/* Hero Slider Styles */
.hero-slider {
    position: relative;
    z-index: 2;
    margin-bottom: 2rem;
}

.hero-slide-content {
    padding: 2rem 0;
    color: white;
}

.splide__pagination.hero-pagination {
    bottom: -2rem;
}

.splide__pagination.hero-pagination .splide__pagination__page {
    background: rgba(255, 255, 255, 0.5);
    width: 12px;
    height: 12px;
    margin: 0 8px;
    transition: all 0.3s ease;
}

.splide__pagination.hero-pagination .splide__pagination__page.is-active {
    background: white;
    transform: scale(1.3);
}

.hero-slider .splide__slide {
    opacity: 0;
    transition: opacity 0.8s;
}

.hero-slider .splide__slide.is-active {
    opacity: 1;
}

/* Animation for text elements */
.hero-slider .splide__slide.is-active .animate-fade-up {
    animation: fadeInUp 1s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}