* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #1b2838;
    color: #c6d4df;
}

header {
    background-color: #171a21;
    padding: 1rem;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 20px; /* Espacio entre el logo y el texto */
}

.logo {
    background-image: url('logo/yokaflair.png');
    background-size: cover;
    width: 150px;
    height: 150px;
    transition: background-color 0.3s ease;
}

.texto {
    font-size: 40px;
    font-family: 'Arial', sans-serif;
    background: linear-gradient(90deg,#03fa7e,#6e03fa);
    /* #ff0000, #ffff00, #ff00f3,#0033ff,#ff00c4,#ff0000); */
    background-size: 400%;
    word-spacing: 5px;
    -webkit-text-fill-color: transparent;
    -webkit-background-clip: text;
    animation: animate 10s linear infinite; 
}

@keyframes animate {
    0% { 
    background-position: 0% 50%; 
    }
    100% { 
    background-position: 400%; 
    }
}
nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    text-decoration: none;
    font-size: 16px;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 5px;
    transition: all 0.3s ease;
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

nav ul li:nth-child(1) a {
    background-image: linear-gradient(to right, #11998e, #38ef7d);
}

nav ul li:nth-child(2) a {
    background-image: linear-gradient(to right, #11998e, #38ef7d);
}

nav ul li:nth-child(3) a {
    background-image: linear-gradient(to right, #11998e, #38ef7d);
}

nav ul li:nth-child(4) a {
    background-image: linear-gradient(to right, #11998e, #38ef7d);
}

nav ul li a::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-image: inherit;
    visibility: hidden;
    transform: scaleX(0);
    transition: all 0.3s ease-in-out;
}

nav ul li a:hover {
    background-position: right center;
}

nav ul li a:hover::before {
    visibility: visible;
    transform: scaleX(1);
}

.navbar {
    background-color: #171a21; /* Azul de fondo */
    color: white;
    padding: 10px 20px;
  }
  
  .navbar nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .navbar ul {
    list-style: none;
    display: flex;
    gap: 20px;
  }
  
  .navbar ul li a {
    color: white;
    text-decoration: none;
    font-size: 14px;
  }

  /* From Uiverse.io by LightAndy1 */ 
.group {
    display: flex;
    line-height: 28px;
    align-items: center;
    position: relative;
    max-width: 190px;
  }
  
  .input {
    font-family: "Montserrat", sans-serif;
    width: 100%;
    height: 45px;
    padding-left: 2.5rem;
    box-shadow: 0 0 0 1.5px #2b2c37, 0 0 25px -17px #000;
    border: 0;
    border-radius: 0px;
    background-color: #16171d;
    outline: none;
    color: #bdbecb;
    transition: all 0.25s cubic-bezier(0.19, 1, 0.22, 1);
    cursor: text;
    z-index: 0;
  }
  
  .input::placeholder {
    color: #bdbecb;
  }
  
  .input:hover {
    box-shadow: 0 0 0 2.5px #2f303d, 0px 0px 25px -15px #000;
  }
  
  .input:active {
    transform: scale(0.95);
  }
  
  .input:focus {
    box-shadow: 0 0 0 2.5px #2f303d;
  }
  
  .search-icon {
    position: absolute;
    left: 1rem;
    fill: #bdbecb;
    width: 1rem;
    height: 1rem;
    pointer-events: none;
    z-index: 1;
  }
  

main {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

.product-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 20px;
}

.product-card {
  background-color: #171a21;
  border: 1px solid #38ef7d;
  border-radius: 8px;
  width: 250px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
}

.product-card:hover {
  transform: scale(1.05);
}

.badge {
  background-color: #22c55e;
  color: white;
  font-size: 12px;
  font-weight: bold;
  padding: 5px 10px;
  position: absolute;
  margin: 10px;
  border-radius: 8px;
}

.image-container {
  text-align: center;
  padding: 20px;
}

.image-container img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.details {
  padding: 15px;
  text-align: center;
}

.details h4 {
  margin: 10px 0;
  font-size: 16px;
  color: #333;
}

.details p {
  margin: 5px 0;
  color: #666;
}

.price {
  margin: 10px 0;
}

.current-price {
  color: #e63946;
  font-weight: bold;
  font-size: 18px;
}

.old-price {
  text-decoration: line-through;
  color: #999;
  margin-left: 5px;
}

.discount {
  background-color: #e63946;
  color: white;
  padding: 2px 5px;
  font-size: 12px;
  border-radius: 4px;
  margin-left: 5px;
}

button {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

button:hover {
  background-color: #0056b3;
}

.product-link {
  text-decoration: none;
  color: inherit;
  display: contents;
}

.footer {
  font-family: Arial, sans-serif;
  padding: 20px;
  background-color: #171a21;
  border-top: 1px solid #eee;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 50px;
  width: auto;
}

.social-icons {
  display: flex;
  gap: 20px;
  align-items: center;
}

.social-icons a {
  color: #ffffff;
  text-decoration: none;
}

.social-icon {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.footer-links {
  padding: 10px 0;
  text-align: center;
  font-size: 14px;
  color: #666;
}

.footer-links a {
  color: #666;
  text-decoration: none;
  margin: 0 10px;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #001C3D;
  text-decoration: underline;
}

.social-icons a:hover{
  color: #007bff;
  transition: all 1s ease;
}

.copyright {
  font-size: 12px;
  color: #999;
}

/* Responsive design */
@media (max-width: 768px) {
  .footer-container {
      flex-direction: column;
      gap: 20px;
  }
  
  .social-icons {
      flex-wrap: wrap;
      justify-content: center;
  }
  
  .footer-links {
      display: flex;
      flex-direction: column;
      gap: 10px;
  }
  
  .footer-links a {
      margin: 5px 0;
  }
}

/* Estilos para la sección de noticias */
.news-section {
  background-color: #1b2838;
  padding: 2rem;
  margin: 2rem 0;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.news-section h2 {
  color: #ffffff;
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 2rem;
}

.news-carousel {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 400px;
}

.news-container {
  display: flex;
  transition: transform 0.5s ease;
}

.news-item {
  flex: 0 0 100%;
  padding: 1rem;
  background-color: #2a3f5f;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.news-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.news-item h3 {
  color: #ffffff;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.news-item p {
  color: #cccccc;
  font-size: 0.9rem;
}

.carousel-controls {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

.carousel-controls button {
  background-color: #4a5d7e;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  margin: 0 0.5rem;
  cursor: pointer;
  font-size: 1.2rem;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.carousel-controls button:hover {
  background-color: #5a6d8e;
}

/* Estilos existentes ... */

.product-details {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.product-info {
  flex: 1;
  min-width: 300px;
  margin-right: 2rem;
}

.product-info img {
  max-width: 100%;
  height: auto;
}

.product-text {
  margin-top: 1rem;
}

.product-text h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.product-text .price {
  font-size: 1.5rem;
  font-weight: bold;
  color: #e63946;
  margin-bottom: 1rem;
}

.product-text ul {
  list-style-type: none;
  padding: 0;
}

.product-text li {
  margin-bottom: 0.5rem;
}

.payment-section {
  flex: 1;
  min-width: 300px;
}

.payment-section h2 {
  margin-bottom: 1rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
}

.form-group input {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.form-row {
  display: flex;
  justify-content: space-between;
}

.form-row .form-group {
  width: 48%;
}

.buy-button {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: #e63946;
  color: white;
  text-decoration: none;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
}

.buy-button:hover {
  background-color: #c62f3b;
}


@media screen and (max-width: 1200px) {
  .header-content,
  main,
  .product-details,
  .footer-container {
      padding: 0 15px;
  }
}

@media screen and (max-width: 768px) {
  .header-content {
      flex-direction: column;
      align-items: center;
  }

  .texto {
      font-size: 30px;
      text-align: center;
  }

  nav ul {
      flex-direction: column;
      align-items: center;
  }

  nav ul li {
      margin: 0.5rem 0;
  }

  .product-details {
      flex-direction: column;
  }

  .product-info,
  .payment-section {
      width: 100%;
      margin-right: 0;
  }

  .form-row {
      flex-direction: column;
  }

  .form-row .form-group {
      width: 100%;
  }
}

@media screen and (max-width: 480px) {
  .logo {
      width: 100px;
      height: 100px;
  }

  .texto {
      font-size: 24px;
  }

  .product-card {
      width: 100%;
  }

  .group {
      max-width: 100%;
  }

  .input {
      width: 100%;
  }

  .social-icons {
      flex-direction: column;
      align-items: center;
  }
}