@import url('https://fonts.cdnfonts.com/css/tt-norms');

body {
    font-family: 'TT Norms', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    color: #333;
}

a {
    text-decoration: none;
    color: inherit;
    position: relative; /* Necesario para que ::after se posicione relativo al enlace */
    transition: font-size 0.3s ease; /* Transición suave para el tamaño de fuente */
  }
  
  /* Estilo para el nav horizontal */
  nav {
    display: flex;
    text-align: center;
    align-items: center;
    padding: 10px 20px;
    gap: 100px;
    height: 80px;
  
  }
    header{
  transition: 0.3s ease;
  border-bottom: solid 1px #ccc;
}
header:hover{
  box-shadow: 0 2px 40px rgba(0, 0, 0, 0.2); 
}
  .nav-links {
  display: flex;
  gap: 100px;
}
  
  .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: 23px; 
}

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;
}
.producto-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    padding: 20px;
    gap: 30px;
}

.producto-imagen img {
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.producto-detalles {
    max-width: 500px;
    text-align: left;
}

.producto-detalles h1 {
    font-size: 32px;
    color: #000;
}

.producto-detalles p {
    font-size: 18px;
    line-height: 1.6;
}

.producto-detalles ul {
    list-style: none;
    padding: 0;
}

.producto-detalles ul li {
    font-size: 16px;
    margin: 5px 0;
}

.precio {
    font-size: 28px;
    color: #43b600;
    margin: 20px 0;
}

.boton-comprar {
    background-color: #43b600;
    color: #fff;
    font-size: 18px;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.boton-comprar:hover {
    background-color: #36a000;
}

footer {
    text-align: center;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    margin-top: 50px;
}

footer p {
    font-size: 14px;
    color: #777;
}
 
.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;
}


/* Carrusel */
.carrusel {
    width: 600px;
    height: 400px;
    margin: 20px auto;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.slides {
    display: flex;
    transition: transform 0.6s ease;
}

.slide {
    min-width: 100%;
    height: 100%;
    position: absolute;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Navegación manual */
.navigation-manual {
    position: absolute;
    width: 100%;
    bottom: 10px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.manual-btn {
    width: 10px;
    height: 10px;
    background-color: #fff;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.manual-btn.active {
    background-color: #43b600;
}

.manual-btn:hover {
    background-color: #43b600;
}

@media (max-width: 480px) {
    nav{
        padding-bottom: 200px;
    }
  .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;
    justify-content: center;
    gap: 20px;
    font-size: 14px;
    margin-bottom: 8px;
  }
  nav {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }
  nav img{
    width: 200px;
  }
  .contactos {
    display: none !important;
  }
}
