:root {
--primary-color: #6c63ff;
 --dark-gb: #121212;
 --dark-gb: #0a0a0a;
 --light-text:#f5f5f5;
 --grey-text: #aaaa;
 --card-bg: #1e1e1e;
 --border-color: #2d2d2d;
 --transition: all .3s ease;
 --gray-gb: #0c0c0c;
}

*{padding: 0;
    margin: 0;
    box-sizing: border-box;}

html{
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--dark-gb);
}

body{
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--dark-gb);
    color: var(--light-text);
    line-height: 1.6;
}

a{
    text-decoration: none;
    color: inherit;
}
ul{
    list-style: none;
}
img{
    max-width: 100%;
    height: auto;
    display: block;
}

header {
    position: fixed;          
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;            
    background: rgba(10, 10, 10, 0.6);   
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px); 
}

.main{
    padding-top: 50px;
    flex: 1;
    width: 100%;
}

#navbar {
    display: flex;
    align-items: center;       
    padding-right: 3rem;      
    justify-content: space-between;    
     height: 100%;
}

.logo {
    display: flex;
    font-size: 1.5rem;
    font-weight: bold;
    margin-left: 5rem;
    align-items: center;  
    gap: 1rem;             
}

.logo img {
    width: 50px;
    height: 50px;
    margin: 0;             
    object-fit: contain;
}
    

 .logo span {
    color: var(--primary-color)
 }

 .nav-links {
    display: flex;
    align-items: center;
     margin-right: 5rem;
    gap: 2rem;                      
    margin: 0;                       
    padding: 0;
    list-style: none;
}

.nav-links a {
    position: relative;      
    text-decoration: none;
    padding-bottom: 4px;    
}


.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;                
    height: 2px;             
    background: #6c63ff;     
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;            
}


    


   section {
    padding: 5rem 1rem;
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    align-items: start;
}

section > h2 {     
    grid-column: 1 / -1;
     scroll-margin-top: 80px
}

.section-title {
    font-size: 2rem;
    margin-bottom: 3rem;
    text-align: left;
    position: relative;
    padding-bottom: -2rem;
}

.btn{
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: .8rem 1.5rem;
    border-radius: 5px;
    font-weight: 500;
    transition: var(--transition);
}

.btn:hover{
    background-color: #5651d8;
    transform: translateY(-3px); 
    box-shadow: 0 5px 15px rgba(108, 99, 255, 0.3);
}


.hero{
    min-height: auto;     
    padding-bottom: 2rem;
    display: flex;
    align-items: center;
    padding-top: 0 2rem;
}

.hero-content{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4rem;

}

.hero-text{
    flex: 1;
}
.hero img {               
    width: 280px;         
    height: 280px;}

.hero-text h1{
    font-size: 3rem;
    margin-bottom: .5rem;
    font-weight: 700;
}

.hero-text h2{
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--primary-color);
}

.hero-text p{
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--grey-text);
    max-width: 600px;
}

.social-links{
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.social-links a{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--card-bg);
    color: var(--light-text);
    transition: var(--transition);
    font-size: 1.2rem;
}

.social-links a:hover{
    background-color: var(--primary-color);
    color: var(--light-text);
    transform: translateY(-3px);
}

.hero-image{
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;}


.hero-image img{
    width: 350px;
    height: 350px;
    border-radius: 50%;
    border: 5px solid var(--primary-color);
    box-shadow: 0 0px 25px rgba(108, 99, 255, 0.3);
    transition: var(--transition);
}

.hero-image img:hover{
    transform: scale(1.05);
    box-shadow: 0 0px 35px rgba(108, 99, 255, 0.5);
}


.timeline{
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.timeline::before{      
    content: '';
    position: absolute;
    top: 0;
    left: -8px;
    width: 2px;
    height: 100%;
    background-color: var(--primary-color);
}

.timeline-item {
    border-left: 2px solid var(--primary-color); 
    padding-left: -8px; 
    margin-left: -8px;}
    
.timeline-content {
    position: relative;
    padding: 3rem;
    background-color: var(--card-bg);
   width: 90%;
    border-radius: 5px;
   box-shadow: 0 5px 15px rgba(117, 115, 138, 0.3);
    transition: var(--transition);
}

.date {
    position: absolute;
    top: 1rem;
    left: 10px;
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: .3rem .8rem;
    border-radius: 5px;
    font-size: 0.7rem;
    box-shadow: 0 2px 5px rgba(108, 99, 255, 0.3);
}

.timeline-content h3 {
    margin-bottom: .5rem;
    font-size: 1.2rem;
}

.timeline-content h4 {
    color:var(--grey-text);
    margin-bottom: .1rem;
    font-size: 1rem;
    font-weight: 500;

}

.skills { 
   display: flex;
   flex-wrap: wrap;
   gap: .5rem;
   margin-top: 1rem;
}

.skills li { 
 font-size: .8rem;
    padding: .3rem .8rem;
    background-color: var(--primary-color);
    border-radius: 20px;
}

.productos-layout {
     grid-column: 1 / -1;                    
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    align-items: start;
}
    .video-card iframe {
    width: 70%; }

    @media (max-width: 700px) {
    .videos-grid {
        grid-template-columns: 1fr;          
    }
}
.video-card iframe {
    display: block;
    width: 100%;
    margin-bottom: 1rem;
    aspect-ratio: 16 / 9;
    border: 1px solid var(--border-color);
    box-shadow: 0 5px 15px rgba(117, 115, 138, 0.3);
    border-radius: 5px;
    background: #000; 
      transition:
        transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.5s cubic-bezier(0.22, 1, 0.36, 1),
        border-color 0.5s ease;
    will-change: transform;
    backface-visibility: hidden;}

.video-card:hover {
    animation: shadow-drop-top-bottom 0.4s linear both;
    transform: translateY(-8px);
}

@keyframes shadow-drop-top-bottom {
    0% {
        box-shadow: 0 0 0 0 transparent, 0 0 0 0 transparent;
    } 
    100% {
        box-shadow:
            0 0cm 25px -4px rgba(203, 138, 233, 0.55),
            0 0px 25px 4px rgba(169, 122, 247, 0.55);
    } 
   
}

.imagenes-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;                       
}

.imagenes-grid img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
}

.galeria {
    background-color: var(--card-bg);
    border-left: 2px solid var(--primary-color);
    border-radius: 5px;
    padding: 1.5rem;
}

.galeria-titulo {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}


.galeria-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);   
    gap: 1.2rem;                             
}

.galeria-grid img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 6px;
    cursor: zoom-in;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
}

.galeria-grid img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px 2px rgba(108, 99, 255, 0.5);
}


.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;                  
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.activo {
    opacity: 1;
    visibility: visible;
}

.lightbox img {
    max-width: 90vw;
    max-height: 85vh;
    width: auto;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 0 40px rgba(108, 99, 255, 0.4);
}

.lightbox button {
    position: absolute;
    background: none;
    border: none;
    color: var(--light-text);
    cursor: pointer;
    transition: color 0.3s ease;
}

.lightbox button:hover {
    color: var(--primary-color);
}

.lightbox-cerrar {
    top: 1.5rem;
    right: 2rem;
    font-size: 2.3rem;
}

.lightbox-nav {
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    padding: 1rem;
}

.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }
.carrusel {
    grid-column: 1 / -1;          /* ocupa todo el ancho de la sección */
    position: relative;
    margin-top: 3rem;
}

.carrusel-titulo {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.carrusel-pista {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;   /* cada tarjeta "se engancha" al frenar */
    scroll-behavior: smooth;
    padding: 1.5rem 0.5rem;          /* espacio para que no se corte la sombra del hover */
     scrollbar-width: none;          /* Firefox */
    -ms-overflow-style: none;       /* Edge antiguo */
    scrollbar-color: var(--primary-color) var(--dark-gb);
}

.carrusel-pista::-webkit-scrollbar {
    display: none;                  /* Chrome, Edge, Safari */
} 


.tiktok-card {
    flex: 0 0 325px;                 /* ancho fijo de cada tarjeta */
    scroll-snap-align: start;
    background-color: var(--card-bg);
    border-left: 2px solid var(--primary-color);
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(117, 115, 138, 0.3);
    transition:
        transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.tiktok-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 0 25px 4px rgba(108, 99, 255, 0.45);
}

.tiktok-card iframe {
    display: block;
    width: 100%;
    height: 580px;
    border: 0;
    background: #000;
}

/* Flechas */
.carrusel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--light-text);
    font-size: 0.8rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    transition: var(--transition);
}

.carrusel-btn:hover {
    background-color: #5651d8;
    transform: translateY(-50%) scale(1.1);
}

.carrusel-prev { left: 10px; }
.carrusel-next { right: 10px; }

@media (max-width: 600px) {
    .tiktok-card { flex-basis: 280px; }
    .tiktok-card iframe { height: 520px; }
}

footer {
    background-color: var(--border-color);
    color: var(--grey-text);
    backdrop-filter: blur(12px);
    text-align: center;
    padding: 2rem 1rem;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
    background-color: var(--dark-gb);
    position: relative;
    z-index: 1;
}


.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    font-size: 0.9rem;
}


@media(max-width: 900px) {
    .productos-layout {
        grid-template-columns: 1fr;
    }
    header { position: STATIC; }
    #navbar {
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
    }
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
}
    
