body, html {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(135deg, #0d1a2f 0%, #1a3250 100%);
    color: #f0f0f0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden; 
}

.presentation-container {
    position: relative; 
    width: 100%;
    max-width: 1200px;
    height: 100vh; 
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.slide {
    position: initial; 
    display: none; 
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    box-sizing: border-box;
    text-align: center;
    opacity: 0; 
    transform: translateX(100%); 
    transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
    width: 100%; 
    height: 100%; 
}

.slide.active-slide {
    display: flex; 
    opacity: 1;
    visibility: visible; 
    transform: translateX(0); 
}

h1.main-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #e0f2ff;
}

h2 {
    font-size: 3rem;
    color: #81d4fa;
    margin-bottom: 2rem;
}

p {
    font-size: 1.5rem; 
    line-height: 1.8;
}

.logo-container {
    margin-bottom: 2rem;
}

.logo {
    width: 600px;
    margin-bottom: 1rem;
}

.avanhub-logo {
    width: 700px;
}

.slogan {
    font-weight: bold;
    font-size: 1.8rem;
    color: #bbdefb;
    letter-spacing: 2px;
}

/* Nuevo estilo para el eslogan en el ecosistema, si lo necesitas diferenciar */
.slogan-ecosystem {
    font-weight: bold;
    font-size: 1.5rem; /* Ajustado para el contexto */
    color: #bbdefb;
    letter-spacing: 1.5px;
    margin-top: 0.5rem;
}

.content-box {
    max-width: 800px;
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.solution-container {
    display: flex;
    gap: 2rem;
    max-width: 900px;
    text-align: left;
}

.solution-card {
    background: rgba(255, 255, 255, 0.08);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.solution-card:hover {
    transform: translateY(-10px);
}

.solution-card h3 {
    color: #4fc3f7;
    margin-top: 0;
}

/* Reestructuración para el Ecosistema AvanHub */
.ecosystem-diagram {
    display: flex; /* Para organizar el logo superior y el grid */
    flex-direction: column;
    align-items: center;
    gap: 2.5rem; /* Espacio entre el logo superior y el grid de items */
    max-width: 1000px; /* Ancho máximo para todo el diagrama */
}

.ecosystem-center-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.diagram-logo-top { /* Nueva clase para el logo superior */
    width: 400px; /* Ajusta este valor si es necesario */
    margin-bottom: 0.5rem;
}

.ecosystem-grid { /* Nuevo contenedor para las tarjetas en grid */
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* TRES columnas */
    gap: 2rem; /* Espacio entre las tarjetas */
    width: 100%; /* Ocupa el ancho disponible dentro de ecosystem-diagram */
}

.ecosystem-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: flex-start; /* Alinea el contenido arriba */
}

.ecosystem-item h3 {
    color: #81d4fa;
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.kit-entrega-logo-item { /* Nueva clase para el logo dentro de los items */
    width: 100px; /* Tamaño del logo dentro de la tarjeta */
    margin-bottom: 0.5rem;
}


.agent-list-container {
    max-width: 900px;
    text-align: left;
}

.agent-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.agent-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem 1.2rem;
    border-radius: 5px;
    border-left: 5px solid #81d4fa;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.investment-info {
    display: flex;
    gap: 3rem;
    margin-top: 2rem;
}

.investment-item {
    background: rgba(255, 255, 255, 0.08);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    min-width: 250px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.investment-item h3 {
    color: #ff8a80;
    font-size: 2rem;
    margin-top: 0;
}

.investment-item p {
    font-size: 3rem;
    font-weight: bold;
    color: #f0f0f0;
}

.call-to-action {
    font-size: 1.8rem;
    font-weight: 500;
    color: #c8e6c9;
    margin-top: 3rem;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Nuevos estilos para la navegación */
.nav-container {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 2rem;
    z-index: 10; 
}

.nav-arrow {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #e0f2ff;
    font-size: 2rem;
    padding: 0.5rem 1rem;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.nav-arrow:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.slide-counter {
    font-size: 1.5rem;
    color: #bbdefb;
    font-weight: bold;
}

@media (max-width: 768px) {
    h1.main-title { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    p { font-size: 1.2rem; }
    .logo, .avanhub-logo { width: 180px; }
    .diagram-logo-top { width: 150px; } /* Ajuste en móviles */
    .slogan-ecosystem { font-size: 1.2rem; }
    .content-box, .solution-container { flex-direction: column; text-align: center; }
    .ecosystem-diagram { gap: 1.5rem; }
    .ecosystem-grid { grid-template-columns: 1fr; } /* En móvil, de una sola columna */
    .ecosystem-item h3 { font-size: 1.5rem; }
    .kit-entrega-logo-item { width: 80px; }
    .agent-list { grid-template-columns: 1fr; }
    .investment-info { flex-direction: column; }
    .nav-arrow { font-size: 1.5rem; }
    .slide-counter { font-size: 1.2rem; }
}