/* Layout */
.producto-layout {
  max-width: 1400px;
  margin: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  background: #f5f5f5;
}

.producto-top {
  display: flex;
  gap: 30px;
}

/* Galería moderna */
.galeria-modern {
  flex: 2;
  position: relative;
  animation: slideIn 0.8s ease-out;
}
.galeria-principal img {
  width: 100%;
  max-height: 650px;
  object-fit: cover;
  border-radius: 12px;
  cursor: zoom-in;
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
  animation: fadeIn 0.6s ease-in-out;
}
.galeria-flecha {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    border: none;
    font-size: 20px;
    padding: 3px 10px;
    cursor: pointer;
    border-radius: 50%;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
    transition: background 0.3s;
}
.galeria-flecha:hover { background: #007bff; color: #fff; }
.galeria-flecha.izquierda { left: 15px; }
.galeria-flecha.derecha { right: 15px; }

.galeria-miniaturas {
  display: flex;
  gap: 0.9px;
  margin-top: 15px;
  justify-content: center;
}
.galeria-miniaturas img {
  width: 85px;
  height: 85px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  opacity: 0.7;
  transition: transform 0.3s, opacity 0.3s;
}
.galeria-miniaturas img:hover {
  transform: scale(1.08);
  opacity: 1;
}
.galeria-miniaturas img.activa {
  border: 2px solid #007bff;
  opacity: 1;
}

/* Bloque derecho */
.ficha-producto-card {
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.titulo-producto {
  font-size: 2em;
  margin-bottom: 15px;
  color: #222;
}
.precio-box {
  background: #f0f0f0;
  padding: 0px;
  border-radius: 8px;
  margin: 20px 0;
  text-align: center;
}
.precio-destacado {
  font-size: 1.8em;
  font-weight: bold;
  color: #F54927;
}
.info-lista {
  list-style: none;
  padding: 0;
}
.info-lista li {
  margin: 8px 0;
  border-bottom: 1px solid #eee;
  padding-bottom: 6px;
}

/* Botones */
.acciones {
  margin: 20px 0;
}
.btn-accion, .btn-whatsapp {
    display: block;
    width: 100%;
    max-width: 250px;
    background: #ccc;
    color: #000;
    font-weight: 300;
    text-transform: uppercase;
    text-align: center;
    padding: 10px 80px;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.2s ease;
    font-size: 1rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);

}
.btn-accion {
  background: #25d366;
  color: #fff;
}
.btn-accion:hover {
  background: #004080;
  transform: translateY(-2px);
}
.btn-whatsapp {
  background: #25d366;
  color: #fff;
}
.btn-whatsapp:hover {
  background: #004080;
  transform: translateY(-2px);
}

/* Ubicación */
.ubicacion {
  margin-top: 10px;
  font-size: 0.95em;
  color: #555;
}

/* Modal fullscreen */
.modal-imagen {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
}
.modal-imagen img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 12px;
  animation: fadeIn 0.5s ease-in-out;
}
.modal-imagen .cerrar {
  position: absolute;
  top: 20px; right: 30px;
  font-size: 2em;
  color: #fff;
  cursor: pointer;
}

/* Animaciones */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideIn {
  from { transform: translateY(40px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Descripción */
.descripcion {
  margin-top: 40px;
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.descripcion h3 {
  margin-bottom: 15px;
  font-size: 1.4em;
  color: #222;
}
.descripcion p {
  line-height: 1.6;
  margin-bottom: 12px;
  font-size: 1em;
  color: #444;
}

/* Ficha técnica */
.detalles-producto {
  margin-top: 40px;
}
.detalles-titulo {
  font-size: 1.6em;
  margin-bottom: 20px;
}
.detalle-seccion {
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}
.detalle-header {
  background: #f0f0f0;
  padding: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.detalle-header h3 {
  margin: 0;
  font-size: 1.1em;
}
.detalle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  padding: 15px;
}
.detalle-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 6px;
  padding: 12px;
}
.detalle-label {
  font-weight: bold;
  margin-bottom: 5px;
  color: #333;
}
.detalle-valor {
  color: #555;
}
.toggle-icon {
  font-weight: bold;
  font-size: 1.2em;
}

