* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}
html {
    scroll-behavior: smooth;
}
#Nombre {
    font-size: 9em;
    margin-bottom: 20px;
}

#navbar-float {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: rgba(0,0,0,.9);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    transform: translateY(-100%);
    transition: transform .4s cubic-bezier(.4,0,.2,1);
    z-index: 2000;
}

#navbar-float.visible {
    transform: translateY(0);
}

#navbar-main {
    position: relative;
    height: 60px;
    background: #111;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 1000;
}

#navbar-main.hidden {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none; 
}

#navbar-float ul, #navbar-main ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

#navbar-float a, #navbar-main a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

#navbar-float a:hover, #navbar-main a:hover {
    color: #ccc;
}
#navbar-float.visible {
    transform: translateY(0);
}

.fixed {
    position: fixed;
    top: 0;
    left: 0;
}
.hidden {
    transform: translateY(-100%);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav a {
    color: white;
    text-decoration: none;
}

.logo {
    font-weight: bold;
}

.logos-slider {
    overflow: hidden;
    padding: 60px 0;
    position: relative;
    width: 40%;
    display: flex;
    justify-content: center;
}
.logos-track img:hover {
    opacity: 1;
    transform: scale(1.3);
    animation-play-state: paused;

}
.logos-track {
    display: flex;
    width: calc(160px * 18); 
    animation: scroll-logos 20s linear infinite;
}

.logos-track img {
    width: 70px;
    height: auto;
    margin: 0 40px;
    filter: brightness(0) invert(1);
    opacity: 1.0;
    transition: all 0.3s ease;
    position: relative;
}
.logos-track img:hover {
    opacity: 1;
    transform: scale(1.3);
}
.logos-track:hover {
    animation-play-state: paused;
}

/* Gradientes laterales para difuminar los bordes */
.logos-slider::before,
.logos-slider::after {
    content: "";
    height: 100%;
    position: absolute;
    width: 150px;
    z-index: 2;
    pointer-events: none;
}

.logos-slider::before {
    left: 0;
background: linear-gradient(to right, #111, transparent);}
.logo-item {
    position: relative;
    display: inline-block;
    margin: 0 40px;
}
.logos-slider::after {
    right: 0;
    background: linear-gradient(to left, #111, transparent);
}
.section {
    min-height: 80vh;
    padding: 10px 10px;
}

.hero {
    background: #111;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}
.hero-logo {
    width: 100px;   
    height: 100px;       
    object-fit: cover;  
    border-radius: 10%;  
    margin-bottom: 30px; 
    
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    
}
.animate-slider {
    opacity: 0;
    animation: fadeIn 1.5s ease 1.2s forwards;
}
#expertise {
    background: #000000;
    padding: 80px 50px;
}
.section-title {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    color: #ffffff;
    position: relative;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #111;
    border-radius: 2px;
}
.expertise-container {
    display: flex;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
    border: 1px solid white;
}

/* Estilo de cada card */
.expertise-card {
    flex: 1;
    border-right: 1px solid white;
    padding: 40px 30px;
    width: 320px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.expertise-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 20px;
}

.icon-container {
    width: 60px;
    height: 60px;
    background: #111;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.expertise-icon {
    width: 35px;
    height: 35px;
    color: white;
}

.card-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

/* Contenido de la card */
.card-content {
    color: #ffffff;
}

.card-content p {
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.tech-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-list li {
    background: #f0f0f0;
    color: #333;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}


#projects {
    background: #111;
    color: white;
    padding: 80px 20px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.projects-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.projects-row {
    display: flex;
    gap: 40px;
    align-items: center;
    width: 100%;
}
.projects-row-centered {
    display: flex;
    justify-content: center;
    width: 100%;
}
.project-bottom {
    display: flex;
    gap: 40px;
    align-items: center;
    width: 100%;
}


.projects-text {
    flex: 1;
}
.projects-gif {
    flex: 1;
}

.gif-wrapper {
    position: relative;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
}
.gif-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}
.projects-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 30px;
    color: white;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1.2;
}

.projects-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255,255,255,0.8);
    margin-bottom: 30px;
}
.projects-highlights {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.highlight-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    color: rgba(255,255,255,0.9);
}

.highlight-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: white;
    color: #111;
    border-radius: 50%;
    font-weight: bold;
    font-size: 16px;
}
#contact {
    background: #bbb;
}
.scroll-down-arrow {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    text-decoration: none;
    cursor: pointer;
    z-index: 10;
    transition: transform 0.3s ease;
}
.scroll-down-arrow:hover {
    transform: translateX(-50%) scale(1.7);
}

.scroll-down-arrow svg {
    filter: drop-shadow(0 0 5px rgba(255,255,255,0.3));
}
.projects-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 60px; 
}

.projects-row {
    display: flex;
    gap: 40px;
    align-items: center;
    width: 100%;
}

.projects-row-centered {
    display: flex;
    justify-content: center;
    width: 100%;
    text-align: center;
}

.project-label {
    max-width: 800px;
    text-align: center;
}

.project-label h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
    line-height: 1.2;
}
.projects-big-title {
    font-size: 5rem;
    font-weight: 800;
    color: white;
    text-transform: uppercase;
    letter-spacing: 8px;
    margin: 40px 0 20px 0;
    position: relative;
    display: inline-block;
}
.projects-big-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: white;
    border-radius: 2px;
}

.projects-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 60px; 
}
.project-label p {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.8);
    line-height: 1.6;
}
.project-card {
    flex: 1;
    border-radius: 15px;
    overflow: hidden;
    text-decoration: none;
    color: white;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    display: block;
    cursor: pointer;
}
.project-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255,255,255,0.3);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    background: #222;
}
.project-card-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.project-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.project-card:hover .project-card-image img {
    transform: scale(1.05);
}
.project-card-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.project-card-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.project-card-tech span {
    background: rgba(255, 255, 255, 0);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(255,255,255,0.2);
}

.project-card-footer {
    margin-top: auto;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
}

.project-card-link {
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.3s ease;
}

.project-card:hover .project-card-link {
    gap: 10px;
}

.projects-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 1000px; 
    padding-bottom: 60%;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
}
.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.mini-projects-subtitle {
    font-size: 2.5rem;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin: 40px 0 20px 0;
    position: relative;
    display: inline-block;
    opacity: 0.8;
}

.mini-projects-subtitle::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: white;
    border-radius: 2px;
}

.mini-projects-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
    width: 100%;
    margin-top: 20px;
}

.mini-project-item {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    padding: 30px;
    background: rgba(255,255,255,0.02);
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: all 0.3s ease;
}

.mini-project-item:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.1);
    transform: translateX(10px);
}

.mini-project-info {
    flex: 2;
}

.mini-project-title {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: white;
    line-height: 1.3;
    position: relative;
    padding-bottom: 10px;
}

.mini-project-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: white;
    border-radius: 2px;
}

.mini-project-description {
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.8);
}

.mini-project-tech {
    flex: 1;
    display: flex;
    gap: 25px;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
}

.mini-project-tech img {
    width: 40px;
    height: 40px;
    filter: brightness(0) invert(1);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.mini-project-tech img:hover {
    transform: scale(1.2);
    opacity: 1;
}
#about {
    background: #111;
    color: white;
    padding: 100px 20px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.about-title {
    font-size: 4rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 60px;
    color: white;
    text-transform: uppercase;
    letter-spacing: 4px;
    position: relative;
}

.about-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: white;
    border-radius: 2px;
}

.about-content {
    display: flex;
    gap: 60px;
    align-items: center;
}

.about-image {
    flex: 1;
}

.image-wrapper {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    border: 2px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.image-wrapper:hover {
    transform: translateY(-10px);
    border-color: rgba(255,255,255,0.3);
    box-shadow: 0 30px 60px rgba(0,0,0,0.6);
}

.image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.image-wrapper:hover img {
    transform: scale(1.05);
}

.about-info {
    flex: 1.2;
}

.about-name {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: white;
    line-height: 1.2;
}

.about-role {
    font-size: 1.3rem;
    font-weight: 500;
    color: rgba(255,255,255,0.7);
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.about-description {
    margin-bottom: 30px;
}

.about-description p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255,255,255,0.8);
    margin-bottom: 20px;
}

.about-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
}

.skill-tag {
    background: rgba(255,255,255,0.05);
    color: white;
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.skill-tag:hover {
    background: white;
    color: #111;
    transform: translateY(-2px);
}

.cv-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 15px 35px;
    background: white;
    color: #111;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.cv-download-btn svg {
    transition: transform 0.3s ease;
}

.cv-download-btn:hover {
    background: transparent;
    color: white;
    border-color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255,255,255,0.1);
}

.cv-download-btn:hover svg {
    transform: translateY(3px);
    stroke: white;
}
#contact {
    background: #111;
    color: white;
    padding: 100px 20px;
    min-height: 60vh; 
    display: flex;
    align-items: center;
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    text-align: center;
}

.contact-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: white;
    text-transform: uppercase;
    letter-spacing: 4px;
    position: relative;
    display: inline-block;
}

.contact-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: white;
    border-radius: 2px;
}

.contact-subtitle {
    font-size: 1.3rem;
    color: rgba(255,255,255,0.6);
    margin-bottom: 60px;
    margin-top: 30px;
    font-weight: 300;
    letter-spacing: 2px;
}

.contact-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 600px;
    margin: 0 auto;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 25px;
    background: rgba(255,255,255,0.02);
    border-radius: 15px;
    text-decoration: none;
    color: white;
    border: 1px solid rgba(255,255,255,0.05);
    transition: all 0.3s ease;
    min-width: 140px;
    flex: 1 1 auto;
}

.contact-item:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.2);
    transform: translateY(-5px);
}

.contact-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon svg {
    width: 30px;
    height: 30px;
    color: white;
    transition: transform 0.3s ease;
}

.contact-item:hover .contact-icon svg {
    transform: scale(1.1);
}

.contact-item span {
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255,255,255,0.9);
}

@keyframes bounceArrow {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-20px);
    }
    60% {
        transform: translateX(-50%) translateY(-10px);
    }
}

@keyframes scroll-logos {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-150px * 9)); } 
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUpFadeIn {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
@keyframes scroll-logos {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-160px * 9)); }
}
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .expertise-container {
        gap: 20px;
    }
    
    .expertise-card {
        width: 100%;
        max-width: 400px;
    }
  .projects-container {
        flex-direction: column;
        gap: 40px;
    }
    .projects-video {
        width: 100%;
    }
    
    .projects-title {
        font-size: 3rem;
        text-align: center;
    }
    
    .projects-description {
        text-align: center;
    }
    
    .projects-highlights {
        align-items: center;
    }
        .projects-container {
        gap: 40px;
    }
    
    .project-label h3 {
        font-size: 2rem;
    }
    
    .project-label p {
        font-size: 1.1rem;
    }
    .projects-big-title {
        font-size: 3.5rem;
        letter-spacing: 5px;
    }
    .projects-row:last-child {
        flex-direction: column;
    }
    
    .project-card-image {
        height: 180px;
    }
    
    .project-card-title {
        font-size: 1.5rem;
    }
    .mini-projects-subtitle {
        font-size: 2rem;
    }
    
    .mini-project-item {
        flex-direction: column;
        gap: 30px;
        padding: 25px;
    }
    
    .mini-project-item:hover {
        transform: translateY(-5px);
    }
    
    .mini-project-title {
        font-size: 1.4rem;
    }
    
    .mini-project-tech {
        justify-content: flex-start;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    #expertise {
        padding: 60px 20px;
    }
    
    .card-header {
        flex-direction: column;
        text-align: center;
    }
    
    .icon-container {
        margin-bottom: 10px;
    }
        #projects {
        padding: 60px 20px;
    }
    
    .projects-title {
        font-size: 2.5rem;
    }
    
    .projects-description {
        font-size: 1rem;
    }
        .project-label h3 {
        font-size: 1.5rem;
    }
    
    .project-label p {
        font-size: 1rem;
    }
    .projects-big-title {
        font-size: 2.5rem;
        letter-spacing: 3px;
    }
    
    .projects-big-title::after {
        width: 60px;
        height: 3px;
    }
        .project-card-image {
        height: 160px;
    }
    
    .project-card-content {
        padding: 20px;
    }
    
    .project-card-title {
        font-size: 1.3rem;
    }
    .mini-projects-subtitle {
        font-size: 1.5rem;
        letter-spacing: 2px;
    }
    
    .mini-project-title {
        font-size: 1.3rem;
    }
    
    .mini-project-description {
        font-size: 0.95rem;
    }
    
    .mini-project-tech img {
        width: 35px;
        height: 35px;
    }
}