body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    background: #f4f4f4;
}

html {
    scroll-behavior: smooth;
}

#who-i-am,
#my-experience {
    scroll-margin-top: 140px;
}

/* =========================
    HEADER
========================= */

.header {
    position:sticky;
    top: 0;
    z-index: 1000;
    height: 100px;
    background: #000000;
    display: flex;
    align-items: center;
    padding: 0 25px;
    box-sizing: border-box;
}

/* Logo */

.logo {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 100px;
    height: 100px;
    object-fit: contain;
}

/* Menu */

.menu {
    display: flex;
    align-items: center;

    gap: 35px;

    margin-left: auto;
}

.menu a {
    color: #ffffff;

    text-decoration: none;

    font-size: 18px;
    font-weight: 600;

    transition: color 0.2s ease;
}

.menu a:hover {
    color: #2563eb;
}


/* =========================
   PROJECTS DROPDOWN
========================= */

.dropdown {
    position: relative;
}

.dropdown-title {
    display: block;
}

.dropdown-menu {
    position: absolute;

    top: 100%;
    right: 0;

    min-width: 240px;

    background: #111111;

    border: 1px solid #333333;

    padding: 10px 0;

    display: none;

    z-index: 2000;
}

.dropdown-menu a {
    display: block;

    padding: 12px 18px;

    color: #ffffff;

    font-size: 15px;
    font-weight: 500;

    white-space: nowrap;
}

.dropdown-menu a:hover {
    background: #222222;
    color: #2563eb;
}

/* Mostrar menú al pasar el mouse */

.dropdown:hover .dropdown-menu {
    display: block;
}


/* Nombre */

.header-text {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.header-text h1 {
    margin: 0;

    color: #ffffff;

    font-size: 42px;
    font-weight: 700;

    line-height: 1.1;
}

.job-title {
    margin: 4px 0 0 0;

    color: #ffffff;

    font-size: 20px;
    font-weight: 600;
}
.logo{
    position:absolute;
    left:20px;
    top:50%;
    transform:translateY(-50%);
    height:100px;
}

.logo-right{
    position:absolute;
    right:20px;
    top:50%;
    transform:translateY(-50%);
    height:100px;
}

.header-text h1{
    font-size:38px;
    color:#ffffff;
    margin:0;
}

.header-text p{
    color:#ffffff;
    margin:0;
}

.job-title{
    font-size:32px;
    font-weight:600;
}

h2{
    margin-left:40px;
}


/* =========================
       ABOUT ME
========================= */

#about {
    background: #f4f4f4;
    padding: 20px 20px;
    scroll-margin-top: 120px;
}


/* =========================
       SECTION TITLES
========================= */

.about-title {
    margin-left: 20px;
    margin-bottom: 20px;
    margin-top: 20px;
}

.about-title span {
    display: inline-block;
    color: #2563eb;
    font-size: 25px;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 30px;
}


/* =========================
        ABOUT SECTION TITLE
========================= */

.about-section-title {
    max-width: 1200px;
    margin: 0 auto 20px auto;
    font-size: 28px;
    color: #111827;
    font-weight: 700;
}


/* =========================
       MY EXPERIENCE
========================= */

.about-video {
    max-width: 1200px;
    margin: 80px auto 0 auto;
}

/* =========================
       MY EXPERIENCE / VIDEO
========================= */

.about-video {
    max-width: 1200px;
    margin: 80px auto 0 auto;
}

.about-video .video-cv {
    display: block;
    width: 700px;
    height: 394px;
    max-width: 100%;
    margin: 0 auto;
    object-fit: contain;
    background: #000000;
}


/* =========================
       SEPARATION BETWEEN
       ABOUT SECTIONS
========================= */

.about-category + .about-category {
    margin-top: 80px;
}

/* =========================
       ABOUT CONTENT
========================= */

.about-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    background: #ffffff;
    padding: 45px 50px;
    border-radius: 4px;
    gap: 60px;
    box-sizing: border-box;
}


/* =========================
       ABOUT TEXT
========================= */

.about-text {
    flex: 1;
    max-width: 700px;
    margin: 0;
}

.about-text p {
    font-style: italic;
    font-size: 22px;
    line-height: 1.8;
    color: #4b5563;
    margin: 0 0 28px 0;
    font-weight: 400;
}

.about-text strong {
    color: #111111;
    font-weight: 700;
}

.tool {
    color: #2563eb;
    font-weight: 600;
}


/* =========================
       ABOUT BLOCKS
========================= */

.about-block {
    margin-bottom: 35px;
}

.about-block h3 {
    font-size: 20px;
    color: #111827;
    margin-bottom: 12px;
}


/* =========================
       ABOUT IMAGE
========================= */

.about-image {
    width: 300px;
    flex-shrink: 0;
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* =========================
    PROJECTS
========================= */

#proyectos {
    padding: 60px 20px 0 20px;
    scroll-margin-top: 120px;
    margin-bottom: 30px;
}


#personal-projects {
    padding: 0;
    scroll-margin-top: 120px;
}

#bootcamp-projects {
    padding: 0;
    scroll-margin-top: 120px;
}

#tools {
    padding: 0 20px 60px 20px;
    margin-top: 0;
    scroll-margin-top: 120px;
}

#contacto {
    scroll-margin-top: 120px;
}


.Projects-title {
    margin-bottom: 0px;
}

.Projects-title span {
    display: inline-block;
    color: #2563eb;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 12px;
}

.projects-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.project-card {
    background: #2a2a2a;
    padding: 20px;
    border-radius: 10px;
    width: 250px;
    color: white;

    display: flex;
    flex-direction: column;
}

.project-card p {
    margin-bottom: 10px;
}

.project-card img{
    width:100%;
    height:150px;
    object-fit:cover;
    border-radius:8px;
}

.project-card a{
    display:inline-block;
    margin-top:10px;
    color:#38bdf8;
    text-decoration:none;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
    margin-bottom: 15px;
}

.project-tags span {
    padding: 8px 4px;
    background-color: #1e293b;
    border: 1px solid #3b82f6;
    border-radius: 6px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 60px;

    transition: all 0.25s ease;
}

.project-tags span:hover {
    background-color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.25);
}

.project-category {
    margin-bottom: 20px;
    margin-top: 0px;
}

.project-category h2 {
    max-width: 1200px;
    margin: 0 auto 40px auto;
    font-size: 28px;
    color: #111827;
    font-weight: 700;
}




#contacto{
    background:
    linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)),
    url("assets/images/FondoContacto2.png");

    background-size:cover;
    background-position:center;

    display:flex;
    justify-content:flex-end;
    align-items:center;

    padding:30px 10%;
    color:white;
}

.contact-text{
    max-width:400px;
    text-align:left;
    margin-right:150px;
}

.contact-links{
    display:flex;
    flex-direction:column;
    gap:20px;
    margin-top:20px;
}

.contact-item{
    display:flex;
    align-items:center;
    gap:15px;
    text-decoration:none;
    color:white;
    font-size:18px;
}

.contact-item img{
    width:35px;
    height:35px;
}

.contact-item:hover{
    transform:scale(1.05);
    color:#38bdf8;
}

#herramientas{
    padding-bottom:50px;
    background:#f4f4f4;
}

.tools-container{
    display:flex;
    justify-content:center;
    margin-top:20px;
}

.tools-container img{
    max-width:900px;
    width:100%;
    height:auto;
}

section{
    margin-top:20px;
}


/* =========================
   POWER BI & TABLEAU PROJECTS
========================= */

#powerbi-tableau-projects {
    padding: 60px 20px;
    scroll-margin-top: 120px;
}


/* =========================
   CONTENEDOR
========================= */

#powerbi-tableau-projects .projects-container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px;
    width: 96%;
    max-width: 1500px;
    margin: 0 auto;
}


/* =========================
   TARJETAS
========================= */

#powerbi-tableau-projects .project-card {
    width: 100%;
    box-sizing: border-box;
    background: #292929;
    border-radius: 12px;
    padding: 24px;
}


/* =========================
   CONTENEDOR DE VIDEO / IMAGEN
========================= */

#powerbi-tableau-projects .project-media {
    width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* =========================
   IMAGEN
========================= */

#powerbi-tableau-projects .project-image {
    width: 100%;
    height: 400px;
    object-fit: contain;
    background: #ffffff;
    border-radius: 10px;
    display: block;
}


/* =========================
   VIDEO
========================= */

#powerbi-tableau-projects .project-video {
    width: 100%;
    height: 400px;
    object-fit: contain;
    background: #000000;
    border-radius: 10px;
    display: block;
}


/* =========================
   TITULO
========================= */

#powerbi-tableau-projects .project-card h3 {
    color: #ffffff;
    font-size: 24px;
    margin: 24px 0 16px 0;
}


/* =========================
   DESCRIPCION
========================= */

#powerbi-tableau-projects .project-card p {
    color: #ffffff;
    font-size: 18px;
    line-height: 1.5;
    margin: 0;
}


/* =========================
   HERRAMIENTAS
========================= */

#powerbi-tableau-projects .project-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}


/* =========================
   CAJITAS
========================= */

#powerbi-tableau-projects .project-tools span {
    border: 1px solid #2563eb;
    color: #ffffff;
    background: transparent;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
}


/* =========================
   LINK
========================= */

#powerbi-tableau-projects .project-link {
    display: inline-block;
    margin-top: 22px;
    color: #29a9f0;
    text-decoration: none;
    font-size: 16px;
}


#powerbi-tableau-projects .project-link:hover {
    color: #2563eb;
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 900px) {

    #powerbi-tableau-projects .projects-container {
        grid-template-columns: 1fr;
        width: 90%;
    }

    #powerbi-tableau-projects .project-media {
        height: 350px;
    }

    #powerbi-tableau-projects .project-image,
    #powerbi-tableau-projects .project-video {
        height: 350px;
    }
}


/* =========================
   PROJECTS - AJUSTE SUPERIOR
========================= */

#proyectos {
    margin-top: 0;
    padding-top: 20px;
}



/* ==========================================
   RETAIL CAROUSEL
========================================== */

.retail-carousel {
    width: 55%;
    max-width: 900px;
    margin: 30px auto 50px auto;
    overflow: hidden;
    position: relative;
}

.carousel-track {
    display: flex;
    align-items: center;
    gap: 20px;
    width: max-content;

    animation: carouselMove 20s linear infinite;
}

.carousel-track img {
    display: block;
    width: 600px;
    height: 350px;
    object-fit: contain;

    background: #ffffff;
    border: 2px solid #000000;

    flex: 0 0 600px;
}

@keyframes carouselMove {

    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }

}
