/* --- Variables Globales --- */
:root {
    --bg-dark-primary: #05080d;
    --bg-dark-secondary: #0d1117;
    --bg-glass: rgba(15, 22, 36, 0.6);
    --border-glass: rgba(255, 255, 255, 0.15);
    --accent-primary: #00f5c3;
    --accent-secondary: #00aaff;
    --text-light: #e6f1ff;
    --text-medium: #a8b2d1;
    --text-dark: #8892b0;
    --shadow-color: rgba(0, 0, 0, 0.5);
    --shadow-glow: rgba(0, 245, 195, 0.2);

    --font-primary: 'Poppins', sans-serif;
    --transition-slide: transform 0.9s cubic-bezier(0.65, 0.05, 0.36, 1);
    --transition-content: all 0.5s ease-out;
    --transition-fast: all 0.3s ease;
    --blur-intensity: 10px;
}

/* --- Reset Básico y Estilos Base --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--font-primary);
    background-color: var(--bg-dark-primary);
    color: var(--text-light);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    line-height: 1.7;
    letter-spacing: 0.3px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Contenedor Principal del Slider --- */
.portfolio-slider {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0; left: 0;
    overflow: hidden;
    background: var(--bg-dark-primary);
}

/* --- Contenedor de Slides --- */
.slides-container {
    display: flex;
    width: 1000%; /* ACTUALIZADO: 100% * 10 slides */
    height: 100%;
    transition: var(--transition-slide);
    will-change: transform;
}

/* --- Estilo de Cada Slide --- */
.slide {
    width: 10%; /* ACTUALIZADO: 100% / 10 slides */
    height: 100%;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 5vh 5vw;
    position: relative;
    overflow: hidden;
}

/* Elemento de Fondo Separado para Parallax */
.slide-background {
    position: absolute;
    top: -10%; left: -10%;
    width: 120%; height: 120%;
    background-size: cover;
    background-position: center center;
    z-index: 0;
    transition: transform 1.2s ease-out;
}

/* Fondos de los slides (ASEGÚRATE DE TENER ESTAS IMÁGENES O CAMBIA LAS RUTAS) */
.slide-cover { background: linear-gradient(rgba(5,8,13,0.7), rgba(5,8,13,0.9)), url('images/ultra_modern_cover.jpg') center center / cover no-repeat; }
.slide-mission { background: linear-gradient(rgba(13,17,23,0.7), rgba(13,17,23,0.9)), url('images/ultra_modern_mission.jpg') center center / cover no-repeat; }
.slide-vision { background: linear-gradient(rgba(5,8,13,0.7), rgba(5,8,13,0.9)), url('images/ultra_modern_vision.jpg') center center / cover no-repeat; }
.slide-about-us { background: linear-gradient(rgba(13,17,23,0.7), rgba(13,17,23,0.9)), url('images/ultra_modern_about.jpg') center center / cover no-repeat; }
.slide-our-team { background: linear-gradient(rgba(5,8,13,0.8), rgba(5,8,13,0.95)), url('images/ultra_modern_team.jpg') center center / cover no-repeat; }
.slide-why-us { background: linear-gradient(rgba(13,17,23,0.7), rgba(13,17,23,0.9)), url('images/ultra_modern_why.jpg') center center / cover no-repeat; }
.slide-services { background: linear-gradient(rgba(5,8,13,0.8), rgba(5,8,13,0.95)), url('images/ultra_modern_services.jpg') center center / cover no-repeat; }
.slide-contact { background: linear-gradient(rgba(13,17,23,0.7), rgba(13,17,23,0.9)), url('images/ultra_modern_contact.jpg') center center / cover no-repeat; }


/* --- Contenido Principal (Efecto Vidrio) --- */
.slide-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    width: 90%;
    padding: clamp(30px, 5vh, 60px) clamp(30px, 5vw, 70px);
    border-radius: 12px;
    border: 1px solid var(--border-glass);
    box-shadow: 0 8px 32px 0 var(--shadow-color);
    background: var(--bg-glass);
    backdrop-filter: blur(var(--blur-intensity));
    -webkit-backdrop-filter: blur(var(--blur-intensity));
    transform-style: preserve-3d;
    opacity: 0; /* Oculto por defecto, JS/CSS lo activa */
}
.slide.active .slide-content {
    opacity: 1; /* Visible cuando el slide está activo */
    transition: opacity 0.5s ease-out 0.3s; /* Transición suave de opacidad */
}

/* --- Tipografía y Elementos Comunes --- */
.logo {
    max-width: 180px;
    margin-bottom: 30px;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 3.8rem);
    color: var(--text-light);
    margin-bottom: 5px;
    font-weight: 700;
    letter-spacing: -1px;
}
h2 {
    font-size: clamp(2rem, 5vw, 2.8rem);
    margin-bottom: 30px;
    color: var(--accent-primary);
    font-weight: 600;
    letter-spacing: 0.5px;
}
h2.tagline {
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    color: var(--text-medium);
    margin-bottom: 25px;
    font-weight: 400;
}
p {
    font-size: clamp(0.95rem, 2.5vw, 1.1rem);
    color: var(--text-medium);
    margin-bottom: 20px;
    font-weight: 300;
    max-width: 700px;
    margin-left: auto; margin-right: auto;
}
p.intro-text {
    font-size: clamp(1rem, 3vw, 1.2rem);
    color: var(--text-light);
    font-weight: 400;
}
h3 {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 10px;
    font-weight: 500;
}
.icon-large {
    font-size: clamp(3rem, 8vw, 4.5rem);
    color: var(--accent-primary);
    margin-bottom: 35px;
    display: block;
    text-shadow: 0 0 15px var(--shadow-glow);
}
.scroll-hint {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.9rem;
    color: var(--text-dark);
    opacity: 0.7;
    z-index: 5;
    transition: opacity var(--transition-fast);
}
.scroll-hint i { margin-left: 8px; animation: bounceArrow 2s infinite ease-in-out; }
.scroll-hint:hover { opacity: 1; }

@keyframes bounceArrow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* --- Tarjetas (Propuesta Valor y Servicios) --- */
.value-props, .service-grid {
    display: grid;
    gap: 30px;
    margin-top: 35px;
}
.value-props { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.service-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

.prop-card, .service-card {
    text-align: center;
    padding: 25px 20px;
    border-radius: 8px;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    will-change: transform, box-shadow;
}

/* Estilo específico Propuesta de Valor */
.prop-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.prop-icon {
    font-size: 1.8rem;
    color: var(--accent-secondary);
    margin-bottom: 15px;
}
.prop-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* Estilo específico Tarjetas de Servicio (Efecto Vidrio Interno) */
.service-card.glass-card {
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid var(--border-glass);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.service-icon {
    font-size: 2rem;
    color: var(--accent-primary);
    margin-bottom: 15px;
}
.service-card p { font-size: 0.9rem; color: var(--text-medium); margin-bottom: 0; }

.service-card.glass-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 30px var(--shadow-color), 0 0 15px var(--shadow-glow);
    border-color: var(--accent-primary);
}

/* --- Estilos específicos para "Nuestro Equipo Principal" --- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Tres columnas en escritorio */
    gap: 30px; /* Espacio entre tarjetas */
    margin-top: 40px; /* Espacio después del párrafo introductorio */
    width: 100%;
    max-width: 850px; /* Limitar el ancho máximo del grid */
    margin-left: auto;
    margin-right: auto;
}

.team-member-card {
    background: rgba(255, 255, 255, 0.03); /* Fondo muy sutil, ligeramente diferente */
    border: 1px solid var(--border-glass);
    border-radius: 10px; /* Bordes redondeados */
    padding: 25px 20px;
    text-align: center;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    will-change: transform, box-shadow;
}

.team-member-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), 0 0 10px var(--shadow-glow);
    border-color: rgba(0, 245, 195, 0.5); /* Borde acentuado al pasar el ratón */
}

.team-member-image {
    width: 120px; /* Tamaño de la imagen */
    height: 120px;
    border-radius: 50%; /* Imagen redonda */
    background-color: rgba(255, 255, 255, 0.1); /* Color placeholder */
    margin: 0 auto 20px auto; /* Centrar y dar espacio abajo */
    border: 3px solid rgba(255, 255, 255, 0.2); /* Borde sutil */
    overflow: hidden; /* Asegurar que la img interna no se salga del círculo */
    display: flex; /* Para centrar posible icono/texto placeholder si no hay img */
    justify-content: center;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-dark);
}

/* Estilo si usas <img> dentro de .team-member-image */
.team-member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Asegura que la imagen cubra el espacio sin deformarse */
    display: block; /* Evita espacio extra bajo la imagen */
}

.team-member-name {
    font-size: 1.3rem;
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 5px;
}

.team-member-title {
    font-size: 0.95rem;
    color: var(--accent-primary); /* Título con color de acento */
    font-weight: 400;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.team-member-bio {
    font-size: 0.9rem;
    color: var(--text-medium);
    line-height: 1.6;
    margin-bottom: 0; /* Sin margen extra al final */
}


/* --- Navegación (Botones y Puntos) --- */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 55px; height: 55px;
    border-radius: 50%;
    border: 1px solid var(--border-glass);
    color: var(--text-medium);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition-fast);
    will-change: background-color, color, transform, box-shadow;
}
.glass-effect-nav {
    background: var(--bg-glass);
    backdrop-filter: blur(var(--blur-intensity));
    -webkit-backdrop-filter: blur(var(--blur-intensity));
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.nav-btn:hover {
    background: var(--accent-primary);
    color: var(--bg-dark-primary);
    border-color: var(--accent-primary);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3), 0 0 20px var(--shadow-glow);
}
.nav-btn:active { transform: translateY(-50%) scale(1); }
.prev-btn { left: 3vw; }
.next-btn { right: 3vw; }
.nav-btn.hidden { /* Estilos si quieres ocultar botones en los extremos (requiere JS) */
    opacity: 0.3;
    pointer-events: none;
    transform: translateY(-50%) scale(0.9);
}

.dots-container {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 100;
}
.dot {
    width: 12px; height: 12px;
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition-fast);
    backdrop-filter: blur(2px);
    /* Usar button en HTML, pero aquí se estiliza */
}
.dot:hover { background-color: rgba(0, 245, 195, 0.5); transform: scale(1.1); }
.dot.active {
    background-color: var(--accent-primary);
    border-color: var(--accent-primary);
    transform: scale(1.4);
    box-shadow: 0 0 10px var(--shadow-glow);
}

/* --- Botón CTA --- */
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary));
    color: var(--bg-dark-primary);
    padding: 15px 35px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    margin-top: 30px;
    margin-bottom: 35px;
    transition: var(--transition-fast);
    border: none;
    box-shadow: 0 6px 20px rgba(0, 191, 255, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.cta-button span { position: relative; z-index: 2;}
.cta-button i { position: relative; z-index: 2; transition: transform 0.3s ease;}
.cta-button::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(45deg, var(--accent-secondary), var(--accent-primary));
    opacity: 0;
    transition: opacity var(--transition-fast);
    z-index: 1;
}
.cta-button:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 10px 25px rgba(0, 221, 255, 0.4);
}
.cta-button:hover::before { opacity: 1; }
.cta-button:hover i { transform: translateX(5px); }
.cta-button:active { transform: translateY(-2px) scale(1); }

/* --- Información de Contacto --- */
.contact-info {
    font-size: 0.9rem;
    color: var(--text-dark);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px 30px;
    margin-top: 20px;
}
.contact-info span { display: inline-flex; align-items: center; }
.contact-info i {
    margin-right: 10px;
    color: var(--accent-secondary);
    font-size: 1.1rem;
}
.contact-info a {
    color: var(--text-medium);
    text-decoration: none;
    transition: color var(--transition-fast);
    position: relative;
}
.contact-info a::after {
    content: '';
    position: absolute;
    width: 0; height: 1px;
    display: block;
    margin-top: 2px;
    right: 0;
    background: var(--accent-primary);
    transition: width .3s ease;
}
.contact-info a:hover { color: var(--accent-primary); }
.contact-info a:hover::after { width: 100%; left: 0; }

/* --- Animaciones de Entrada --- */
/* Se aplicarán con JS al contenido del slide activo */
.animated { animation-duration: 0.8s; animation-fill-mode: both; animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1); }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

@keyframes fadeInUp { from { opacity: 0; transform: translate3d(0, 40px, 0); } to { opacity: 1; transform: translate3d(0, 0, 0); } }
.fadeInUp { animation-name: fadeInUp; }

@keyframes fadeInDown { from { opacity: 0; transform: translate3d(0, -40px, 0); } to { opacity: 1; transform: translate3d(0, 0, 0); } }
.fadeInDown { animation-name: fadeInDown; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.fadeIn { animation-name: fadeIn; }

@keyframes scaleIn { from { opacity: 0; transform: scale(0.8); } to { opacity: 1; transform: scale(1); } }
.scale-in { animation-name: scaleIn; }


/* --- Media Queries --- */
@media (max-width: 992px) {
    .service-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
    .value-props { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); /* Más flexible en tablets */
        max-width: 90%;
    }
    .team-member-image {
        width: 110px;
        height: 110px;
    }
}

@media (max-width: 768px) {
    html { font-size: 15px; }
    .slide { padding: 8vh 5vw; }
    .slide-content { width: 95%; padding: 30px 25px; backdrop-filter: blur(8px); }
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.9rem; }
    .icon-large { font-size: 3rem; }
    .value-props, .service-grid { grid-template-columns: 1fr; gap: 20px;}
    .nav-btn { width: 48px; height: 48px; font-size: 1.2rem; }
    .prev-btn { left: 15px; } .next-btn { right: 15px; }
    .dots-container { bottom: 70px; }
    .scroll-hint { bottom: 25px; }
    .cta-button { padding: 14px 25px; font-size: 0.95rem; }
    .contact-info { gap: 10px 20px; font-size: 0.85rem; }
    .team-grid {
        grid-template-columns: 1fr; /* Una columna en móviles */
        gap: 25px;
        max-width: 350px; /* Ancho máximo de la tarjeta en móvil */
    }
     .team-member-image {
        width: 100px;
        height: 100px;
    }
     .team-member-name {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    html { font-size: 14px; }
    .slide-content { padding: 25px 15px; }
    h1 { font-size: 1.9rem; }
    h2 { font-size: 1.6rem; }
    .service-card, .prop-card, .team-member-card { padding: 20px 15px; }
    .nav-btn { width: 42px; height: 42px; font-size: 1.1rem; }
}