@import url('https://fonts.cdnfonts.com/css/tt-norms');

@keyframes fadeIn {
  from {
    opacity: 0; /* Comienza invisible */
    transform: translateY(20px); /* Comienza desplazado hacia abajo */
  }
  to {
    opacity: 1; /* Termina completamente visible */
    transform: translateY(0); /* Termina en su posición original */
  }
}

html{
  scroll-behavior: smooth;
  background-color: #f5f5f5; /* Color de fondo de la página */
  scroll-behavior: smooth;
}
body {
  animation: fadeIn 1s ease-in-out; 
  margin: 0; 
  padding: 0; 
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  position: relative;
  transition: font-size 0.3s ease;
}


nav{
  display: flex;
  text-align: center;
  align-items: center;
  padding: 10px 20px;
  gap: 100px;
  height: 80px;
}

  
  .carrito{
    margin: 10px;
    display: inline-block;
    transition: transform 0.3s ease;
  }

  .nav-links {
    display: flex;
    gap: 100px;
    padding-right: 500px;
  }

  .carrito:hover{
   animation: balanceo 0.6s ease-in-out;
  }
 
  @keyframes balanceo {
  0%   { transform: rotate(0deg); }
  25%  { transform: rotate(-15deg); }
  50%  { transform: rotate(15deg); }
  75%  { transform: rotate(-10deg); }
  100% { transform: rotate(1deg); }
}
header{
  transition: 0.3s ease;
  border-bottom: solid 1px #ccc;
}
header:hover{
  box-shadow: 0 2px 40px rgba(0, 0, 0, 0.2); 
}

nav a:not(.carrito):not(:has(img)) {
  color: #333;
  font-family: 'TT Norms';
  font-size: 20px;
}

nav a:not(.carrito):not(:has(img)):hover {
  font-size: 25px; 
}

nav a:not(.carrito):not(:has(img))::after {
  content: ""; 
  position: absolute; 
  left: 0;
  bottom: -5px;
  width: 0; 
  height: 2px; 
  background-color: #333;
  transition: width 0.3s ease; 
  z-index: -1;
}

nav a:not(:has(img)):hover::after {
  width: 100%; 
}

.imagen_titular img{
  position: relative;
  left: 43px;
}









/* estilo cuerpo*/


main{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}
.carrito-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
}
.carrito-titulo{
    font-family: 'TT Norms', sans-serif;
    font-size: 36px;
    color: #333;
    margin-bottom: 20px;
}
.carrito-lista {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
}
.carrito-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    border-bottom: 1px solid #eee;
}
.carrito-detalle{
      margin-right: 100px;
}
.carrito-detalle img {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100px;

}
span{
    font-family: 'TT Norms', sans-serif;
    font-size: 18px;
    color: #333;
}
button{
    margin: 20px;
}
.carrito-eliminar {
    background-color: #ff4d4d;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.carrito-eliminar:hover {
    background-color: #a00c0c; 
}
.carrito-total{
    font-family: 'TT Norms', sans-serif;
    font-size: 24px;
    color: #333;
    margin-top: 20px;
    text-align: center;
}
.carrito-comprar{
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #00d131d3;  
    color: rgb(0, 0, 0);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'TT Norms', sans-serif;
}
.carrito-comprar:hover {
    background-color: #00b300; 
    transition: background-color 0.3s ease;

}
/* datos de la compra */

.datos-pago {
    background-color: white;
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    font-family:  'TT Norms', sans-serif;
    border-radius: 8px;
    z-index: 1;
}

.formulario-pago {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);  
    border-radius: 8px;
    z-index: 2;
}
.parte-arriba{
    display: flex;
    flex-direction: column;
    width: 345px;
    align-items: center;
    gap: 20px;
    border-radius: 8px;

}
.img-tarjeta img{
      transition: transform 0.3s ease;
}
.img-tarjeta img:hover{
    transform: scale(1.1);
    transform: translate( 0px, -5px);
}

.datos-tarjeta{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px;
    width: 300px;
}
.numeros{
  border-radius: 5px;
  border: 1px solid #ccc;
  width: 60px;
  padding: 5px 5px;
  font-family: 'TT Norms', sans-serif;
}
.input-icon {
  position: relative;
}

.input-icon svg {
  position: absolute;
  left: 40px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: #6c757d
}

.input-icon-2{
  position: relative;
}
.input-icon-2 svg {
  position: absolute;
  left: 150px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: #6c757d
}

input:not(.numeros) {
  border-radius: 5px;
  border: 1px solid #ccc;
  padding: 10px 15px;
  font-family: 'TT Norms', sans-serif;
}
.bi-bi-paypal{
  color: #ffffff;
  transition: 0.3s ease;
}
.bi-bi-paypal:hover{
  color: #002F86;
  transform: translate( 0px, -5px);
}
.paypal{
  background-color: #009CDE;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 20px;
  border-radius: 8px;
}
.paypal input:hover{
  background-color: #ffffff;
  color: #009CDE;
  transition: 0.3s ease;

}
.pago-paypal input{
  background-color: #002F86;
  color: #ffffff;
  border: none;
  padding: 10px;
  border-radius: 5px;
  font-family: 'TT Norms', sans-serif;
}
#ingrese::placeholder{
  color: #009CDE;
}
.pago-paypal select{
  border: none;
  background-color: #ffffff;
  color: #002F86;
  border: none;
  padding: 10px;
  border-radius: 5px;
  font-family: 'TT Norms', sans-serif;
}

.boton-comprar{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #00d131d3;  
    color: rgb(0, 0, 0);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-family: 'TT Norms', sans-serif;
}
.boton-comprar:hover {
    background-color: #00b300; 
}

footer {
  text-align: center;
  padding: 10px;
  background-color: #ffffff;
  box-shadow: 0 -1px 10px rgba(0, 0, 0, 0.2);
  position: relative;
  top: 100px; 
}

footer p {
  font-family: 'TT Norms', sans-serif; 
  font-size: 14px;
  color: #000000;
}


.contactos{
  font-family: 'TT Norms', sans-serif; 
  font-size: 20px; 
  color: #333; 
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 20px;
  color: #000000;
  margin-top: 50px;
}

/* responsive la parte de arriba*/




@media (max-width: 768px) {
  nav {
    flex-direction: column;
    gap: 20px;
    height: auto;
    align-items: flex-start;
    padding: 10px;
  }
  .contactos {
    left: 0;
    margin-top: 10px;
    font-size: 16px;
  }
  .inf_principal {
    margin-top: 40px;
    width: 98%;
    left: 0;
  }
  .texto_principal {
    width: 98%;
    font-size: 14px;
    left: 0;
  }
  .imagen_principal{
    z-index: 1;
    position: relative;
    top: 60px;
  }
  .imagen_secundaria{
    z-index: 0;
    position: relative;
    top: -200px;
    rotate: 45deg;
  }
  .boton-productos {
    left: 0;
    margin: 0 auto;
    display: block;
  }
  .tarjeta_nvidia,
  .tarjeta_amd {
    width: 95%;
    left: 0;
    margin: 20px auto;
    padding: 10px;
  }
  .texto_nvidia,
  .texto_amd {
    width: 98%;
    padding-left: 0;
    font-size: 14px;
  }
  .titulo_nvidia h2,
  .titulo_amd h2 {
    font-size: 28px;
  }
  .seleccion {
    width: 100px;
    font-size: 16px;
    padding: 10px;
  }
  .nav-graficas {
    gap: 20px;
    flex-direction: column;
    height: auto;
    padding: 10px 0;
  }
  .parte-inferior {
    height: auto;
    padding-bottom: 20px;
  }
  .tarjetas {
    height: auto;
    flex-direction: column;
    align-items: center;
  }
  h1 {
    font-size: 24px;
    right: 0;
    margin: 0 auto;
  }
  .aire {
    height: 40px;
  }
}

@media (max-width: 480px) {
  body, html {
  overflow-x: hidden;
}
  .nav-links:hover{
    font-size: 20px;
  }
   .nav-links {
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    width: 400px;
    padding-right: 0;
    margin: 10px;
  }

  .contactos {
    display: flex;
    flex-direction: row;
    align-content: end;
    gap: 20px;
    font-size: 14px;
    position: relative;
    right: 50px;
  }
  nav {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }
  nav img{
    padding-bottom: 20px;
  }
.hide-on-mobile { /* esta vara es para ocultar el texto de ins y correo */
    display: none;
  }
 
  main{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.carrito-detalle{
    margin-right: 5px;
}
.carrito-b-p{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    font-family:  'TT Norms', sans-serif;
}
}


