/* ----------------------------------------------------------------------
   Variables de Colores (convertidos a HEX o RGB):
   - Color 1: #FF0A42
   - Color 2: rgb(14,27,77) → #0E1B4D
   - Color 3: #FF8A1C
   - Color 4: #FFFFFF
---------------------------------------------------------------------- */
:root {
  --color1: #FF0A42;
  --color2: #0E1B4D;
  --color3: #FF8A1C;
  --color4: #FFFFFF;
  
  /* Tipografías */
  --font-primary: 'Montserrat', Arial, sans-serif;
  --font-playful: 'Fredoka One', cursive;
}

/* Ocultar scrollbars verticales */
html, body {
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none;
}
html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
}

/* Reset y fondo */
body {
  font-family: var(--font-primary);
  background-color: var(--color4);
  color: #333;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Secciones */
section {
  margin-bottom: 40px;
}

/* Bounce Animation */
@keyframes bounce {
  0% { transform: translateY(0); }
  30% { transform: translateY(-10px); }
  50% { transform: translateY(0); }
  70% { transform: translateY(-5px); }
  100% { transform: translateY(0); }
}
.bounce {
  animation: bounce 0.5s ease;
}

/* Banner */
.banner {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  background: url('fotos/banner.jpg') center/cover no-repeat, var(--color1);
  color: var(--color4);
}
.banner-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  flex-wrap: wrap;
}
.logo img {
  max-width: 150px;
}
.welcome {
  text-align: right;
  max-width: 600px;
  margin-right: 35px;
}
.welcome h1 {
  font-size: 2rem;
  margin-bottom: 10px;
}
.welcome p {
  font-size: 1.2rem;
  margin: 0;
}
.sub-menu {
  margin-top: 15px;
  width: 100%;
  text-align: center;
}
.sub-menu ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 15px;
  padding: 0;
  margin: 0;
}
.sub-menu ul li a {
  text-decoration: none;
  color: var(--color4);
  font-weight: bold;
  transition: color 0.3s ease;
}
.sub-menu ul li a:hover {
  color: var(--color3);
}

/* Shipping Bar */
.shipping-bar {
  width: 100%;
  background-color: var(--color1);
  color: var(--color4);
  padding: 10px 20px;
  text-align: center;
  font-family: var(--font-primary);
  font-size: 1.2rem;
  font-weight: bold;
}

/* Introducción */
.introduction {
  padding: 40px 20px;
  background: var(--color4);
  text-align: center;
}
.introduction h2 {
  font-family: var(--font-playful);
  font-size: 2.5rem;
  margin-bottom: 10px;
}
.introduction p {
  font-family: var(--font-playful);
  font-size: 1.5rem;
  margin: 0;
}

/* Logo decorativo */
.intro-logo {
  text-align: center;
  margin: 20px 0;
}
.intro-logo img {
  width: 350px;
  height: 350px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  opacity: 1;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.intro-logo img:hover {
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

/* Info Sections */
.info-sections {
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 20px;
  padding: 20px;
  background: var(--color4);
}
.info-box {
  position: relative;
  flex: 1;
  min-width: 280px;
  max-width: 32%;
  background: #f7f7f7;
  padding: 20px;
  text-align: center;
  transition: transform 0.3s ease;
  cursor: pointer;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.info-text {
  z-index: 2;
  position: relative;
  width: 100%;
  font-family: var(--font-playful);
}
.info-text h2 {
  font-size: 1.8rem;
  margin: 10px 0;
}
.info-text p {
  font-size: 1.2rem;
  margin: 0;
}
.info-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}
.info-box:hover .info-image,
.info-box:focus .info-image {
  opacity: 1;
}
.info-box:hover .info-text,
.info-box:focus .info-text {
  opacity: 0;
}

/* Dynamic Categories */
.dynamic-categories {
  padding: 40px 20px;
  background: var(--color4);
  text-align: center;
}
.dynamic-categories .section-title {
  font-family: var(--font-playful);
  font-size: 2.5rem;
  margin-bottom: 20px;
}

/* Categorías centradas */
.category {
  display: inline-block;
  margin: 20px auto;
  border: 1px solid #ddd;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.3s ease;
}
.category:hover {
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
}
.category-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px;
  background: #f0f0f0;
}
.category-header img {
  width: 60px;
  height: 60px;
  object-fit: cover;
}
.category-header h3 {
  margin: 0;
  font-family: var(--font-playful);
  font-size: 1.8rem;
}

/* Contenedor de productos: se ajusta al 100% del contenedor, centrado */
.category-products {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0 auto;
  width: 100%;
  max-width: calc(150px * 3 + 10px * 2); /* 470px en pantallas grandes */
}
.product-block {
  flex: 0 0 150px;
  background: #fff;
  padding: 10px;
  border: 1px solid #eee;
  border-radius: 8px;
  text-align: center;
  transition: transform 0.3s ease;
}
.product-block:hover {
  transform: scale(1.05);
}
.product-block img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 10px;
}
.product-block h4 {
  margin: 10px 0 5px;
  font-family: var(--font-playful);
  font-size: 1.4rem;
}
.product-block .price {
  font-weight: bold;
  margin-bottom: 10px;
  font-family: var(--font-primary);
  font-size: 1rem;
}

/* Móviles: En lugar de scroll horizontal, se muestran los productos en filas centradas */
@media (max-width: 600px) {
  .category-products {
    flex-wrap: wrap;
    overflow-x: hidden;
    justify-content: center;
  }
  .product-block {
    flex: 0 0 90%;
    margin: 0 auto;
  }
}

/* Carrusel: contenedor centrado, con ancho del 80% y esquinas redondeadas */
.carousel {
  position: relative;
  overflow: hidden;
  padding: 20px;
  background: var(--color2);
  width: 80%;
  max-width: 800px;
  margin: 0 auto;
  border-radius: 10px;
  text-align: center;
}
.carousel-container {
  display: flex;
  transition: transform 0.5s ease-in-out;
}
.carousel-item {
  min-width: 100%;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.carousel-item img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.3s ease;
}
.carousel-item:hover img {
  transform: scale(1.05);
}
.carousel-item h2 {
  margin: 10px 0 5px;
}
.carousel-item .price {
  margin-bottom: 10px;
  font-weight: bold;
}
.btn-shop {
  display: inline-block;
  padding: 10px 20px;
  background: var(--color1);
  color: var(--color4);
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s ease;
}
.btn-shop:hover {
  background: var(--color3);
}
.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  padding: 10px;
  cursor: pointer;
  font-size: 1.5rem;
  z-index: 10;
}
.carousel-control.prev {
  left: 10px;
}
.carousel-control.next {
  right: 10px;
}

/* Blog Section */
.blog-section {
  padding: 40px 20px;
  background: var(--color4);
  text-align: center;
}
.blog-title {
  font-family: var(--font-playful);
  font-size: 2.5rem;
  margin-bottom: 20px;
}
.blog-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.blog-block {
  background: #f7f7f7;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease;
}
.blog-block:hover {
  transform: scale(1.03);
}
.blog-image {
  width: 100%;
  height: 150px;
  object-fit: cover;
}
.blog-block h3 {
  font-family: var(--font-playful);
  font-size: 1.8rem;
  margin: 10px 0;
}
.blog-excerpt {
  padding: 0 10px 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  font-size: 1rem;
}
.blog-block.expanded .blog-excerpt {
  max-height: 200px;
}

/* Contenido Adicional */
.content {
  padding: 40px 20px;
  text-align: center;
}
.fade-in {
  opacity: 0;
  animation: fadeInAnimation 1s forwards;
}
@keyframes fadeInAnimation {
  to { opacity: 1; }
}

/* Formulario de Contacto */
.contact {
  padding: 40px 20px;
  background: var(--color1);
  color: var(--color4);
  text-align: center;
}
.contact form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}
.contact label {
  margin: 10px 0 5px;
  text-align: left;
}
.contact input,
.contact textarea {
  padding: 10px;
  border: none;
  border-radius: 5px;
  margin-bottom: 15px;
}
.contact button {
  padding: 10px;
  background: var(--color2);
  color: var(--color4);
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease;
}
.contact button:hover {
  background: var(--color3);
}

/* Footer */
footer {
  width: 100%;
  background: var(--color2);
  padding: 20px;
  color: var(--color4);
  position: relative;
}
.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.footer-content p {
  margin-bottom: 10px;
}
footer .sub-menu ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-bottom: 10px;
  padding: 0;
}
footer .sub-menu ul li a {
  text-decoration: none;
  color: var(--color4);
  font-weight: bold;
  transition: color 0.3s ease;
}
footer .sub-menu ul li a:hover {
  color: var(--color3);
}
.social-icons a {
  margin: 0 5px;
  display: inline-block;
}
.social-icons img {
  width: 24px;
  height: 24px;
}

/* Botón de WhatsApp */
.whatsapp-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
  z-index: 1000;
  transition: transform 0.3s ease;
}
.whatsapp-button:hover {
  transform: scale(1.1);
}
.whatsapp-button img {
  width: 30px;
  height: 30px;
}

/* Responsividad General */
@media (max-width: 1024px) {
  .banner-main {
    justify-content: center;
  }
  .welcome {
    text-align: center;
    margin-right: 0;
  }
  .shipping-bar, 
  .introduction {
    text-align: center;
  }
  .info-sections {
    justify-content: center;
  }
  .info-box {
    max-width: 90%;
    margin: 0 auto;
  }
  footer .sub-menu ul {
    justify-content: center;
  }
  /* Aumentar padding derecho en Banner, Shipping Bar y Footer */
  .banner, .shipping-bar, footer {
    padding-right: 40px;
  }
}

@media (max-width: 768px) {
  .banner-main {
    flex-direction: column;
    text-align: center;
  }
  .welcome {
    text-align: center;
    margin-top: 10px;
    margin-right: 20px; /* Ajuste extra en móviles si se requiere */
  }
  .sub-menu ul {
    flex-direction: column;
    gap: 10px;
  }
  .footer-content {
    flex-direction: column;
  }
  .social-icons {
    margin-top: 10px;
  }
  .info-sections {
    flex-direction: column;
  }
  /* En móviles, ajustar padding para asegurar lectura completa */
  .banner, .shipping-bar, footer {
    padding-right: 40px;
    padding-left: 20px;
  }
}
.carousel-item h2,
.carousel-item .price {
  color: var(--color4); /* var(--color4) equivale a blanco (#FFFFFF) */
}
