/* Estilos del Splash Screen */
#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    /* Fondo semitransparente (azul muy oscuro con 70% de opacidad) */
    background-color: rgba(9, 0, 79, 0.5);
    /* EL TRUCO: Aplica el desenfoque a lo que est� DETR�S del div */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px); /* Soporte para Safari */
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* Por encima de todo, incluso del navbar */
    transition: opacity 0.8s ease, visibility 0.8s;
}

#splash-screen.active{
    display: flex;
}

.splash-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.splash-logo {
    width: 2050px; /* Tama�o grande inicial */
    height: auto;
    max-width: 70%;
    filter: drop-shadow(0 0 15px rgba(0, 0, 0, 0.2));
    margin-bottom: 20px;
    animation: pulse 2s infinite ease-in-out;
}

/* Una peque�a barrita de carga opcional debajo del logo */
.loader-line {
    width: 180px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.loader-line::after {
    content: '';
    position: absolute;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #00a8ff;
    animation: loading-bar 2s infinite;
}

/* Animaciones */
@keyframes pulse {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(1); opacity: 0.8; }
}

@keyframes loading-bar {
    100% { left: 100%; }
}

/* Clase para desaparecerlo */
#splash-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

/* --- Bot�n del Upper Container (CTA Secundario/Elegante) --- */
.cta-button-hero {
    padding: 14px 30px;
    background-color: transparent;
    color: white;
    border: 2px solid #00a8ff;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-button-hero:hover {
    background-color: #00a8ff;
    color: #161838;
    box-shadow: 0 0 15px rgba(0, 168, 255, 0.4);
}

/* --- Bloque 2: �Qu� hace GKEM? --- */
.section-container {
    padding: 80px 5%;
    background-color: var(--bg-body);
    padding-top: 120px;
    padding-bottom: 120px;
}

.content-text {
    color: var(--text-main);
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.content-text h2 {
    color: var(--text-main);
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.content-text p {
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 1.1rem;
}

/* --- Bloque 3: Servicios --- */
.services-preview {
    padding: 120px 0;
    background-color: var(--bg-service); /* gris tenue adaptable */
    padding-top: 120px;
    padding-bottom: 120px;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h3 {
    font-size: 2rem;
    color: var(--text-main);
    position: relative;
    padding-bottom: 10px;
}

.section-title h3::after {
    content: '';
    width: 60px;
    height: 4px;
    background-color: #00a8ff;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* Subt�tulo debajo del H3 */
.section-subtitle {
    color: var(--text-subt);
    font-size: 1.1rem;
    margin-top: 15px;
}

/* Grid de 4 columnas */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); /* Se ajusta solo */
    gap: 25px;
    margin-top: 50px;
}

.service-card {
    background: var(--bg-card);
    padding: 40px 25px;
    border-radius: 12px; /* Bordes m�s redondeados como la imagen */
    border: 1px solid var(--border-color); /* Borde sutil en lugar de solo abajo */
    text-align: left; /* Alineaci�n a la izquierda */
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

/* El toque azul de la imagen al hacer hover */
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    border-color: #007bff;
}

.service-card h4 {
    margin-bottom: 15px;
    color: var(--text-main);
    font-size: 1.3rem;
    font-weight: 600;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1; /* Empuja el bot�n hacia abajo para que todos est�n alineados */
}

/* El enlace "M�s informaci�n" */
.learn-more {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: gap 0.3s;
    display: inline-flex;
    align-items: center;
}

.learn-more:hover {
    text-decoration: underline;
    gap: 10px; /* Peque�a animaci�n al mover la flecha */
}

/* --- Bloque 4: Clientes --- */
.clientes-section {
    padding: 80px 5%;
    display:none; /* ELIMINAR PARA QUE SE MUESTREN LOS CLIENTES */

    text-align: center;
}

.section-intro {
    margin-bottom: 60px;
}

.section-intro h2 {
    color: var(--text-main);
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.section-intro p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* --- Grid de Burbujas --- */
.clientes-burbujas-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 60px; /* Espaciado entre burbujas */
    max-width: 1100px;
    margin: 0 auto;
}

.cliente-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.cliente-burbuja {
    width: 180px;
    height: 180px;
    background: var(--bg-card);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.cliente-burbuja img {
    width: 100%;
    height: auto;
    filter: grayscale(100%); /* Efecto elegante: blanco y negro */
    opacity: 0.7;
    transition: all 0.3s ease;
}

.cliente-wrapper span {
    font-weight: 600;
    color: var(--text-subt);
    font-size: 0.95rem;
    opacity: 0; /* Oculto inicialmente */
    transition: opacity 0.3s ease;
}

/* --- Efectos Hover --- */
.cliente-wrapper:hover .cliente-burbuja {
    transform: scale(1.1);
    border-color: #00a8ff;
    box-shadow: 0 15px 35px rgba(0, 168, 255, 0.2);
}

.cliente-wrapper:hover .cliente-burbuja img {
    filter: grayscale(0%);
    opacity: 1;
}

.cliente-wrapper:hover span {
    opacity: 1; /* Muestra el nombre al pasar el mouse */
}

/* Estilo para cuando no hay imagen (solo texto) */
.logo-placeholder {
    font-weight: bold;
    color: #ccc;
    font-size: 1.2rem;
}

[data-theme="dark"] .cliente-burbuja img{
    filter: brightness(0) invert(1);
    opacity: 0.5;
}

[data-theme="dark"] .cliente-wrapper:hover .cliente-burbuja img{
    filter: grayscale(0%) brightness(1.2);
    opacity: 1;
}

/* --- Bloque 5: CTA Final --- */
.cta-section {
    padding: 100px 5%;
    background: var(--bg-cta);
    color: white;
    text-align: center;
    display: flex;
    justify-content: center;
}

.cta-content{ 
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;    
}

.cta-content h2 {
    color: antiquewhite;
    font-size: 2.2rem;
    margin: 0; /* Dejamos que el 'gap' del padre maneje el espacio */
    line-height: 1.2;
}

.cta-content p {
    font-size: 1rem;
    color: #BDBDBD;
    margin: 0;
    line-height: 1.6;
    max-width: 600px;
}

.btn-primary {
    display: inline-block;
    padding: 18px 40px;
    background-color: #00a8ff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 168, 255, 0.3);
}

.btn-primary:hover {
    background-color: #0086cc;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 168, 255, 0.5);
}