/* ============================= */
/*        CONFIGURACIÓN         */
/* ============================= */
* {
    box-sizing: border-box;
  }
  
  body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background-color: #121212;
    color: #e4e4e4;
    line-height: 1.6;
  }
  
  /* ============================= */
  /*            HEADER            */
  /* ============================= */
  header {
    background-color: #1f1f1f;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
  }
  
  .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .logo h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #4A90E2;
    margin: 0;
  }
  
  nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
  }
  
  nav ul li a {
    text-decoration: none;
    color: #e4e4e4;
    font-size: 1rem;
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s ease;
  }
  
  nav ul li a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #4A90E2;
    transition: width 0.3s ease;
  }
  
  nav ul li a:hover {
    color: #4A90E2;
  }
  
  nav ul li a:hover::after {
    width: 100%;
  }
  
  /* Menú hamburguesa */
  .menu-checkbox {
    display: none;
  }
  
  .menu-toggle {
    display: none;
    font-size: 1.8rem;
    color: #e4e4e4;
    cursor: pointer;
  }
  
  @media (max-width: 768px) {
    .container {
      flex-direction: column;
      align-items: center;
    }
  
    .menu-toggle {
      display: block;
    }
  
    .nav-links {
      display: none;
      flex-direction: column;
      background-color: #1f1f1f;
      position: absolute;
      top: 100%;
      left: 0;
      width: 100%;
      padding: 1rem 0;
      text-align: center;
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    }
  
    .menu-checkbox:checked ~ nav .nav-links {
      display: flex;
    }
  
    nav ul li {
      margin: 1rem 0;
    }
  }
  
  /* ============================= */
  /*       SECCIÓN INTRO          */
  /* ============================= */
  .intro {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4rem 1rem;
    text-align: center;
  }
  
  .intro h1 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #e4e4e4;
  }
  
  .descripcion {
    max-width: 800px;
    font-size: 1.2rem;
    color: #b0b0b0;
    line-height: 1.8;
    margin-bottom: 0.5rem;
  }
  
  /* ============================= */
  /*         FOTO DE PERFIL       */
  /* ============================= */
  .profile-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top;
    margin-top: 1.5rem;
    border: 5px solid #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .profile-photo:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  }
  
  /* ============================= */
  /*        BOTONES REDES         */
  /* ============================= */
  .social-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    margin-top: 1.5rem;
  }
  
  .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  }
  
  .linkedin {
    background-color: #0077b5;
    color: #ffffff;
  }
  
  .linkedin:hover {
    background-color: #005582;
    transform: scale(1.1);
  }
  
  .github {
    background-color: #333333;
    color: #ffffff;
  }
  
  .github:hover {
    background-color: #252525;
    transform: scale(1.1);
  }
  
  .btn i {
    font-size: 1.2rem;
  }
  
  /* ============================= */
  /*         PROYECTOS            */
  /* ============================= */
  #proyectos {
    padding: 4rem 1rem;
    background-color: #1a1a1a;
    color: #e4e4e4;
    text-align: center;
  }
  
  #proyectos h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #4A90E2;
  }
  
  .project-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .project {
    padding: 1rem;
    border: 1px solid #333;
    border-radius: 10px;
    background-color: #252525;
    text-align: left;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .project:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  }
  
  .project img {
    width: 10%;
    max-width: 10%;
    border-radius: 10px;
    margin-bottom: 1rem;
    display: block;
  }
  
  .project h3 {
    font-size: 1.2rem;
    margin: 0.5rem 0;
    color: #e4e4e4;
  }
  
  .project p {
    font-size: 1rem;
    color: #b0b0b0;
    margin-bottom: 1rem;
  }
  
  .project a {
    color: #4A90E2;
    text-decoration: none;
    font-weight: bold;
  }
  
  /* ============================= */
  /*           FOOTER             */
  /* ============================= */
  .footer {
    text-align: center;
    padding: 1rem;
    font-size: 0.9rem;
    color: #888;
    background-color: #1f1f1f;
    margin-top: 2rem;
  }

/* General */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  html, body {
    height: 100%;
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background-color: #121212;
    color: #e4e4e4;
  }
  
  .layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
  }

  main {
    flex: 1;
  }
  
  /* Header */
  header {
    background-color: #1f1f1f;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
  }
  
  .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .logo h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #4A90E2;
  }
  
  nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
  }
  
  nav ul li a {
    text-decoration: none;
    color: #e4e4e4;
    font-size: 1rem;
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s ease;
  }
  
  nav ul li a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #4A90E2;
    transition: width 0.3s ease;
  }
  
  nav ul li a:hover {
    color: #4A90E2;
  }
  
  nav ul li a:hover::after {
    width: 100%;
  }
  
  /* Menú hamburguesa */
  .menu-checkbox {
    display: none;
  }
  
  .menu-toggle {
    display: none;
    font-size: 1.8rem;
    color: #e4e4e4;
    background: none;
    border: none;
    cursor: pointer;
  }
  
  /* Responsive Menu */
  @media (max-width: 768px) {
    .container {
      flex-direction: column;
      align-items: center;
    }
  
    .menu-toggle {
      display: block;
    }
  
    .nav-links {
      display: none;
      flex-direction: column;
      background-color: #1f1f1f;
      position: absolute;
      top: 100%;
      left: 0;
      width: 100%;
      padding: 1rem 0;
      text-align: center;
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    }
  
    .menu-checkbox:checked ~ nav .nav-links {
      display: flex;
    }
  
    nav ul li {
      margin: 1rem 0;
    }
  }
  
  /* Contact Form */
  .page-contacto {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 1rem;
  }
  
  .form-container {
    background-color: #1f1f1f;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 100%;
  }
  
  .form-container h1 {
    text-align: center;
    margin-bottom: 1.5rem;
  }
  
    h2{
    text-align: center;
    margin-bottom: 1.5rem;
  }
  
  .contact-form {
    display: flex;
    flex-direction: column;
  }
  
  .contact-form label {
    font-weight: 600;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: #f1f1f1;
  }
  
  .contact-form input,
  .contact-form textarea {
    background-color: #2b2b2b;
    border: none;
    border-radius: 8px;
    padding: 1rem;
    font-size: 1rem;
    color: #e4e4e4;
    margin-top: 0.4rem;
  }
  
  .contact-form textarea {
    resize: none;
  }
  
  .contact-form button {
    margin-top: 1.5rem;
    padding: 1rem;
    background-color: #4a90e2;
    color: white;
    border: none;
    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  
  .contact-form button:hover {
    background-color: #3a72b0;
  }
  
  .contact-form i {
    font-size: 1rem;
    color: #aaa;
  }
  
  .email-directo {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #ccc;
  }
  
  .email-directo a {
    color: #4a90e2;
    text-decoration: none;
  }
  
  /* Footer */
  .footer {
    text-align: center;
    padding: 1rem;
    font-size: 0.9rem;
    color: #888;
    background-color: #1f1f1f;
  }