/* Importar estilos base */
@import url('../style.css');

/* Estilos específicos para about.html */
.about-section {
    padding: 120px 0 80px;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    background: #222;
}

.about-content {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    line-height: 1.8;
    padding-left: 2rem;
}

.about-content h2 {
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
}

.founder-image-container {
    position: relative;
    padding: 2rem;
    display: flex;
    justify-content: flex-start;
}

.founder-image-circle {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    margin: 0 auto;
    border: 2px solid rgba(57, 255, 20, 0.3);
    box-shadow: 0 0 20px rgba(57, 255, 20, 0.2);
}

.founder-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.founder-image-circle:hover .founder-img {
    transform: scale(1.05);
}

/* Efectos de neón y resplandor */
.highlight {
    color: #FF5733;
    text-shadow: 0 0 10px rgba(255, 87, 51, 0.5);
}

/* Estilos para la sección de video */
.video-section {
    padding: 80px 0;
    background: rgba(0, 0, 0, 0.8);
    position: relative;
}

.video-container {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(57, 255, 20, 0.2);
    position: relative;
}

.feature-video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
    transition: transform 0.3s ease;
}

.mission-content {
    padding: 2rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    line-height: 1.8;
}

.mission-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #FF5733;
}

/* Efectos hover */
.video-container:hover .feature-video {
    transform: scale(1.02);
}

/* Responsive */
@media (max-width: 768px) {
    .about-section {
        padding: 100px 0 60px;
    }

    .founder-image-circle {
        width: 300px;
        height: 300px;
        margin-top: 2rem;
    }

    .about-content {
        font-size: 1rem;
        padding-left: 0;
        text-align: center;
        margin-top: 2rem;
    }

    .video-section {
        padding: 60px 0;
    }
    
    .mission-content {
        padding: 1rem;
        margin-top: 2rem;
        font-size: 1rem;
    }
    
    .mission-content h2 {
        font-size: 2rem;
    }

    .founder-image-container {
        justify-content: center;
    }
}

/* Sección de Valores */
.values-section {
    padding: 80px 0;
    background: rgba(0, 0, 0, 0.9);
}

.value-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 87, 51, 0.5);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease;
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 20px rgba(57, 255, 20, 0.3);
}

.value-card i {
    font-size: 2.5rem;
    color: #39FF14;
    margin-bottom: 1rem;
}

.value-card h3 {
    color: #FF5733;
    margin-bottom: 1rem;
}

.value-card p {
    color: rgba(255, 255, 255, 0.8);
}

/* Estilos para la sección de estadísticas */
.stats-section {
    padding: 80px 0;
    background: rgba(0, 0, 0, 0.8);
}

.stat-card {
    text-align: center;
    padding: 2rem;
    transition: transform 0.3s ease;
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: #39FF14;
    text-shadow: 0 0 10px rgba(57, 255, 20, 0.5);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: white;
    font-size: 1.1rem;
}

/* Estilos para la sección de equipo */
.team-section {
    padding: 80px 0;
    background: rgba(0, 0, 0, 0.9);
}

.team-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 20px rgba(57, 255, 20, 0.3);
}

.team-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-info {
    padding: 1.5rem;
    text-align: center;
}

.team-info h3 {
    color: white;
    margin-bottom: 0.5rem;
}

.team-info p {
    color: #39FF14;
    margin-bottom: 1rem;
}

.team-social {
    margin-top: 1rem;
}

.team-social a {
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0.5rem;
    font-size: 1.2rem;
    transition: color 0.3s ease;
    display: inline-block;
}

.team-social a:hover {
    color: #39FF14;
    transform: scale(1.15) rotate(-5deg);
}

/* Responsive */
@media (max-width: 768px) {
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
    
    .team-image {
        height: 250px;
    }
}

/* Sección de Tecnologías */
.tech-section {
    padding: 80px 0;
    background: #111;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.tech-item {
    text-align: center;
    transition: transform 0.3s ease;
}

.tech-item:hover {
    transform: translateY(-10px);
}

.tech-item img {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1);
}

.tech-item span {
    display: block;
    color: white;
    font-size: 0.9rem;
}

/* Línea de Tiempo */
.timeline-section {
    padding: 80px 0;
    background: rgba(0, 0, 0, 0.9);
}

.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    height: 100%;
    width: 2px;
    background: rgba(57, 255, 20, 0.3);
    transform: translateX(-50%);
}

.timeline-item {
    margin-bottom: 3rem;
    position: relative;
}

.timeline-content {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(57, 255, 20, 0.2);
    border-radius: 15px;
    padding: 1.5rem;
    width: 45%;
    margin-left: auto;
    position: relative;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: 0;
}

.timeline-content::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: #39FF14;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}

.timeline-item:nth-child(odd) .timeline-content::before {
    right: -60px;
}

.timeline-item:nth-child(even) .timeline-content::before {
    left: -60px;
}

.timeline-content h3 {
    color: #39FF14;
    margin-bottom: 0.5rem;
}

.timeline-content h4 {
    color: white;
    margin-bottom: 1rem;
}

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

/* Responsive */
@media (max-width: 768px) {
    .timeline::before {
        left: 30px;
    }
    
    .timeline-content {
        width: calc(100% - 60px);
        margin-left: 60px !important;
    }
    
    .timeline-content::before {
        left: -45px !important;
    }
}

/* Animaciones */
.animate-on-scroll {
    will-change: transform, opacity;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Variaciones de animaciones */
.fade-in-left {
    transform: translateX(-100px);
}

.fade-in-right {
    transform: translateX(100px);
}

.fade-in-up {
    transform: translateY(50px);
}

.fade-in-down {
    transform: translateY(-50px);
}

/* Delays personalizados para elementos secuenciales */
[style*="transition-delay"] {
    transition-delay: var(--delay, 0.2s);
}

/* Animaciones específicas para la línea de tiempo */
.timeline-item {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-item.animate {
    opacity: 1;
    transform: translateX(0);
}

/* Optimizaciones para imágenes y video */
.founder-img,
.team-image img {
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.feature-video {
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
    background: #000; /* Color de fondo mientras carga */
}

/* Placeholder para imágenes mientras cargan */
.founder-image-circle,
.team-image {
    background: linear-gradient(45deg, #111, #222);
    position: relative;
    overflow: hidden;
}

.founder-image-circle::before,
.team-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        to right,
        transparent,
        rgba(57, 255, 20, 0.2),
        transparent
    );
    animation: loading 1.5s infinite;
}

@keyframes loading {
    to {
        left: 100%;
    }
}

/* Ajustes responsive para móvil */
@media (max-width: 768px) {
    /* Ajustes generales */
    .neural-section {
        padding: 60px 0;
    }

    /* About Section */
    .about-content {
        text-align: center;
        padding: 2rem 1rem;
    }

    .about-content h2 {
        font-size: 2rem;
    }

    .founder-image-circle {
        width: 280px;
        height: 280px;
        margin: 2rem auto;
    }

    /* Video Section */
    .video-container {
        margin: 2rem 0;
    }

    .mission-content {
        text-align: center;
        padding: 1rem;
    }

    .mission-content h2 {
        font-size: 2rem;
    }

    /* Valores */
    .value-card {
        margin-bottom: 1rem;
        padding: 1.5rem;
    }

    .value-card i {
        font-size: 2rem;
    }

    /* Timeline */
    .timeline::before {
        left: 20px;
    }

    .timeline-content {
        width: calc(100% - 50px);
        margin-left: 50px !important;
    }

    .timeline-content::before {
        left: -35px !important;
        width: 15px;
        height: 15px;
    }

    .timeline-item {
        margin-bottom: 2rem;
    }

    /* Equipo */
    .team-card {
        max-width: 300px;
        margin: 0 auto;
    }

    .team-image {
        height: 250px;
    }

    /* Footer */
    .footer {
        text-align: center;
    }

    .footer .text-lg-end {
        text-align: center !important;
        margin-top: 1rem;
    }

    /* WhatsApp Button */
    .whatsapp-float {
        right: 15px;
        bottom: 15px;
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    /* Ajustes de navegación */
    .navbar {
        padding: 0.5rem 1rem;
    }

    .navbar-collapse {
        background: rgba(0, 0, 0, 0.95);
        padding: 1rem;
        border-radius: 8px;
        margin-top: 0.5rem;
    }

    .nav-link {
        padding: 0.5rem 1rem;
        text-align: center;
    }

    /* Ajustes de animaciones */
    .animate-on-scroll {
        transition: all 0.5s ease;
    }

    /* Ajustes de espaciado */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .row {
        margin-left: -10px;
        margin-right: -10px;
    }

    [class*="col-"] {
        padding-left: 10px;
        padding-right: 10px;
    }
}

/* Ajustes para dispositivos muy pequeños */
@media (max-width: 375px) {
    .founder-image-circle {
        width: 240px;
        height: 240px;
    }

    h2 {
        font-size: 1.8rem !important;
    }

    .value-card {
        padding: 1rem;
    }

    .timeline-content {
        padding: 1rem;
    }
}

/* Optimizaciones de rendimiento para móviles */
@media (max-width: 768px) {
    .feature-video {
        height: auto;
        max-height: 300px;
    }

    /* Reducir complejidad de animaciones en móvil */
    .animate-on-scroll {
        transform: translateY(20px);
    }

    /* Ajustar tamaño de fuentes */
    p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    /* Mejorar touch targets */
    .team-social a {
        padding: 8px;
        margin: 0 8px;
    }

    /* Optimizar scroll */
    * {
        -webkit-overflow-scrolling: touch;
    }
}

/* Estilos mejorados para el splash screen */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

.splash-content {
    text-align: center;
    position: relative;
}

.splash-logo {
    width: 150px;
    height: 150px;
    margin-bottom: 2rem;
    animation: logoGlow 2s infinite alternate;
}

.cyber-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    border: 2px solid rgba(57, 255, 20, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: rotate 4s linear infinite;
}

.cyber-ring::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 2px solid transparent;
    border-top: 2px solid #39FF14;
    border-radius: 50%;
}

.loading-bar {
    width: 300px;
    height: 4px;
    background: rgba(57, 255, 20, 0.2);
    margin: 20px auto;
    position: relative;
    overflow: hidden;
    border-radius: 2px;
}

.loading-progress {
    position: absolute;
    width: 100%;
    height: 100%;
    background: #39FF14;
    animation: loading 2s infinite;
    box-shadow: 0 0 10px #39FF14;
}

.splash-text {
    font-size: 1.8rem;
    color: #fff;
    margin: 1rem 0;
    text-align: center;
    text-shadow: 0 0 10px rgba(57, 255, 20, 0.5);
    transition: opacity 0.5s ease;
}

.splash-subtext {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    letter-spacing: 2px;
}

/* Animaciones */
@keyframes logoGlow {
    from {
        filter: drop-shadow(0 0 5px rgba(57, 255, 20, 0.5));
    }
    to {
        filter: drop-shadow(0 0 15px rgba(57, 255, 20, 0.8));
    }
}

@keyframes rotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes loading {
    0% { transform: translateX(-100%); }
    50% { transform: translateX(0); }
    100% { transform: translateX(100%); }
}

/* Responsive */
@media (max-width: 768px) {
    .splash-logo {
        width: 120px;
        height: 120px;
    }

    .cyber-ring {
        width: 160px;
        height: 160px;
    }

    .loading-bar {
        width: 250px;
    }

    .splash-text {
        font-size: 1.4rem;
    }

    .splash-subtext {
        font-size: 1rem;
    }
}

/* Optimizaciones de rendimiento */
.animate-on-scroll {
    will-change: transform, opacity;
}

/* Optimizaciones para dispositivos móviles */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .about-content,
    .mission-content {
        text-align: center;
        padding: 2rem 1rem;
    }
}

/* Mejoras de accesibilidad */
.nav-link:focus,
.btn:focus {
    outline: 2px solid var(--cyber-green);
    outline-offset: 2px;
}

/* Optimizaciones de rendimiento para animaciones */
@media (prefers-reduced-motion: reduce) {
    .animate-on-scroll {
        transition: none !important;
        animation: none !important;
    }
}

/* Mejoras de contraste para accesibilidad */
.team-info h3,
.value-card h3 {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.team-info p,
.value-card p {
    color: rgba(255, 255, 255, 0.9);
}

/* Actualizar rutas de fondos */
.neural-background {
    background: #111;
}

.instagram-header-link {
    display: inline-block;
    font-size: 2rem;
    color: #fff;
    margin-left: 1rem;
    vertical-align: middle;
    text-shadow: 0 0 12px #E4405F, 0 0 24px #fff;
    transition: color 0.2s, text-shadow 0.2s, transform 0.2s;
}
.instagram-header-link:hover {
    color: #E4405F;
    text-shadow: 0 0 24px #E4405F, 0 0 32px #fff;
    transform: scale(1.15) rotate(-5deg);
}

.header-social-link {
    display: inline-block;
    font-size: 1.5rem;
    color: #fff;
    margin-left: 0.7rem;
    vertical-align: middle;
    text-shadow: 0 0 8px #E4405F, 0 0 12px #fff;
    transition: color 0.2s, text-shadow 0.2s, transform 0.2s;
}
.header-social-link:hover {
    color: #E4405F;
    text-shadow: 0 0 16px #E4405F, 0 0 24px #fff;
    transform: scale(1.12) rotate(-5deg);
}
.header-social-link .bi-whatsapp {
    color: #25D366;
    text-shadow: 0 0 8px #25D366, 0 0 12px #ffffff33;
}
.header-social-link:hover .bi-whatsapp {
    color: #128C7E;
    text-shadow: 0 0 16px #128C7E, 0 0 24px #fff;
}

/* Solo mostrar los íconos sociales junto al logo en móvil */
.header-social-link {
    font-size: 1.3rem;
    color: #fff;
    vertical-align: middle;
    margin-left: 0.3rem;
    text-shadow: 0 0 8px #E4405F, 0 0 12px #fff;
    transition: color 0.2s, text-shadow 0.2s, transform 0.2s;
}
.header-social-link .bi-whatsapp { color: #25D366; text-shadow: 0 0 8px #25D366, 0 0 12px #fff; }
.header-social-link:hover { color: #E4405F; transform: scale(1.12) rotate(-5deg);}
.header-social-link:hover .bi-whatsapp { color: #128C7E; }

@media (min-width: 992px) {
    .navbar-brand .d-lg-none { display: none !important; }
}
@media (max-width: 991.98px) {
    .navbar-brand .d-lg-none { display: inline !important; }
}
