body {
  margin: 0;
  padding: 0;
  font-family: sans-serif;
  background: #f1efef;
}

.parent {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 30px 150px 0px 0px 600px;
  gap: 10px;
}

/* DIV 1 "SOCALO SUPERIOR" */

.div1 {
  grid-column: span 4 / span 4;
  background-color: black;
  height: 30px;
  display: flex;
  justify-content: center; /* ✅ centra horizontalmente */
  align-items: center;     /* ✅ centra verticalmente */
  gap: 20px;  
}

.telegram-icon {
  color: #00bfff;  /* azul telegram */
  font-size: 24px;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.whatsapp-icon {
  color: #25D366; /* verde whatsapp */
  font-size: 24px;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.telegram-icon:hover,
.whatsapp-icon:hover {
  transform: scale(1.3);
}
  
/* DIV 2 "LOGO" */
  
.div2 {
  grid-row-start: 2;
  display: flex;
  justify-content: center;
  align-items: initial;
}

.logo {
  width: 210px;
  height: 210px;
  object-fit: contain; /* o 'cover', según lo que busques */
}

/* DIV 3 "BUSCADOR */

.div3 {
  grid-column: span 2 ;
  grid-row-start: 2;
  display: flex;
  justify-content: center;  /* Centrado horizontal */
  align-items: center;      /* Centrado vertical */
}

.search-container {
  position: relative;
  width: 450px;
}

.search-input {
  width: 100%;
  height: 40px;
  padding: 0.5rem 2.5rem 0.5rem 1rem; /* espacio para la lupa a la derecha */
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.search-icon {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  font-size: 1.2rem;
  color: #888;
}


/* DIV 4 "MENU DESPLEGABLE */

.div4 {
  grid-column-start: 4;
  grid-row-start: 2;
  position: relative;
  display: flex;
  justify-content: center;
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropbtn {
  background-color: #000000;
  color: white;
  width: 250px;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.dropbtn {
  background-color: #000000;
  color: white;
  width: 250px;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  justify-content: space-between; /* Separar texto y flecha */
  align-items: center;
}

.arrow {
  display: inline-block;
  margin-left: 10px;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid white; /* Color de la flecha */
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 20%;  /* Para que aparezca justo debajo del botón */
  left: 0;
  background-color: #333;
  min-width: 250px;
  border-radius: 4px;
  z-index: 1;
}

.dropdown-content a {
  color: white;
  padding: 0.5rem 1rem;
  text-decoration: none;
  display: block;
}

.dropdown-content a:hover {
  background-color: #555;
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* LINEA DIVISORA */

.linea-divisoria {
  grid-column: span 4;
  grid-row-start: 3; /* 💡 Esto la ubica justo después del logo/buscador/menu */
  border-bottom: 2px solid #ccc;
  margin: 0 10px;
}

/* LINEA DIVISORA1 */

.linea-divisoria1 {
  grid-column: span 4;
  grid-row-start: 4; /* 💡 Esto la ubica justo después del logo/buscador/menu */
  border-bottom: 2px solid #ccc;
  margin: 0 10px;
}

/*DIV 5 "PRIMER PRODUCTO" */
.div5 {
  grid-column: 1 / span 2;
  grid-row-start: 5;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%; /* 🚀 misma altura que la fila del grid (410px) */
}

.carousel {
  width: 80%;
  height: 98%; /* opcional, para dejar margen interno */
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 1 / 1; /* mantiene cuadrado */
}

.slides {
  display: flex;
  width: calc(10 * 10%);
  height: 100%;
  animation: slideAnimation 60s ease-in-out infinite;
}

.slide {
  width: 100%;
  height: auto;
  flex-shrink: 0;
  object-fit: contain; /* ✅ para que no se corte */
}

@keyframes slideAnimation {
  0%, 4.5%    { transform: translateX(0%); }
  4.6%, 9%    { transform: translateX(-100%); }
  9.1%, 13.5% { transform: translateX(-200%); }
  13.6%, 18%  { transform: translateX(-300%); }
  18.1%, 22.5%{ transform: translateX(-400%); }
  22.6%, 27%  { transform: translateX(-500%); }
  27.1%, 31.5%{ transform: translateX(-600%); }
  31.6%, 36%  { transform: translateX(-700%); }
  36.1%, 40.5%{ transform: translateX(-800%); }
  40.6%, 45%  { transform: translateX(-900%); }
  45.1%, 49.5%{ transform: translateX(-1000%); }
  49.6%, 54%  { transform: translateX(-1100%); }
  54.1%, 58.5%{ transform: translateX(-1200%); }
  58.6%, 63%  { transform: translateX(-1300%); }
  63.1%, 67.5%{ transform: translateX(-1400%); }
  67.6%, 72%  { transform: translateX(-1500%); }
  72.1%, 76.5%{ transform: translateX(-1600%); }
  76.6%, 81%  { transform: translateX(-1700%); }
  81.1%, 85.5%{ transform: translateX(-1800%); }
  85.6%, 90%  { transform: translateX(-1900%); }
  90.1%, 94.5%{ transform: translateX(-2000%); }
  94.6%, 100% { transform: translateX(-2100%); }
}

/* --------------------------- */

/* DIV 6 */

.div6 {
  grid-column: 3 / span 2;
  grid-row-start: 5;
  display: flex;
  flex-direction: column; /* para apilar contenido verticalmente */
  justify-content: center;
  gap: 3px; /* espacio entre elementos */
  margin: 5px;
  border-radius: 12px;
  background-color: white;
  padding: 20px; /* espacio interior */
  box-shadow: 0 40px 30px -20px rgba(0, 0, 0, 0.35);
}

.nombre-producto {
  font-size: 1.4rem;
  font-weight: bold;
  margin: 0;
}

.precio-producto {
  color: #4db5cb;
  font-size: 1.2rem;
  margin: 0;
}


.detalle-producto {
  font-size: 1rem;
  color: #333;
  column-count: 1;        /* Número de columnas */
  column-gap: 1.5rem;     /* Separación entre columnas */
  /* Opcional para evitar que una línea quede partida */
  /* break-inside: avoid; */
}

.resaltado {
  color: #e67e22; /* naranja */
  font-weight: bold;
  font-size: 1.1rem;
  text-align: center;
  margin: 10px 0;
}

/* Botones */
.button-whatsapp,
.button-paypal {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 6px;
  border: none;
  color: white;
  cursor: pointer;
  font-weight: bold;
  font-size: 1rem;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.3s ease;
}


.botones-container {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: start;
}

.boton-whatsapp,
.boton-paypal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 6px;
  font-weight: bold;
  font-size: 1rem;
  gap: 8px;
  min-width: 220px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.boton-whatsapp {
  background-color: #25D366;
  color: white;
}

.boton-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

.boton-paypal {
  background-color: #FFC439;
  color: #003087;
}

.boton-paypal:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 48, 135, 0.3);
}

.boton-whatsapp img,
.boton-paypal img {
  width: 24px;
  height: 24px;
}


@media (max-width: 1150px) {
  .parent {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    padding: 0 10px; /* pequeño margen lateral */
  }

  .div1, .div2, .div3, .div4, 
  .linea-divisoria, .linea-divisoria1, 
  .div5, .div6 {
    width: 100%;
    max-width: 1150px; /* o el tamaño que quieras */
  }

  .div2 {
    height: 250px;
    justify-content: center;
  }

  .logo {
    width: 300px;
    height: auto;
  }

  .div3 {
    justify-content: center;
    margin-left: 0;
  }

  .search-container {
    width: 100%;
    max-width: 400px;
  }

  .div4 {
    justify-content: center;
  }

  .dropdown {
    width: 100%;
    max-width: 400px;
  }

  .dropbtn {
    width: 100%;
  }

  .dropdown-content {
    min-width: 100%;
  }

  .div5, .div6 {
    box-shadow: 0 20px 15px -10px rgba(0,0,0,0.25);
    padding: 10px;
  }

  .carousel {
    width: 100%;
    aspect-ratio: 1 / 1;
  }

  .div6 {
    text-align: left;
  }

  .detalle-producto {
    column-count: 1;
  }

  .botones-container {
    justify-content: center;
  }
}
