* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    color: #e5e7eb;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    scroll-behavior: smooth;
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    transition: background-color 0.8s ease-in-out;
    background-color: #030712;
}

.bg-dark-blue {
    background-color: #1a202c; 
}

.bg-dark-purple {
    background-color: #2d1a3c; 
}


main {
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 0;
}

.header-container {
    position: sticky; 
    top: 20px; 
    z-index: 1000;
    width: 100%; 
    display: flex; 
    justify-content: center; 
    padding: 0 20px; 
}

header { 
    background-color: #0d1117;
    border-radius: 20px;
    padding: 0.5rem 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    max-width: 800px;
    width: 100%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.main-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.main-nav a {
    color: #e5e7eb;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.2rem 0;
    font-size: 0.95rem; 
}

.main-nav a:hover, .social-links a:hover {
    color: #06a9fd;
}

.social-links {
    font-size: 1.2rem;
    display: flex;
    gap: 0.8rem; 
    margin-left: 3rem;
}

.social-links a {
    color: #e5e7eb;
}


.fa-light {
    width: auto;
    height: auto;
}

/* SECCIONES PRINCIPALES */
section {
    padding: 3rem 0;
}

h1, h2, h3 {
    color: #06a9fd;
    margin-bottom: 1rem;
}

h2 {
    text-align: center;
    border-bottom: 2px solid #06a9fd;
    padding-bottom: 0.5rem;
    margin-bottom: 2rem;
}


  
  .button-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
  }
  
  .styled-button {
    background-color: #2c3e50;
    color: #ecf0f1;
    border: none;
    border-radius: 20px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
  }
  
  .styled-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.4);
    color: #06a9fd;
  }


  .styled-button:hover > i{
    color: #06a9fd;
  }

  .styled-button:hover > a{
    color: #06a9fd;
  }
  
  .styled-button i {
    color: #ecf0f1;
  }

  .styled-button a {
    color: #ecf0f1;
    text-decoration: none;
  }

  a:-webkit-any-link {
    color: #ecf0f1;
    cursor: pointer;
    text-decoration: none;
}




/* SECCIÓN PRESENTACIÓN */
.presentation {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
    margin-top: 3rem;
}

.presentation img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 3px solid #06a9fd;
    object-fit: cover;
}

/* SECCIÓN ESTUDIOS */
.studies-content {
    background-color: #151925;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: justify;
}

/* SECCIÓN PROYECTOS */
.buttons-projects {
    display: inline-flex;
    justify-content: flex-start;
    gap: 5rem;
}


.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.project-card {
    background-color: #151925;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-card img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 1rem;
}

/* SECCIÓN TECNOLOGÍAS */
.tech-categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    text-align: center;
  }
  
  .tech-box {
    background-color: #151925;
    padding: 2.5rem 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    flex: 1 1 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .box-icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem; 
    flex-wrap: wrap; 
  }
  
  .icon-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    width: calc(33.33% - 1.5rem); 
    text-align: center;
  }
  
  .icon-box svg {
    height: 40px;
    width: auto;
  }
  
  .text-icons {
    font-size: 1rem;
    color: #a0a0a0;
    font-weight: 500;
    text-align: center;
  }

/* FOOTER */
footer {
    padding: 1.5rem 0;
    text-align: center;
    margin-top: auto;
    border-top: 1px solid #1f2937;
}

/* MEDIA QUERIES */

/* Móviles pequeños */
@media (max-width: 480px) {
    header {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 0;
    }
    
    .main-nav ul {
        justify-content: center;
        gap: 1rem;
    }

    .social-links {
        margin-left: 0;
    }

    .studies-content, .project-card, .tech-box {
        padding: 1rem;
    }
}

/* Tablets */
@media (max-width: 768px) {
    main {
        width: 95%;
    }
    .presentation img {
        width: 120px;
        height: 120px;
    }
}



/* PEQUEÑA MODIFICACIÓN DE BOTONES EN PROYECTOS */
.button-container-projects {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
  }
  
  .styled-button-projects {
    background-color: #06c3fd49;
    color: #ecf0f1;
    border: none;
    border-radius: 20px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
  }
  
  .styled-button-projects:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.4);
    background-color: #06a9fd;
  }


  .styled-button-projects:hover > i{
    color: #06a9fd;
  }

  .styled-button-projects:hover > a{
    color: #06a9fd;
  }
  
  .styled-button-projects i {
    color: #ecf0f1;
  }

  .styled-button-projects a {
    color: #ecf0f1;
    text-decoration: none;
  }