/* ==========================
   FUENTES Y ESTILOS GENERALES
========================== */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
}

/* ========================== ENCABEZADO ========================== */
header {
  background: radial-gradient(circle at center, #8b1c1c, #c53333, #ff4d00);
  background-size: 200% 200%;
  animation: animarDegrade 10s ease infinite;
  color: white;
  padding: 1.5rem 2rem;
  border-bottom: 4px solid #ff4d00;
}

@keyframes animarDegrade {
  0% { background-position: 50% 50%; }
  50% { background-position: 100% 100%; }
  100% { background-position: 50% 50%; }
}

header h1 {
  margin: 0;
}

header > div:first-of-type {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.5rem;
}

header nav a {
  margin-right: 1rem;
  text-decoration: none;
  color: #333;
}

/* ====== Segunda fila: logo, título, búsqueda e íconos ====== */
.header-mid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem 0;
}

.logo-izquierda img {
  height: 100px;
}

.busqueda-contenedor {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  min-width: 300px;
}

.busqueda-contenedor h1 {
  margin: 0 0 0.5rem 0;
  font-size: 2rem;
  color: white;
}

.buscador {
  display: flex;
  gap: 0.5rem;
  width: 100%;
  justify-content: center;
}

.buscador input[type="text"] {
  padding: 0.7rem 1rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  width: 100%;
  max-width: 500px;
}

.buscador button {
  padding: 0.7rem 1rem;
  font-size: 1rem;
  background-color: #ff4d00;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.buscador button:hover {
  background-color: #d43f00;
}

.icons {
  display: flex;
  gap: 1rem;
  font-size: 1.5rem;
}

/* ====== Menú principal ====== */
header > nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #fff5;
}

nav a {
  display: inline-block;
  padding: 0.5rem 1rem;
  margin: 0 0.2rem;
  text-decoration: none;
  color: white;
  font-family: "Genos", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  font-style: normal;
  letter-spacing: 0.5px;
  transition: transform 0.1s ease, box-shadow 0.1s ease, color 0.1s ease, font-style 0.1s ease;
  border-radius: 8px;
}

nav a:hover {
  transform: translateY(-4px);
  box-shadow: 0 9px 20px rgba(0, 0, 0, 0.2);
  background-color: rgba(56, 1, 1, 0.15);
  color: #ffd6a0;
  font-style: italic;
}




/* ==========================
   SECCIÓN PRODUCTOS (MODIFICADO)
========================== */
main section {
  padding: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

article {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 500px;
  padding: 1rem;
  border: 1px solid #ccc;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  background-color: white;
  transition: transform 0.2s;
}

article:hover {
  transform: scale(1.02);
}

article img {
  max-height: 180px;
  object-fit: contain;
  margin: 0 auto 1rem auto;
  display: block;
  width: auto;
}

article h3,
article p {
  margin: 0.5rem 0;
  text-align: center;
}

article .ver-mas {
  margin-top: auto;
  padding: 10px 15px;
  background-color: #c53333;
  color: white;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}

article .ver-mas:hover {
  background-color: #a82929;
}

/* ==========================
   VISTA DETALLE DEL PRODUCTO
========================== */
#vista-detalle {
  display: flex;
  justify-content: center;
  padding: 2rem;
  background-color: #f9f9f9;
}

.detalle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  max-width: 900px;
  width: 100%;
}

.detalle form textarea {
  resize: none;
}

.detalle img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

.detalle h2 {
  margin-top: 0;
  color: #c53333;
}

.detalle p {
  font-size: 1.1rem;
  margin: 0.5rem 0;
}

.form-detalle {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  padding: 1.5rem;
  background-color: #f3f3f3;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.95rem;
  color: #333;
}

.form-group input,
.form-group textarea {
  padding: 0.9rem 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.2s ease-in-out;
  background-color: #fff;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #c53333;
  outline: none;
  box-shadow: 0 0 0 2px rgba(197, 51, 51, 0.15);
}

.btn-submit {
  align-self: flex-start;
  background-color: #c53333;
  color: white;
  padding: 0.9rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-submit:hover {
  background-color: #a82929;
}

.detalle > div > button {
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  border: 1px solid #ccc;
  background: none;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.2s ease;
}

.detalle > div > button:hover {
  background-color: #f0f0f0;
}

/* ==========================
   TIPOGRAFÍA
========================== */
h1, h2, h3 {
  font-family: 'Kanit', sans-serif;
  font-weight: 500;
}

h4, h5, h6 {
  font-family: "Genos", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: italic;
}

/* ==========================
   FOOTER
========================== */
footer {
  background-color: #333;
  color: white;
  padding: 2rem 1rem;
  text-align: center;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

footer section {
  text-align: left;
}

footer h4,
footer h3 {
  margin-bottom: 0.5rem;
}

footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
}

footer ul li {
  margin: 0.25rem 0;
}

footer a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.2s;
}

footer a:hover {
  color: #f80707;
  text-decoration: underline;
}

footer > p {
  grid-column: 1 / -1;
  margin-top: 1rem;
  font-size: 0.9rem;
  text-align: center;
}

/* ==========================
   GALERÍA DETALLE
========================== */
.galeria-detalle {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.galeria-detalle img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.galeria-btn {
  position: absolute;
  background: rgba(0, 0, 0, 0.4);
  border: none;
  color: rgb(165, 0, 0);
  font-size: 2.5rem;
  cursor: pointer;
  padding: 0.4rem 0.8rem;
  z-index: 2;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 50%;
  transition: background 0.3s;
}

#anterior-img {
  left: 10px;
}

#siguiente-img {
  right: 10px;
}

.galeria-btn:hover {
  background: rgba(0, 0, 0, 0.7);
  transform: scale(1.1) translateY(-50%);
}
/* Agrandar imagen solo para cards con clase*/

.img-1 img {
  max-height: 250px ; /* ajustá este valor como quieras */
  object-fit: contain;
}
.img-1 img {
  transition: transform 0.3s ease;
}

.img-1:hover img {
  transform: scale(1.5);
}

.img-2 img {
  max-height: 240px ; /* ajustá este valor como quieras */
  object-fit: contain;
}
.img-2 img {
  transition: transform 0.3s ease;
}

.img-2:hover img {
  transform: scale(1.1);
}

.img-3 img {
  max-height: 190px ; /* ajustá este valor como quieras */
  object-fit: contain;
}
.img-3 img {
  transition: transform 0.3s ease;
}
.img-3:hover img {
  transform: scale(1.2);
}
.img-4 img {
  max-height: 157px ; /* ajustá este valor como quieras */
  object-fit: contain;
}
.img-4 img {
  transition: transform 0.3s ease;
}
.img-4:hover img {
  transform: scale(1.3);
}
.marcas-container {
  padding: 2rem;
  text-align: center;
}

.lista-marcas {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.marca-btn {
  background-color: #222;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.marca-btn:hover {
  background-color: #444;
}

.volver-btn {
  margin-top: 2rem;
  padding: 0.6rem 1.5rem;
  background-color: #c53333;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.volver-btn:hover {
  background-color: #a82929;
}
/* ==========================
   SLIDER DESTACADO
========================== */
.slider-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 350px;
  background: #f5f5f5;
}

.slider {
  display: flex;
  transition: transform 0.5s ease-in-out;
  height: 100%;
}

.slide {
  min-width: 100%;
  position: relative;
  display: none;
  justify-content: center;
  align-items: center;
}

.slide.active {
  display: flex;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-text {
  position: absolute;
  color: white;
  text-shadow: 1px 1px 5px black;
  top: 20%;
  left: 10%;
  max-width: 50%;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.4);
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem 1rem;
  z-index: 10;
}

.slider-btn.prev {
  left: 10px;
}

.slider-btn.next {
  right: 10px;
}

.slider-btn:hover {
  background: rgba(0,0,0,0.6);
}
/* ========================== 
   BOTÓN FLOTANTE WHATSAPP 
========================== */
.whatsapp-float {
  position: fixed;
     width: 65px;
  height: 65px;
  bottom: 20px;
  right: 20px; /* Cambiá a left: 20px si lo querés a la izquierda */
  background-color: #25d366;
  color: white;
  font-size: 1.8rem;
  padding: 12px 15px;
  border-radius: 50%;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  transition: transform 0.2s ease;
}

.whatsapp-img {
  width: 65px;
  height: 65px;
  object-fit: contain;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  background-color: #1ebe5d;
}
/* Centrado global del detalle */
#vista-detalle {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem;
  background-color: #f9f9f9;
}

.info-detalle {
  display: flex;
  flex-direction: column;
}



/* ==========================
   🧱 Caja de características (derecha tipo ML)
========================== */
.caracteristicas-detalle {
  width: 100%;
  background: #fff;
  border: 1px solid #e9e9e9;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.caracteristicas-detalle h3 {
  margin: 0 0 .75rem 0;
  font-weight: 600;
}

.caracteristicas-lista {
  list-style: none;
  margin: 0;
  padding: 0;
  border-radius: 10px;
  overflow: hidden;
}

.caracteristicas-lista li {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
  padding: .65rem .8rem;
  border-bottom: 1px solid #f0f0f0;
}

.caracteristicas-lista li:nth-child(odd) { background: #fafafa; }
.caracteristicas-lista li:last-child { border-bottom: none; }

.caract-clave { color: #666; }
.caract-valor { font-weight: 600; text-align: right; }

@media (min-width: 900px) {
  .detalle {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(260px, .85fr);
    grid-template-areas:
      "galeria specs"
      "info    specs";
    align-items: start;
    gap: 2rem;
    text-align: left;
    max-width: 1000px;
  }

  .galeria-detalle { grid-area: galeria; }
  .info-detalle   { grid-area: info; }
  .caracteristicas-detalle {
    grid-area: specs;
    position: sticky;
    top: 20px;
    align-self: start;
  }
}

/* ==========================
   RESPONSIVE PARA CELULARES
========================== */
@media screen and (max-width: 768px) {
  /* Header compacto */
  header {
    padding: 1rem;
    text-align: center;
  }

  .top-bar,
  .main-nav,
  .header-mid {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .logo-izquierda img {
    height: 80px;
  }

  .busqueda-contenedor {
    width: 100%;
  }

  .busqueda-contenedor h1 {
    font-size: 1.6rem;
  }

  .buscador {
    flex-direction: column;
    width: 100%;
  }

  .buscador input[type="text"],
  .buscador button {
    width: 90%;
  }

  .main-nav a {
    padding: 0.5rem;
    font-size: 1rem;
  }

  /* Productos en una sola columna */
  main section {
    grid-template-columns: 1fr;
  }

  article img {
    max-height: 150px;
  }

  /* Detalle de producto */
  .detalle {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  /* Slider */
  .slider-container {
    height: auto;
  }

  .slide img {
    height: auto;
    max-height: 240px;
  }

  .slide-text {
    position: static;
    background: rgba(0, 0, 0, 0.6);
    padding: 1rem;
    color: white;
    text-align: center;
  }

  /* Footer compacto */
  footer {
    grid-template-columns: 1fr;
    text-align: center;
  }

  footer section {
    text-align: center;
  }

  /* Características producto */
  .caracteristicas-detalle {
    margin-top: 2rem;
  }

  .galeria-btn {
    font-size: 2rem;
  }
}
