/* ================================
   CARRITO — Layout principal
   ================================ */

.carrito-container {
  width: 100%;
  max-width: 1100px;
  margin: 40px auto 0;
  padding: 0 24px 60px;
}

.carrito-vacio {
  text-align: center;
  font-size: 16px;
  color: #6e6e73;
  padding: 60px 0;
}

/* ================================
   TABLA
   ================================ */

.tabla-carrito {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  overflow: hidden;
}

.tabla-carrito thead tr {
  background: rgba(0, 0, 0, 0.03);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.tabla-carrito th {
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 600;
  color: #6e6e73;
  text-align: left;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.tabla-carrito td {
  padding: 14px 16px;
  font-size: 14px;
  color: #1d1d1f;
  vertical-align: middle;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.tabla-carrito tbody tr:last-child td {
  border-bottom: none;
}

.tabla-carrito tbody tr:hover {
  background: rgba(0, 0, 0, 0.015);
}

/* Imagen miniatura en tabla */
.carrito-thumb {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 8px;
  background: #f5f5f7;
  padding: 4px;
  display: block;
}

/* ================================
   PIE DE TABLA — total + botón
   ================================ */

.carrito-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #d2d2d7;
}

.carrito-total {
  font-size: 18px;
  color: #1d1d1f;
}

.carrito-total strong {
  font-weight: 600;
}

/* ================================
   BOTÓN ELIMINAR
   ================================ */

.btn-eliminar {
  background: none;
  border: 1px solid #d2d2d7;
  color: #6e6e73;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 100px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-eliminar:hover {
  background: #fdf0ee;
  border-color: #c0392b;
  color: #c0392b;
}

/* ================================
   SIDEBAR FLOTANTE — ¿Tienes alguna duda?
   ================================ */

.contacto-ayuda {
  position: fixed;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  padding: 8px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
  width: 100px;
}

.contacto-titulo {
  margin: 0 0 5px;
  font-size: 12px;
  font-weight: bold;
  color: #222;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.icono-social {
  width: 24px;
  height: 24px;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.icono-social:hover {
  transform: scale(1.1);
  opacity: 0.85;
}

/* ================================
   FOOTER
   ================================ */

.footer {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid #d2d2d7;
  padding: 24px 20px;
  text-align: center;
  width: 100%;
  margin-top: auto;
}

.footer-copy {
  font-size: 13px;
  color: #6e6e73;
}

/* ================================
   RESPONSIVE
   ================================ */

@media (max-width: 768px) {
  .carrito-container {
    padding: 0 16px 40px;
    margin-top: 24px;
  }

  .tabla-carrito th,
  .tabla-carrito td {
    padding: 10px 10px;
    font-size: 13px;
  }

  .carrito-footer {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 14px;
  }

  .carrito-footer .btn-agregar {
    text-align: center;
  }

  .contacto-ayuda {
    width: 80px;
    right: 6px;
  }
}

@media (max-width: 480px) {
  .tabla-carrito th:nth-child(3),
  .tabla-carrito td:nth-child(3) {
    display: none;
  }
}