* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body{
    background-color: #F2EFE7;
    font-family: "Lato", sans-serif;;
}
header {
    background-color: #67AE6E;
    color: white;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    transition: top 0.3s ease-in-out;
  } 
  
main {
    margin-top: 8rem;
}      

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 3rem;
}

.logo img {
    height: 50px;
}

.navlinks {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.navlinks a {
    font-size: 1.1rem;
    text-decoration: none;
    color: white;
    transition: color 0.3s;
    font-weight: bold;
}

.navlinks a:hover {
    color: #328E6E;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    background: none;
    color: white;
    border: none;
    cursor: pointer;
}

/* 📱 Responsive */
@media (max-width: 768px) {
  .navlinks {
    position: absolute;
    top: 85%; /* ⬆️ Subimos el menú */
    left: 50%; /* centramos */
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    flex-direction: column;
    width: 85%;
    max-width: 300px;
    align-items: center;
    display: none;
    border-radius: 15px;
    overflow: hidden;
    padding: 1rem 0;

    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
  }

  .navlinks.active {
    display: flex;
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0); /* animación suave */
  }

  .navlinks li {
    width: 100%;
    text-align: center;
    padding: 1rem 0;
    border-bottom: 1px solid white;
  }

  .navlinks li:last-child {
    border-bottom: none;
  }

  .menu-toggle {
    display: block;
  }
}

.video-fondo {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
  }
  

  .productos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 2rem;
    gap: 2rem;
    z-index: 1;
    position: relative;
  }
  
  /* Cada producto */
  .productos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    padding: 8rem 2rem ;
    z-index: 1;
    position: relative;
  }
  
  .producto {
    background-color: #fbfbfb;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    padding: 2rem;
    width: 280px;
    max-width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease;
    flex: 1 1 280px; /* permite que se adapte */
  }
  
  .producto img {
    width: 100%;
    max-height: 200px;
    height: auto; /* la imagen se adapta */
    object-fit: contain; /* se ve completa sin recorte */
    border-radius: 12px;
    margin-bottom: 1rem;
  }
  
  .producto h3 {
    color: #121212;
    font-size: 1.2rem;
    margin: 0.5rem 0;
  }
  .producto a{
    text-decoration: none;
  }
  .precio {
    color: #67AE6E;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: bold;
  }
  
  .btn-carrito {
    background-color: #67AE6E;
    color: #000;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
  }
  
  .btn-carrito:hover {
    background-color: #328E6E;
  }
  
  /* Responsive */
  @media (max-width: 768px) {
    .producto {
      width: 90%;
    }
  }
  
  .about-iphone16 {
    background-color: #121212;
    color: #fbfbfb;
    padding: 3rem 1.5rem;
  }
  
  .contenido-about {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    flex-wrap: wrap;
  }
  
  .imagen-iphone {
    flex: 1 1 35%;
    margin-top: 0;           /* subir imagen */
    margin-left: -2rem;      /* acercar a la izquierda */
  }
  
  .imagen-iphone img {
    width: 80%;
    height: auto;
    display: block;
    border: none;
    box-shadow: none;
    border-radius: 0;
  }
  
  .texto-about {
    flex: 1 1 60%;
  }
  
  .texto-about h2 {
    font-size: 4rem;
    font-weight: bold;
    margin-bottom: 1rem;
  }
  
  .texto-about p {
    font-weight: bold;
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1rem;
  }
  
  /* Responsive */
  @media (max-width: 768px) {
    .contenido-about {
      flex-direction: column;
      text-align: center;
    }
  
    .imagen-iphone {
      margin-left: 3.5rem;
    
    }
  
    .texto-about h2 {
      font-size: 2.2rem;
    }
  
    .texto-about p {
      font-size: 1rem;
    }
  }

  footer{
    z-index: 30;
  }
  
  .footer {
      background-color: #121212;
      color: #E0E1DD;
      padding: 3rem 0;
      width: 100%;
      margin-top: auto;
  }
  
  .footer-container {
      width: 100%;
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 2rem;
      box-sizing: border-box;
  }
  
  .footer-columns {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 2rem;
      align-items: start;
      margin-bottom: 2rem;
  }
  
  .footer-column {
      transition: opacity 0.3s ease;
  }
  
  .footer-column:hover {
      opacity: 0.8;
  }
  
  .footer-column a {
      color: #778DA9;
      text-decoration: none;
      transition: color 0.2s ease;
      display: block;
      margin-bottom: 1%;
      padding: 0.5rem 0;
  }
  
  .footer-column a:hover {
      color: #ffffff;
  }
  
  .footer-column ul {
      list-style-type: none;
      padding: 0;
      margin: 0;
  }
  
  .footer-column li {
      margin-bottom: 0.8rem;
  }
  
  .footer-column h3 {
      margin-bottom: 2rem;
      font-size: 1.1rem;
      font-weight: 500;
      color: #ffffff;
  }
  
  @media (max-width: 900px) {
      .footer-columns {
          grid-template-columns: repeat(2, 1fr);
      }
  
      .footer-container {
          padding: 0 1.5rem;
      }
  }
  
  @media (max-width: 600px) {
  
  
      .footer-columns {
          grid-template-columns: 1fr;
          gap: 1.5rem;
      }
  
      .footer-column {
          text-align: left;
      }
  
      .footer-bottom {
          flex-direction: column;
          gap: 1.5rem;
      }
  
      .language-select {
          width: 100%;
          max-width: none;
      }
  
      .social-icons {
          width: 100%;
          justify-content: space-between;
      }
  }
  
  .social-icons {
      display: flex;
      gap: 1.5rem;
      align-items: center;
  }
  
  .social-icons a {
      color: #999;
      transition: all 0.3s ease;
      padding: 8px;
      border-radius: 50%;
      background-color: rgba(255, 255, 255, 0.1);
  }
  
  .social-icons a:hover {
      color: #ffffff;
      background-color: rgba(255, 255, 255, 0.2);
      transform: translateY(-3px);
  }
  
  .footer-bottom {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding-top: 2rem;
      border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
  


  #carrito-flotante {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #1a1a1a;
    color: white;
    border-radius: 50px;
    padding: 10px 20px;
    cursor: pointer;
    font-weight: bold;
    z-index: 999;
    box-shadow: 0 0 10px rgba(0,0,0,0.4);
  }
  
  #carrito-modal,
  #formulario-compra {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
  }
  
  #carrito-contenido,
  #formulario {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
  }
  
  .item-carrito {
    border-bottom: 1px solid #ccc;
    padding: 10px 0;
  }
  
  .oculto {
    display: none;
  }
  
  #formulario input,
  #formulario select,
  #formulario button {
    width: 100%;
    margin: 8px 0;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
  }
  