/* GLOBAL */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    padding-top: 50px;
  }
  
  /* NAVBAR  */
  .navbar {
    background-color: #111;
    color: #fff;
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
  }
  /* Ocultar menú por defecto */
  .navbar__menu {
    list-style: none;
    position: fixed;
    top: 50px;
    right: 0;
    width: 250px;
    height: 100%;
    background-color: #111;
    flex-direction: column;
    padding: 2rem 1rem;
    gap: 1rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 999;
    display: flex;
  }

  .navbar__container {
    margin: 0 auto;
    height: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .navbar__logo-link {
    display: flex;
    align-items: center;
    gap: 0.5rem; /* espacio entre imagen y texto */
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: bold;
  }
  
  .navbar__logo-img {
    height: 35px;
    width: auto;
  }
 
  .navbar__link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
  }

  .navbar__link i {
    margin-right: 0.5rem;
  }

  .navbar__link:hover {
    color: #555;
  }

.navbar__icon {
  display: block;
  font-size: 1.8rem;
  color: #fff;
  cursor: pointer;
  z-index: 1000;
}

/* Mostrar menú cuando el checkbox está activo */
.navbar__toggle:checked + .navbar__icon + .navbar__menu {
  transform: translateX(0);
}

/* Estilo ícono hamburguesa */

  .navbar__toggle {
    display: none;
  }
  
  /* HERO */
  .hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    text-align: center;
    padding: 8rem 1rem;
  }

  .hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(30%);
    z-index: 1;
    animation: cambioFondo 20s infinite;
  }
  
  @keyframes cambioFondo {
    0%, 100% {
      background-image: url('../imagenes/fondo-header-img.jpg');
    }
    33% {
      background-image: url('../imagenes/fondo-header-img2.jpg');
    }
    66% {
      background-image: url('../imagenes/fondo-header-img3.jpg');
    }
  }

  .hero__content {
    position: relative;
    z-index: 2;
  }
  .hero__title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
  }
  .hero__description {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
  }
  
  /*  PORTFOLIO */
  .portfolio {
    padding: 4rem 1rem;
    background-color: #f9f9f9;
  }
  .portfolio__title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
  }
  .portfolio__item {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto 3rem auto;
    background-color: #fff;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  }

  .portfolio__image {
    width: 100%;
    border-radius: 4px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .portfolio__image:hover {
    transform: scale(1.15); /* agranda un 15% */
  }

  .portfolio__info {
    text-align: left;
  }
  .portfolio__item-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
  }
  .portfolio__description {
    font-size: 1rem;
    color: #555;
  }
  .portfolio__buttons {
    margin-top: 1rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
  }
  
  /*  BOTONES  */
  .btn {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    font-size: 1rem;
    font-weight: bold;
    color: #fff;
    background-color: #414141;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
  }
  .btn:hover {
    background-color: #000;
  }
  .btn--secondary {
    background-color: #555;
  }
  .btn--secondary:hover {
    background-color: #333;
  }
  
  /*  MODAL  */
  .modal__toggle {
    display: none;
  }
  .modal {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
  }
  .modal__content {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    max-width: 800px;
    width: 90%;
    text-align: center;
    position: relative;
  }
  .modal__image {
    max-width: 100%;
    margin-top: 1rem;
    border-radius: 4px;
  }
  .modal__close {
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    font-size: 2rem;
    color: #333;
    cursor: pointer;
  }
  .modal__toggle:checked + label + .modal {
    display: flex;
  }
  
  /* FOOTER */
  .footer {
    text-align: center;
    padding: 2rem 1rem;
    background-color: #222;
    color: #fff;
    font-size: 0.9rem;
  }
  .footer__text {
    margin: 0;
  }
  
  /*  RESPONSIVE */
  @media (min-width: 768px) {

    .navbar__menu {
      position: static;
      transform: none;
      flex-direction: row;
      background: none;
      height: auto;
      padding: 1;
      gap: 1.5rem;
      display: flex;
      justify-content: flex-end;
    }
  
    .navbar__icon {
      display: none;
    }

    .portfolio__item {
      flex-direction: row;
      align-items: center;
    }
    .portfolio__image {
      width: 40%;
    }
    .portfolio__info {
      width: 60%;
      padding-left: 1.5rem;
    }
  }
  
  @media (max-width: 480px) {
  
    .navbar__icon {
      font-size: 1.8rem;
      color: #fff;
      cursor: pointer;
      z-index: 1000;
      display: block;
    }
  
    .hero__title {
      font-size: 2rem;
    }
    .hero__description {
      font-size: 1rem;
    }
    .portfolio__title {
      font-size: 1.5rem;
    }
    .portfolio__item-title {
      font-size: 1.2rem;
    }
  }
  