/* Estilo para la ventana principal y widgets generales */
body, html {
    background-color: #2e2e2e;
    color: #ffffff;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Tipografía */
p {
    font-family: 'Glacial Indifference', sans-serif;
    font-size: 16px;
    line-height: 1.5;
}

h1, h2, h3, .section-title {
    font-family: 'League Spartan', sans-serif;
}

/* Estilo para el encabezado y la navegación */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #3e3e3e;
    padding: 10px 20px;
    border-bottom: 2px solid #4a4a4a;
    z-index: 1;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    height: 40px;
    width: auto;
}

nav ul {
    display: flex;
    list-style-type: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background-color 0.3s, border-color 0.3s;
}

nav ul li a:hover {
    background-color: #4a4a4a;
    border-color: #5a5a5a;
}

/* Estilo para la sección de video */
.video-section {
    position: relative;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.2;
    transition: height 0.5s ease;
}

.content-overlay {
    position: relative;
    z-index: 2;
    padding: 20px;
    text-align: center;
}

.main-title {
    margin: 0;
    z-index: 3;
}

/* Escalado responsivo del logo del título */
.title-image {
    width: 50vw;
    max-width: 300px;
    min-width: 200px;
    height: auto;
    filter: drop-shadow(4px 4px 8px rgba(0, 0, 0, 0.7));
    transition: transform 0.5s ease, filter 0.5s ease;
}

.title-image:hover {
    transform: scale(1);
    filter: drop-shadow(6px 6px 12px rgba(0, 0, 0, 0.9));
}

/* Estilo para las secciones */
section {
    padding: 40px 20px;
    border-bottom: 1px solid #4a4a4a;
}

/* Estilo para títulos de sección */
.section-title {
    color: #ff6600;
    font-size: 2.5em;
    font-weight: bold;
    text-transform: uppercase;
    text-align: center;
    position: relative;
    margin-bottom: 20px;
}

.section-title:after {
    content: '';
    width: 80px;
    height: 4px;
    background-color: #ff6600;
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
    border-radius: 2px;
}

.section-subtitle {
    color: #ff6600;
    font-size: 1.5em;
    font-weight: bold;
    text-align: center;
    margin-bottom: 15px;
}

/* Estilo para el pie de página */
footer {
    background-color: #3e3e3e;
    color: #888888;
    text-align: center;
    padding: 20px;
    border-top: 2px solid #4a4a4a;
}

/* Animaciones de deslizamiento */
@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* General para las secciones con imagen y texto */
.content-container {
    display: flex;
    align-items: center;
    gap: 20px;
}

.software-image {
    width: 30vw;
    max-width: 400px;
    height: auto;
    flex-shrink: 1;
}

.text-content {
    flex: 1;
}

/* Animaciones aplicadas */
#index-info.visible .content-container {
    animation: slideInRight 1s ease-out forwards;
}

/* Animaciones aplicadas */
#index-aliado.visible .content-container {
    animation: slideInLeft 1s ease-out forwards;
}

/* Animaciones aplicadas */
#software-analysis.visible .content-container {
    animation: slideInRight 1s ease-out forwards;
}

/* Animaciones aplicadas */
#software-reports.visible .content-container {
    animation: slideInLeft 1s ease-out forwards;
}

#software-visualization.visible .content-container {
    animation: slideInRight 1s ease-out forwards;
}

/* Animaciones aplicadas */
#software-integration.visible .content-container {
    animation: slideInLeft 1s ease-out forwards;
}

/* Estilos responsivos */
@media screen and (max-width: 768px) {
    .content-container {
        flex-direction: column;
        text-align: center;
    }

    .software-image {
        max-width: 80%;
        margin: 0 auto 20px auto;
    }
}

* Animaciones de deslizamiento */
@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}


/* General para las secciones */
#index-info .content-container,
#index-aliado .content-container {
    display: flex;
    align-items: center;
    gap: 20px; /* Espacio entre imagen y texto */
}

/* Imagen pequeña */
.software-image {
    width: 30vw; /* Ajusta el porcentaje según sea necesario */
    max-width: 400px; /* Tamaño máximo de la imagen */
    height: auto;
    flex-shrink: 1; /* Evita que la imagen se reduzca */
}

/* Ajusta el texto para ocupar el espacio restante */
.text-content {
    flex: 1;
}

/* Asegúrate de que las animaciones están definidas aquí */
#index-info.visible .content-container {
    animation: slideInRight 1s ease-out forwards;
}

#index-aliado.visible .content-container {
    animation: slideInLeft 1s ease-out forwards;
}